Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7042/0.7042, allocations: 141.8 MB / 149.1 MB, free: 3.953 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001049/0.001049, allocations: 182.5 kB / 181.9 MB, free: 15.67 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.233/1.233, allocations: 221.4 MB / 436 MB, free: 8.832 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009006/0.0009005, allocations: 98.98 kB / 0.507 GB, free: 24.21 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001819/0.001819, allocations: 273.7 kB / 0.5884 GB, free: 11.85 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1741/0.1759, allocations: 89.64 MB / 0.676 GB, free: 2.109 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3356/0.5115, allocations: 82.76 MB / 0.7568 GB, free: 112.4 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5539/1.066, allocations: 384.9 MB / 1.133 GB, free: 12.8 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002546/1.066, allocations: 102.5 kB / 1.133 GB, free: 12.75 MB / 0.6669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 2.319/3.385, allocations: 0.8115 GB / 1.944 GB, free: 42.89 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/3.385, allocations: 15.94 kB / 1.944 GB, free: 42.87 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001087/3.386, allocations: 265.1 kB / 1.945 GB, free: 42.61 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05552/3.442, allocations: 24.77 MB / 1.969 GB, free: 18.04 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.159e-05/3.442, allocations: 44 kB / 1.969 GB, free: 17.99 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003798/3.442, allocations: 88 kB / 1.969 GB, free: 17.91 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002019/3.444, allocations: 0.8723 MB / 1.97 GB, free: 17.03 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002336/3.446, allocations: 1.211 MB / 1.971 GB, free: 15.75 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.326e-05/3.446, allocations: 7.922 kB / 1.971 GB, free: 15.74 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001427/3.447, allocations: 4 kB / 1.971 GB, free: 15.73 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.227e-05/3.447, allocations: 36 kB / 1.971 GB, free: 15.7 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008329/3.455, allocations: 7.605 MB / 1.978 GB, free: 7.621 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005946/3.456, allocations: 342.6 kB / 1.979 GB, free: 7.281 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003457/3.456, allocations: 271.2 kB / 1.979 GB, free: 7.016 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006563/3.457, allocations: 1.16 MB / 1.98 GB, free: 5.598 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.845e-05/3.457, allocations: 47.06 kB / 1.98 GB, free: 5.543 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=59): time 3.126e-06/3.457, allocations: 0 / 1.98 GB, free: 5.543 MB / 0.6982 GB Notification: Performance of matching and sorting (n=59): time 0.001424/3.458, allocations: 0.6235 MB / 1.981 GB, free: 4.91 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.019e-05/3.458, allocations: 59.91 kB / 1.981 GB, free: 4.84 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001878/3.46, allocations: 1.197 MB / 1.982 GB, free: 3.645 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 9.724e-05/3.46, allocations: 29.7 kB / 1.982 GB, free: 3.609 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003883/3.461, allocations: 0.6524 MB / 1.983 GB, free: 2.945 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.000225/3.461, allocations: 201 kB / 1.983 GB, free: 2.746 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.162e-05/3.461, allocations: 4 kB / 1.983 GB, free: 2.742 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 6.377e-05/3.461, allocations: 338 kB / 1.983 GB, free: 2.406 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000334/3.461, allocations: 225.9 kB / 1.983 GB, free: 2.188 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004606/3.462, allocations: 0.5798 MB / 1.984 GB, free: 1.434 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006935/3.462, allocations: 354.8 kB / 1.984 GB, free: 1.086 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.885e-06/3.462, allocations: 7.906 kB / 1.984 GB, free: 1.078 MB / 0.6982 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001558/3.464, allocations: 0.9032 MB / 1.985 GB, free: 172 kB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/3.464, allocations: 4 kB / 1.985 GB, free: 168 kB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/3.464, allocations: 12 kB / 1.985 GB, free: 156 kB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.36e-05/3.464, allocations: 16 kB / 1.985 GB, free: 140 kB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007892/3.465, allocations: 236.1 kB / 1.985 GB, free: 15.9 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.502e-05/3.465, allocations: 15.94 kB / 1.985 GB, free: 15.89 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001564/3.466, allocations: 177.8 kB / 1.986 GB, free: 15.71 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/3.467, allocations: 51.98 kB / 1.986 GB, free: 15.66 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 111 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002109/3.467, allocations: 143.1 kB / 1.986 GB, free: 15.52 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003921/3.467, allocations: 169.9 kB / 1.986 GB, free: 15.35 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00166/3.469, allocations: 0.754 MB / 1.987 GB, free: 14.59 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.554e-05/3.469, allocations: 8 kB / 1.987 GB, free: 14.59 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/3.469, allocations: 0 / 1.987 GB, free: 14.59 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001078/3.47, allocations: 0.7049 MB / 1.987 GB, free: 13.84 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004464/3.474, allocations: 2.161 MB / 1.99 GB, free: 11.61 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.285e-06/3.474, allocations: 4 kB / 1.99 GB, free: 11.6 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008179/3.475, allocations: 195.8 kB / 1.99 GB, free: 11.41 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.588e-05/3.475, allocations: 8 kB / 1.99 GB, free: 11.41 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.571e-05/3.475, allocations: 15.89 kB / 1.99 GB, free: 11.39 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.642e-06/3.475, allocations: 4 kB / 1.99 GB, free: 11.39 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/3.475, allocations: 8 kB / 1.99 GB, free: 11.38 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001982/3.477, allocations: 1.31 MB / 1.991 GB, free: 9.98 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002801/3.48, allocations: 2.138 MB / 1.993 GB, free: 7.754 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008876/3.481, allocations: 366.7 kB / 1.993 GB, free: 7.375 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003598/3.482, allocations: 4 kB / 1.993 GB, free: 7.371 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001282/3.483, allocations: 119.7 kB / 1.994 GB, free: 7.254 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/3.483, allocations: 44.34 kB / 1.994 GB, free: 7.211 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.272e-05/3.483, allocations: 39.97 kB / 1.994 GB, free: 7.172 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.001562/3.485, allocations: 0.8871 MB / 1.995 GB, free: 6.293 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.003322/3.488, allocations: 0.8578 MB / 1.995 GB, free: 5.434 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (eigPor.vol1.dynBal.U,eigPor.vol2.dynBal.U,eigPor.vol3.dynBal.U,eigPor.vol4.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001844/3.49, allocations: 0.9837 MB / 1.996 GB, free: 4.484 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.001089/3.491, allocations: 0.6211 MB / 1.997 GB, free: 3.867 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/3.491, allocations: 4 kB / 1.997 GB, free: 3.863 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0004917/3.491, allocations: 310 kB / 1.997 GB, free: 3.559 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007619/3.499, allocations: 0.9213 MB / 1.998 GB, free: 2.648 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00598/3.505, allocations: 2.325 MB / 2 GB, free: 252 kB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3002/3.805, allocations: 1.593 MB / 2.002 GB, free: 121.2 MB / 0.7138 GB Notification: Performance of SimCode: time 1.142e-06/3.805, allocations: 3.844 kB / 2.002 GB, free: 121.2 MB / 0.7138 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_EightPortHeatMassExchanger.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe 2>&1)