Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.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.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_T",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.7428/0.7428, allocations: 141.8 MB / 149.1 MB, free: 1.336 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.001054/0.001054, allocations: 185.2 kB / 182 MB, free: 0.6836 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.286/1.286, allocations: 221.3 MB / 436.1 MB, free: 5.449 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.0009327/0.0009328, allocations: 96.59 kB / 0.5071 GB, free: 2.113 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001673/0.001673, allocations: 286.5 kB / 0.5885 GB, free: 47.18 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3718/0.3735, allocations: 89.62 MB / 0.676 GB, free: 59.47 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.5236, allocations: 82.78 MB / 0.7568 GB, free: 0.543 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.002/1.526, allocations: 411.8 MB / 1.159 GB, free: 271.7 MB / 0.7138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002659/1.526, allocations: 96.19 kB / 1.159 GB, free: 271.7 MB / 0.7138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 3.831/5.357, allocations: 1.185 GB / 2.345 GB, free: 87.09 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 5.762e-05/5.357, allocations: 8.281 kB / 2.345 GB, free: 87.09 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003235/5.361, allocations: 488.8 kB / 2.345 GB, free: 86.98 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0073/5.368, allocations: 2.286 MB / 2.347 GB, free: 86.53 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.142e-05/5.368, allocations: 37 kB / 2.347 GB, free: 86.53 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001668/5.368, allocations: 74.17 kB / 2.347 GB, free: 86.53 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001527/5.37, allocations: 0.7796 MB / 2.348 GB, free: 86.52 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001582/5.371, allocations: 1.065 MB / 2.349 GB, free: 86.26 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.439e-05/5.371, allocations: 7.656 kB / 2.349 GB, free: 86.26 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.887e-05/5.371, allocations: 8.719 kB / 2.349 GB, free: 86.26 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.476e-05/5.371, allocations: 38.83 kB / 2.349 GB, free: 86.25 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008304/5.38, allocations: 6.975 MB / 2.356 GB, free: 82.05 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006291/5.38, allocations: 448.2 kB / 2.356 GB, free: 82.03 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000435/5.381, allocations: 340 kB / 2.357 GB, free: 82.02 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004726/5.386, allocations: 2.938 MB / 2.36 GB, free: 80.2 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004667/5.386, allocations: 339.1 kB / 2.36 GB, free: 80.14 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=66): time 4.569e-06/5.386, allocations: 0 / 2.36 GB, free: 80.14 MB / 0.7138 GB Notification: Performance of matching and sorting (n=66): time 0.002173/5.388, allocations: 0.8516 MB / 2.361 GB, free: 80 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/5.388, allocations: 113.6 kB / 2.361 GB, free: 79.87 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001613/5.39, allocations: 1.219 MB / 2.362 GB, free: 79.7 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 6.979e-05/5.39, allocations: 29.52 kB / 2.362 GB, free: 79.67 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004223/5.391, allocations: 0.5648 MB / 2.363 GB, free: 79.36 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002147/5.391, allocations: 230.3 kB / 2.363 GB, free: 79.21 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.255e-05/5.391, allocations: 0 / 2.363 GB, free: 79.21 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 8.359e-05/5.391, allocations: 348.4 kB / 2.363 GB, free: 78.91 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003929/5.391, allocations: 260.2 kB / 2.363 GB, free: 78.91 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005913/5.392, allocations: 0.6745 MB / 2.364 GB, free: 78.4 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001477/5.393, allocations: 0.5097 MB / 2.365 GB, free: 78.39 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.133e-06/5.393, allocations: 3.844 kB / 2.365 GB, free: 78.39 MB / 0.7138 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002404/5.396, allocations: 1.138 MB / 2.366 GB, free: 78.26 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009892/5.397, allocations: 4.41 MB / 2.37 GB, free: 73.62 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/5.397, allocations: 7.812 kB / 2.37 GB, free: 73.62 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.216e-05/5.397, allocations: 23.16 kB / 2.37 GB, free: 73.62 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009923/5.398, allocations: 251 kB / 2.37 GB, free: 73.62 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.791e-05/5.398, allocations: 29.78 kB / 2.37 GB, free: 73.62 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001462/5.399, allocations: 153.6 kB / 2.37 GB, free: 73.57 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001005/5.399, allocations: 53.44 kB / 2.371 GB, free: 73.57 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 8.716e-06/5.399, allocations: 2.469 kB / 2.371 GB, free: 73.57 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002014/5.401, allocations: 0.9168 MB / 2.371 GB, free: 73.56 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.252e-05/5.402, allocations: 10.91 kB / 2.371 GB, free: 73.56 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.734e-05/5.402, allocations: 18.09 kB / 2.371 GB, free: 73.56 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009233/5.402, allocations: 258.3 kB / 2.372 GB, free: 73.56 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.612e-05/5.403, allocations: 27.5 kB / 2.372 GB, free: 73.56 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001312/5.404, allocations: 126.8 kB / 2.372 GB, free: 73.52 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.967e-05/5.404, allocations: 58.53 kB / 2.372 GB, free: 73.52 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 122 * Array equations: 1 * Algorithm blocks: 1 * 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.0002391/5.404, allocations: 137.5 kB / 2.372 GB, free: 73.41 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002138/5.404, allocations: 169.6 kB / 2.372 GB, free: 73.32 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002588/5.407, allocations: 1.116 MB / 2.373 GB, free: 73.23 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.386e-05/5.407, allocations: 11.53 kB / 2.373 GB, free: 73.23 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/5.407, allocations: 3.812 kB / 2.373 GB, free: 73.23 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001493/5.409, allocations: 0.8959 MB / 2.374 GB, free: 72.96 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004186/5.413, allocations: 2.146 MB / 2.376 GB, free: 72.62 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.57e-06/5.413, allocations: 3.906 kB / 2.376 GB, free: 72.62 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007417/5.414, allocations: 146.8 kB / 2.376 GB, free: 72.62 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001797/5.414, allocations: 29.67 kB / 2.376 GB, free: 72.61 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.578e-05/5.414, allocations: 17.25 kB / 2.376 GB, free: 72.61 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007771/5.415, allocations: 1.265 MB / 2.378 GB, free: 71.42 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/5.415, allocations: 0 / 2.378 GB, free: 71.42 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002248/5.417, allocations: 1.421 MB / 2.379 GB, free: 71.11 MB / 0.7138 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002833/5.42, allocations: 2.268 MB / 2.381 GB, free: 70.41 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006974/5.42, allocations: 338.7 kB / 2.382 GB, free: 70.22 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002244/5.421, allocations: 7.031 kB / 2.382 GB, free: 70.22 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009439/5.422, allocations: 85.78 kB / 2.382 GB, free: 70.21 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001337/5.422, allocations: 48.27 kB / 2.382 GB, free: 70.21 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.526e-05/5.422, allocations: 32.72 kB / 2.382 GB, free: 70.21 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.001615/5.423, allocations: 0.914 MB / 2.383 GB, free: 70.11 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.005288/5.429, allocations: 1.235 MB / 2.384 GB, free: 69.94 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.outCon.T) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002415/5.431, allocations: 1.185 MB / 2.385 GB, free: 69.68 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.002121/5.433, allocations: 1.279 MB / 2.386 GB, free: 69.59 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/5.433, allocations: 1.875 kB / 2.386 GB, free: 69.59 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0006346/5.434, allocations: 460.7 kB / 2.387 GB, free: 69.49 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00284/5.437, allocations: 0.5978 MB / 2.387 GB, free: 69.48 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005009/5.442, allocations: 2.336 MB / 2.39 GB, free: 68.87 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001148/5.443, allocations: 1.564 MB / 2.391 GB, free: 68.14 MB / 0.7138 GB Notification: Performance of SimCode: time 6.41e-07/5.443, allocations: 0 / 2.391 GB, free: 68.14 MB / 0.7138 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)