Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_maint_7_0_x_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 7.0.3-maint.7.0.x/package.mo): time 1.231/1.231, allocations: 249.4 MB / 256.7 MB, free: 6.941 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001015/0.001015, allocations: 184.4 kB / 316 MB, free: 3.52 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.166/1.166, allocations: 205.1 MB / 0.5667 GB, free: 15.66 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008869/0.0008868, allocations: 90.86 kB / 0.671 GB, free: 4.797 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3598/0.3607, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1768/0.5376, allocations: 106.3 MB / 0.8847 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.094/1.632, allocations: 447.2 MB / 1.321 GB, free: 299.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/1.632, allocations: 90.39 kB / 1.321 GB, free: 299 MB / 0.8698 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 2.997/4.629, allocations: 1.138 GB / 2.459 GB, free: 124.8 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/4.629, allocations: 7.75 kB / 2.459 GB, free: 124.8 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002195/4.632, allocations: 490.5 kB / 2.46 GB, free: 124.7 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005325/4.637, allocations: 2.317 MB / 2.462 GB, free: 123.7 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.158e-05/4.637, allocations: 37.53 kB / 2.462 GB, free: 123.7 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001739/4.637, allocations: 76.88 kB / 2.462 GB, free: 123.7 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00136/4.638, allocations: 0.7889 MB / 2.463 GB, free: 123.4 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001537/4.64, allocations: 1.088 MB / 2.464 GB, free: 122.8 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.794e-05/4.64, allocations: 3.469 kB / 2.464 GB, free: 122.8 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.292e-05/4.64, allocations: 10.88 kB / 2.464 GB, free: 122.8 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.896e-05/4.64, allocations: 28.16 kB / 2.464 GB, free: 122.8 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007366/4.648, allocations: 6.914 MB / 2.471 GB, free: 117.6 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008304/4.648, allocations: 0.6126 MB / 2.471 GB, free: 117.4 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000377/4.649, allocations: 327.9 kB / 2.472 GB, free: 117.3 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003982/4.653, allocations: 2.812 MB / 2.474 GB, free: 115 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000471/4.653, allocations: 343.8 kB / 2.475 GB, free: 114.8 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=64): time 2.545e-06/4.653, allocations: 0 / 2.475 GB, free: 114.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=64): time 0.002127/4.655, allocations: 0.8389 MB / 2.476 GB, free: 114.5 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/4.656, allocations: 168 kB / 2.476 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001614/4.657, allocations: 1.25 MB / 2.477 GB, free: 113.8 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.499e-05/4.657, allocations: 25.7 kB / 2.477 GB, free: 113.8 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004167/4.658, allocations: 0.5734 MB / 2.478 GB, free: 113.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001959/4.658, allocations: 223.4 kB / 2.478 GB, free: 113.2 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.273e-05/4.658, allocations: 0 / 2.478 GB, free: 113.2 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.17e-05/4.658, allocations: 350 kB / 2.478 GB, free: 112.9 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003848/4.658, allocations: 273.7 kB / 2.478 GB, free: 112.8 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005377/4.659, allocations: 0.7 MB / 2.479 GB, free: 112.1 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001448/4.66, allocations: 0.5252 MB / 2.48 GB, free: 112 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/4.66, allocations: 3.5 kB / 2.48 GB, free: 112 MB / 0.8855 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002457/4.663, allocations: 1.172 MB / 2.481 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006918/4.664, allocations: 4.508 MB / 2.485 GB, free: 106.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.381e-05/4.664, allocations: 13.31 kB / 2.485 GB, free: 106.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.887e-05/4.664, allocations: 22.16 kB / 2.485 GB, free: 106.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009766/4.665, allocations: 255.6 kB / 2.485 GB, free: 106.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.953e-05/4.665, allocations: 25.5 kB / 2.485 GB, free: 106.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/4.666, allocations: 165.8 kB / 2.486 GB, free: 106.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001157/4.666, allocations: 60.91 kB / 2.486 GB, free: 106.8 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.939e-06/4.666, allocations: 7.188 kB / 2.486 GB, free: 106.8 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002182/4.668, allocations: 0.9512 MB / 2.487 GB, free: 106.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.817e-05/4.668, allocations: 12.52 kB / 2.487 GB, free: 106.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.729e-05/4.668, allocations: 18.33 kB / 2.487 GB, free: 106.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000944/4.669, allocations: 253.3 kB / 2.487 GB, free: 106.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.164e-05/4.669, allocations: 23.45 kB / 2.487 GB, free: 106.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001362/4.671, allocations: 132.5 kB / 2.487 GB, free: 106.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001125/4.671, allocations: 55.3 kB / 2.487 GB, free: 106.5 MB / 0.8855 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.0002971/4.671, allocations: 147.5 kB / 2.487 GB, free: 106.3 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003273/4.672, allocations: 163.7 kB / 2.487 GB, free: 106.2 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002943/4.674, allocations: 1.118 MB / 2.488 GB, free: 105.9 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.456e-05/4.674, allocations: 9.234 kB / 2.488 GB, free: 105.9 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/4.675, allocations: 3.734 kB / 2.488 GB, free: 105.9 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001697/4.676, allocations: 0.8864 MB / 2.489 GB, free: 105.4 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004114/4.68, allocations: 2.102 MB / 2.491 GB, free: 104.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/4.68, allocations: 6.25 kB / 2.491 GB, free: 104.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007337/4.681, allocations: 141.3 kB / 2.491 GB, free: 104.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001643/4.681, allocations: 28.62 kB / 2.491 GB, free: 104.5 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.588e-05/4.681, allocations: 15.72 kB / 2.491 GB, free: 104.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008093/4.682, allocations: 1.259 MB / 2.493 GB, free: 103.2 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/4.682, allocations: 0.9688 kB / 2.493 GB, free: 103.2 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00235/4.685, allocations: 1.415 MB / 2.494 GB, free: 102.6 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003159/4.688, allocations: 2.246 MB / 2.496 GB, free: 101.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006895/4.688, allocations: 344.8 kB / 2.497 GB, free: 101.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002178/4.689, allocations: 4.859 kB / 2.497 GB, free: 101.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008945/4.69, allocations: 80.98 kB / 2.497 GB, free: 101.1 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001274/4.69, allocations: 51.09 kB / 2.497 GB, free: 101 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.41e-05/4.69, allocations: 28.98 kB / 2.497 GB, free: 101 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.001402/4.691, allocations: 0.9288 MB / 2.498 GB, free: 100.6 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.005233/4.696, allocations: 1.302 MB / 2.499 GB, free: 100.1 MB / 0.8855 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.002276/4.699, allocations: 1.221 MB / 2.5 GB, free: 99.79 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002387/4.701, allocations: 1.368 MB / 2.501 GB, free: 99.23 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/4.701, allocations: 1.031 kB / 2.501 GB, free: 99.23 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0007099/4.702, allocations: 454.8 kB / 2.502 GB, free: 99.01 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00294/4.705, allocations: 0.6048 MB / 2.503 GB, free: 98.89 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005583/4.71, allocations: 2.375 MB / 2.505 GB, free: 98.01 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001678/4.712, allocations: 1.582 MB / 2.506 GB, free: 97.23 MB / 0.8855 GB Notification: Performance of SimCode: time 8.82e-07/4.712, allocations: 0 / 2.506 GB, free: 97.23 MB / 0.8855 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_maint.7.0.x_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)