Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.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.VolumeFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_VolumeFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.VolumeFlowRate,fileNamePrefix="Buildings_latest_Buildings_Fluid_Sensors_Examples_VolumeFlowRate",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.036/2.036, allocations: 390.4 MB / 397.7 MB, free: 11.24 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.001239/0.001239, allocations: 177.2 kB / 490.8 MB, free: 1.902 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.334/1.334, allocations: 221.4 MB / 0.7863 GB, free: 13.66 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.0008829/0.0008829, allocations: 80.31 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.5174/0.5183, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2136/0.7319, allocations: 143 MB / 1.212 GB, free: 40 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.515/4.247, allocations: 1.906 GB / 3.118 GB, free: 427 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002577/4.248, allocations: 84.14 kB / 3.118 GB, free: 427 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.4305/4.678, allocations: 247 MB / 3.359 GB, free: 175 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/4.678, allocations: 12 kB / 3.359 GB, free: 175 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001257/4.68, allocations: 167.3 kB / 3.359 GB, free: 174.8 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004623/4.68, allocations: 337.7 kB / 3.36 GB, free: 174.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.531e-05/4.68, allocations: 8 kB / 3.36 GB, free: 174.4 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.482e-05/4.68, allocations: 16 kB / 3.36 GB, free: 174.4 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003206/4.68, allocations: 208.8 kB / 3.36 GB, free: 174.2 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003247/4.681, allocations: 253.8 kB / 3.36 GB, free: 174 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/4.681, allocations: 0 / 3.36 GB, free: 174 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.578e-05/4.681, allocations: 4 kB / 3.36 GB, free: 174 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/4.681, allocations: 11.97 kB / 3.36 GB, free: 173.9 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001175/4.682, allocations: 1.084 MB / 3.361 GB, free: 172.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000308/4.682, allocations: 210.6 kB / 3.361 GB, free: 172.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/4.682, allocations: 104.8 kB / 3.361 GB, free: 172.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005059/4.683, allocations: 477.5 kB / 3.362 GB, free: 171.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.333e-05/4.683, allocations: 34.56 kB / 3.362 GB, free: 171.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=19): time 1.713e-06/4.683, allocations: 4 kB / 3.362 GB, free: 171.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=19): time 0.0008692/4.684, allocations: 257.4 kB / 3.362 GB, free: 171.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.844e-05/4.684, allocations: 51.41 kB / 3.362 GB, free: 171.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001453/4.684, allocations: 193.1 kB / 3.362 GB, free: 171.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.842e-05/4.684, allocations: 29.7 kB / 3.362 GB, free: 171.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 5.46e-05/4.684, allocations: 144.2 kB / 3.363 GB, free: 171.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.494e-05/4.684, allocations: 63.02 kB / 3.363 GB, free: 171.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.206e-06/4.684, allocations: 0 / 3.363 GB, free: 171.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 5.814e-05/4.684, allocations: 338.8 kB / 3.363 GB, free: 170.8 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.285e-05/4.684, allocations: 44.36 kB / 3.363 GB, free: 170.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001032/4.684, allocations: 116.5 kB / 3.363 GB, free: 170.6 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002191/4.685, allocations: 95.89 kB / 3.363 GB, free: 170.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/4.685, allocations: 0 / 3.363 GB, free: 170.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003717/4.685, allocations: 218.2 kB / 3.363 GB, free: 170.3 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/4.685, allocations: 6.812 kB / 3.363 GB, free: 170.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/4.685, allocations: 4.078 kB / 3.363 GB, free: 170.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/4.685, allocations: 11.91 kB / 3.363 GB, free: 170.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002083/4.685, allocations: 47.97 kB / 3.364 GB, free: 170.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/4.685, allocations: 3.938 kB / 3.364 GB, free: 170.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001921/4.686, allocations: 31.83 kB / 3.364 GB, free: 170.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.25e-05/4.686, allocations: 11.98 kB / 3.364 GB, free: 170.2 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 (22): * Single equations (assignments): 22 * 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 6.153e-05/4.686, allocations: 101 kB / 3.364 GB, free: 170.1 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.354e-05/4.686, allocations: 27.72 kB / 3.364 GB, free: 170 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004187/4.686, allocations: 227.6 kB / 3.364 GB, free: 169.8 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/4.686, allocations: 7.906 kB / 3.364 GB, free: 169.8 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/4.686, allocations: 0 / 3.364 GB, free: 169.8 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.676e-06/4.686, allocations: 4 kB / 3.364 GB, free: 169.8 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008858/4.687, allocations: 0.6989 MB / 3.365 GB, free: 169 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/4.687, allocations: 4 kB / 3.365 GB, free: 169 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001956/4.687, allocations: 43.91 kB / 3.365 GB, free: 169 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/4.687, allocations: 4 kB / 3.365 GB, free: 169 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/4.687, allocations: 4.344 kB / 3.365 GB, free: 169 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/4.687, allocations: 8 kB / 3.365 GB, free: 169 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/4.687, allocations: 7.938 kB / 3.365 GB, free: 168.9 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005201/4.688, allocations: 0.5762 MB / 3.365 GB, free: 168.3 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007745/4.689, allocations: 1.066 MB / 3.366 GB, free: 167.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 8.071e-05/4.689, allocations: 120.8 kB / 3.366 GB, free: 166.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.193e-05/4.689, allocations: 7.984 kB / 3.366 GB, free: 166.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002073/4.689, allocations: 23.95 kB / 3.366 GB, free: 166.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.592e-05/4.689, allocations: 15.92 kB / 3.366 GB, free: 166.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/4.689, allocations: 8 kB / 3.366 GB, free: 166.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 9.315e-05/4.689, allocations: 157.2 kB / 3.367 GB, free: 166.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001279/4.69, allocations: 259.8 kB / 3.367 GB, free: 166.5 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 1 (senDyn.d) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.001277/4.692, allocations: 1.201 MB / 3.368 GB, free: 165.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0002448/4.692, allocations: 136 kB / 3.368 GB, free: 165.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/4.692, allocations: 8.125 kB / 3.368 GB, free: 165.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0001058/4.692, allocations: 75.86 kB / 3.368 GB, free: 165.1 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000648/4.693, allocations: 117.2 kB / 3.368 GB, free: 164.9 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007504/4.694, allocations: 442.8 kB / 3.369 GB, free: 164.4 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002806/4.694, allocations: 0.8176 MB / 3.37 GB, free: 163.6 MB / 1.151 GB Notification: Performance of SimCode: time 3.1e-07/4.694, allocations: 0 / 3.37 GB, free: 163.6 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Sensors_Examples_VolumeFlowRate_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Sensors_Examples_VolumeFlowRate.fmu > Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe 2>&1)