Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_8_0_0_Buildings_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/Buildings 8.0.0/package.mo): time 2.288/2.288, allocations: 284.8 MB / 292.1 MB, free: 10.73 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001662/0.001662, allocations: 177.3 kB / 360.3 MB, free: 7.531 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.773/1.773, allocations: 205.1 MB / 0.6187 GB, free: 13.2 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001297/0.001296, allocations: 85.33 kB / 0.7317 GB, free: 45.06 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2764/0.2777, allocations: 121.4 MB / 0.8502 GB, free: 3.871 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6175/0.8952, allocations: 115.2 MB / 0.9627 GB, free: 78.48 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.06/1.955, allocations: 453.6 MB / 1.406 GB, free: 113.2 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002752/1.955, allocations: 91.77 kB / 1.406 GB, free: 113.2 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 5.445/7.401, allocations: 1.17 GB / 2.576 GB, free: 113.6 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.953e-05/7.401, allocations: 9.156 kB / 2.576 GB, free: 113.6 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00438/7.405, allocations: 485.5 kB / 2.576 GB, free: 113.4 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01046/7.416, allocations: 2.32 MB / 2.579 GB, free: 111.9 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/7.416, allocations: 41.41 kB / 2.579 GB, free: 111.9 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004426/7.416, allocations: 77.47 kB / 2.579 GB, free: 111.9 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002853/7.419, allocations: 0.7803 MB / 2.58 GB, free: 111.5 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003097/7.422, allocations: 1.094 MB / 2.581 GB, free: 110.8 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.075e-05/7.422, allocations: 2.875 kB / 2.581 GB, free: 110.8 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001792/7.423, allocations: 11.86 kB / 2.581 GB, free: 110.8 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.477e-05/7.423, allocations: 34.06 kB / 2.581 GB, free: 110.8 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01491/7.438, allocations: 6.915 MB / 2.587 GB, free: 104.6 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001713/7.439, allocations: 0.6177 MB / 2.588 GB, free: 104.3 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007538/7.44, allocations: 321 kB / 2.588 GB, free: 104.2 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007505/7.448, allocations: 2.823 MB / 2.591 GB, free: 101.6 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008356/7.448, allocations: 335.5 kB / 2.591 GB, free: 101.4 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=64): time 4.078e-06/7.449, allocations: 0 / 2.591 GB, free: 101.4 MB / 0.9636 GB Notification: Performance of matching and sorting (n=64): time 0.004154/7.453, allocations: 0.8424 MB / 2.592 GB, free: 101 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.452e-05/7.453, allocations: 162.8 kB / 2.592 GB, free: 100.8 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003194/7.456, allocations: 1.245 MB / 2.594 GB, free: 100.1 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.0002977/7.456, allocations: 28.05 kB / 2.594 GB, free: 100.1 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007199/7.457, allocations: 0.5868 MB / 2.594 GB, free: 99.6 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004342/7.458, allocations: 219.1 kB / 2.594 GB, free: 99.41 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.395e-05/7.458, allocations: 0 / 2.594 GB, free: 99.41 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001126/7.458, allocations: 346.8 kB / 2.595 GB, free: 99.08 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008084/7.459, allocations: 275.1 kB / 2.595 GB, free: 98.96 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001064/7.46, allocations: 0.7039 MB / 2.596 GB, free: 98.27 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002823/7.463, allocations: 0.5232 MB / 2.596 GB, free: 98.02 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.962e-05/7.463, allocations: 6.438 kB / 2.596 GB, free: 98.02 MB / 0.9636 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.005252/7.468, allocations: 1.177 MB / 2.597 GB, free: 97.3 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.001089/7.469, allocations: 4.512 MB / 2.602 GB, free: 92.45 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.373e-05/7.469, allocations: 12 kB / 2.602 GB, free: 92.43 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.832e-05/7.469, allocations: 20 kB / 2.602 GB, free: 92.41 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002155/7.471, allocations: 258.3 kB / 2.602 GB, free: 92.17 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.569e-05/7.471, allocations: 23.94 kB / 2.602 GB, free: 92.14 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002641/7.474, allocations: 155.9 kB / 2.602 GB, free: 92 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002892/7.474, allocations: 59.98 kB / 2.602 GB, free: 91.94 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.446e-05/7.474, allocations: 4 kB / 2.602 GB, free: 91.94 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004042/7.478, allocations: 0.9434 MB / 2.603 GB, free: 91 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.777e-05/7.479, allocations: 19.92 kB / 2.603 GB, free: 90.98 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.715e-05/7.479, allocations: 23.91 kB / 2.603 GB, free: 90.96 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002054/7.481, allocations: 254.7 kB / 2.604 GB, free: 90.72 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.498e-05/7.481, allocations: 31.2 kB / 2.604 GB, free: 90.69 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002536/7.483, allocations: 137.9 kB / 2.604 GB, free: 90.56 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002847/7.484, allocations: 55.97 kB / 2.604 GB, free: 90.51 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 (125): * Single equations (assignments): 121 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.0003709/7.484, allocations: 136.7 kB / 2.604 GB, free: 90.37 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005751/7.485, allocations: 169.8 kB / 2.604 GB, free: 90.2 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004536/7.489, allocations: 1.102 MB / 2.605 GB, free: 89.11 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.207e-05/7.489, allocations: 7.984 kB / 2.605 GB, free: 89.11 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.504e-05/7.489, allocations: 7.75 kB / 2.605 GB, free: 89.1 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002748/7.492, allocations: 0.8864 MB / 2.606 GB, free: 88.16 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007009/7.499, allocations: 2.121 MB / 2.608 GB, free: 86.02 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.044e-05/7.499, allocations: 0 / 2.608 GB, free: 86.02 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001468/7.501, allocations: 148.3 kB / 2.608 GB, free: 85.88 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002783/7.501, allocations: 28.83 kB / 2.608 GB, free: 85.84 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001136/7.501, allocations: 15.98 kB / 2.608 GB, free: 85.83 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001223/7.502, allocations: 1.262 MB / 2.609 GB, free: 84.46 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/7.502, allocations: 0 / 2.609 GB, free: 84.46 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004344/7.507, allocations: 1.414 MB / 2.611 GB, free: 83.01 MB / 0.9636 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005878/7.513, allocations: 2.249 MB / 2.613 GB, free: 80.73 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001396/7.514, allocations: 342.7 kB / 2.613 GB, free: 80.38 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005866/7.515, allocations: 5 kB / 2.613 GB, free: 80.37 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002103/7.517, allocations: 82.17 kB / 2.613 GB, free: 80.3 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002143/7.517, allocations: 44.58 kB / 2.613 GB, free: 80.25 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001372/7.517, allocations: 43.66 kB / 2.614 GB, free: 80.21 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.002188/7.519, allocations: 0.9234 MB / 2.614 GB, free: 79.3 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.009242/7.529, allocations: 1.314 MB / 2.616 GB, free: 77.99 MB / 0.9636 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.x[1],mov.filter.x[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 (74): * Single equations (assignments): 65 * 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.003341/7.532, allocations: 1.233 MB / 2.617 GB, free: 77.05 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.003571/7.536, allocations: 1.374 MB / 2.618 GB, free: 75.66 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 7.935e-06/7.536, allocations: 3.938 kB / 2.618 GB, free: 75.66 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.001262/7.537, allocations: 449.6 kB / 2.619 GB, free: 75.21 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005661/7.543, allocations: 0.602 MB / 2.619 GB, free: 74.63 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008124/7.551, allocations: 2.385 MB / 2.622 GB, free: 72.23 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001951/7.553, allocations: 1.577 MB / 2.623 GB, free: 70.62 MB / 0.9636 GB Notification: Performance of SimCode: time 2.345e-06/7.553, allocations: 0 / 2.623 GB, free: 70.62 MB / 0.9636 GB (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)