Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_EnthalpyFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_EnthalpyFlowRate",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 10.0.0-master/package.mo): time 2.113/2.113, allocations: 390.4 MB / 397.7 MB, free: 11.28 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001039/0.001039, allocations: 169.4 kB / 490.8 MB, free: 1.953 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 221.4 MB / 0.7863 GB, free: 13.71 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 100.9 kB / 0.9264 GB, free: 14.25 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.5981/0.5992, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.8616, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.042/4.903, allocations: 1.867 GB / 3.079 GB, free: 433.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/4.904, allocations: 83.64 kB / 3.079 GB, free: 433.2 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.56/5.464, allocations: 300.8 MB / 3.373 GB, free: 161.9 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/5.464, allocations: 8 kB / 3.373 GB, free: 161.9 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003176/5.464, allocations: 63.52 kB / 3.373 GB, free: 161.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004118/5.464, allocations: 326 kB / 3.373 GB, free: 161.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.465e-05/5.464, allocations: 8 kB / 3.373 GB, free: 161.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.32e-05/5.465, allocations: 16 kB / 3.373 GB, free: 161.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002617/5.465, allocations: 145.3 kB / 3.373 GB, free: 161.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003322/5.465, allocations: 263.5 kB / 3.374 GB, free: 161.1 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.243e-05/5.465, allocations: 3.984 kB / 3.374 GB, free: 161.1 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.143e-05/5.465, allocations: 8 kB / 3.374 GB, free: 161.1 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/5.465, allocations: 4 kB / 3.374 GB, free: 161 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/5.466, allocations: 1.482 MB / 3.375 GB, free: 159.4 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001151/5.466, allocations: 86.53 kB / 3.375 GB, free: 159.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.124e-05/5.467, allocations: 65.09 kB / 3.375 GB, free: 159.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000497/5.467, allocations: 307.3 kB / 3.376 GB, free: 158.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.578e-05/5.467, allocations: 34.56 kB / 3.376 GB, free: 158.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=13): time 1.243e-06/5.467, allocations: 7.938 kB / 3.376 GB, free: 158.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=13): time 0.0005699/5.468, allocations: 205.3 kB / 3.376 GB, free: 158.7 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.903e-05/5.468, allocations: 55.34 kB / 3.376 GB, free: 158.6 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/5.468, allocations: 189.1 kB / 3.376 GB, free: 158.4 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/5.468, allocations: 25.7 kB / 3.376 GB, free: 158.4 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 6.321e-05/5.468, allocations: 164 kB / 3.376 GB, free: 158.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 2.694e-05/5.468, allocations: 47.36 kB / 3.376 GB, free: 158.2 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.193e-06/5.468, allocations: 4 kB / 3.376 GB, free: 158.2 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.67e-05/5.468, allocations: 330.8 kB / 3.377 GB, free: 157.8 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.02e-05/5.468, allocations: 39.98 kB / 3.377 GB, free: 157.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.065e-05/5.468, allocations: 102.8 kB / 3.377 GB, free: 157.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001738/5.468, allocations: 87.92 kB / 3.377 GB, free: 157.6 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/5.468, allocations: 4 kB / 3.377 GB, free: 157.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003075/5.469, allocations: 205.2 kB / 3.377 GB, free: 157.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/5.469, allocations: 11.84 kB / 3.377 GB, free: 157.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.791e-06/5.469, allocations: 0 / 3.377 GB, free: 157.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/5.469, allocations: 4 kB / 3.377 GB, free: 157.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001812/5.469, allocations: 40.08 kB / 3.377 GB, free: 157.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.82e-06/5.469, allocations: 4 kB / 3.377 GB, free: 157.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/5.469, allocations: 35.81 kB / 3.377 GB, free: 157.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.017e-05/5.469, allocations: 4 kB / 3.377 GB, free: 157.3 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 5.921e-05/5.469, allocations: 105.7 kB / 3.377 GB, free: 157.2 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.121e-05/5.469, allocations: 31.66 kB / 3.377 GB, free: 157.1 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003505/5.47, allocations: 198.5 kB / 3.377 GB, free: 156.9 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/5.47, allocations: 0 / 3.377 GB, free: 156.9 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/5.47, allocations: 0 / 3.377 GB, free: 156.9 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/5.47, allocations: 3.984 kB / 3.377 GB, free: 156.9 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007315/5.47, allocations: 0.6371 MB / 3.378 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.544e-06/5.47, allocations: 4 kB / 3.378 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001371/5.471, allocations: 32.2 kB / 3.378 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.348e-06/5.471, allocations: 7.984 kB / 3.378 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/5.471, allocations: 4 kB / 3.378 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.016e-06/5.471, allocations: 3.938 kB / 3.378 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.786e-06/5.471, allocations: 4 kB / 3.378 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003373/5.471, allocations: 405.1 kB / 3.378 GB, free: 155.7 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005976/5.472, allocations: 0.8295 MB / 3.379 GB, free: 154.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 6.892e-05/5.472, allocations: 112.8 kB / 3.379 GB, free: 154.7 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.594e-05/5.472, allocations: 7.984 kB / 3.379 GB, free: 154.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001848/5.472, allocations: 19.98 kB / 3.379 GB, free: 154.6 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.119e-05/5.472, allocations: 11.92 kB / 3.379 GB, free: 154.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.148e-05/5.472, allocations: 8 kB / 3.379 GB, free: 154.6 MB / 1.151 GB Notification: Performance of sort global known variables: time 9.136e-05/5.472, allocations: 149.2 kB / 3.38 GB, free: 154.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001355/5.473, allocations: 295.7 kB / 3.38 GB, free: 154.2 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 13 * 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 Backend phase and start with SimCode phase: time 0.001868/5.475, allocations: 1.35 MB / 3.381 GB, free: 152.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.000242/5.476, allocations: 124.3 kB / 3.381 GB, free: 152.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/5.476, allocations: 0 / 3.381 GB, free: 152.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 8.877e-05/5.476, allocations: 64.42 kB / 3.381 GB, free: 152.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000503/5.476, allocations: 85.16 kB / 3.381 GB, free: 152.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006347/5.477, allocations: 355.1 kB / 3.382 GB, free: 152.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/5.477, allocations: 0.8175 MB / 3.383 GB, free: 151.3 MB / 1.151 GB Notification: Performance of SimCode: time 3.21e-07/5.477, allocations: 0 / 3.383 GB, free: 151.3 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_EnthalpyFlowRate_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_EnthalpyFlowRate.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.EnthalpyFlowRate.pipe 2>&1)