Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.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.Sensors.Examples.VolumeFlowRate,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_VolumeFlowRate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.6911/0.6911, allocations: 141.8 MB / 149.1 MB, free: 4.594 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.001086/0.001086, allocations: 185.5 kB / 181.9 MB, free: 236 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.206/1.206, allocations: 221.4 MB / 436 MB, free: 9.324 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.0009087/0.0009088, allocations: 96.06 kB / 0.507 GB, free: 24.27 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001787/0.001787, allocations: 280.9 kB / 0.5884 GB, free: 12.36 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1643/0.1661, allocations: 89.64 MB / 0.676 GB, free: 2.633 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.5217, allocations: 82.77 MB / 0.7568 GB, free: 113 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.235/3.757, allocations: 1.866 GB / 2.623 GB, free: 214.9 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002287/3.757, allocations: 84.44 kB / 2.623 GB, free: 214.8 MB / 0.6982 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.7727/4.53, allocations: 247 MB / 2.864 GB, free: 200.3 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/4.53, allocations: 7.375 kB / 2.864 GB, free: 200.3 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001345/4.532, allocations: 171.3 kB / 2.864 GB, free: 200.3 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005912/4.532, allocations: 344 kB / 2.864 GB, free: 200.1 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/4.532, allocations: 3.938 kB / 2.864 GB, free: 200.1 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.99e-05/4.532, allocations: 15.59 kB / 2.864 GB, free: 200.1 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003608/4.533, allocations: 211.4 kB / 2.865 GB, free: 200.1 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003768/4.533, allocations: 249.8 kB / 2.865 GB, free: 200 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/4.533, allocations: 2.906 kB / 2.865 GB, free: 200 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.41e-05/4.533, allocations: 0 / 2.865 GB, free: 200 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.716e-06/4.533, allocations: 6.438 kB / 2.865 GB, free: 200 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00154/4.535, allocations: 1.097 MB / 2.866 GB, free: 199.4 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003624/4.535, allocations: 213.5 kB / 2.866 GB, free: 199.4 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/4.535, allocations: 106.4 kB / 2.866 GB, free: 199.3 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006043/4.536, allocations: 470.2 kB / 2.867 GB, free: 198.9 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.714e-05/4.536, allocations: 38.28 kB / 2.867 GB, free: 198.8 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=19): time 3.567e-06/4.536, allocations: 0 / 2.867 GB, free: 198.8 MB / 0.6982 GB Notification: Performance of matching and sorting (n=19): time 0.0009934/4.537, allocations: 266.7 kB / 2.867 GB, free: 198.8 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.425e-05/4.537, allocations: 54.56 kB / 2.867 GB, free: 198.7 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001874/4.537, allocations: 191.8 kB / 2.867 GB, free: 198.6 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 2.185e-05/4.537, allocations: 25.7 kB / 2.867 GB, free: 198.6 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 7.069e-05/4.537, allocations: 145.6 kB / 2.867 GB, free: 198.5 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 4.726e-05/4.537, allocations: 62.2 kB / 2.867 GB, free: 198.5 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.696e-06/4.537, allocations: 3.906 kB / 2.867 GB, free: 198.5 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 7.213e-05/4.537, allocations: 334.7 kB / 2.868 GB, free: 198.2 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.546e-05/4.537, allocations: 46.48 kB / 2.868 GB, free: 198.2 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001117/4.538, allocations: 107 kB / 2.868 GB, free: 198.1 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002331/4.538, allocations: 107.8 kB / 2.868 GB, free: 198.1 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/4.538, allocations: 0 / 2.868 GB, free: 198.1 MB / 0.6982 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0004166/4.538, allocations: 224.5 kB / 2.868 GB, free: 198.1 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/4.538, allocations: 13.84 kB / 2.868 GB, free: 198 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.364e-06/4.538, allocations: 0 / 2.868 GB, free: 198 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/4.538, allocations: 3.812 kB / 2.868 GB, free: 198 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002215/4.538, allocations: 41.98 kB / 2.868 GB, free: 198 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.496e-05/4.539, allocations: 3.5 kB / 2.868 GB, free: 198 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002548/4.539, allocations: 31.22 kB / 2.868 GB, free: 198 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.143e-05/4.539, allocations: 11.72 kB / 2.868 GB, free: 198 MB / 0.6982 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 8.182e-05/4.539, allocations: 106.6 kB / 2.868 GB, free: 197.9 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.898e-05/4.539, allocations: 22.81 kB / 2.868 GB, free: 197.9 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004456/4.539, allocations: 233.4 kB / 2.869 GB, free: 197.9 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/4.539, allocations: 3.938 kB / 2.869 GB, free: 197.9 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/4.539, allocations: 2.906 kB / 2.869 GB, free: 197.9 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.01e-06/4.539, allocations: 0 / 2.869 GB, free: 197.9 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009401/4.54, allocations: 0.7029 MB / 2.869 GB, free: 197.5 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.489e-06/4.54, allocations: 3.312 kB / 2.869 GB, free: 197.5 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001933/4.541, allocations: 44.97 kB / 2.869 GB, free: 197.5 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.612e-06/4.541, allocations: 3.906 kB / 2.869 GB, free: 197.5 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.827e-05/4.541, allocations: 3.906 kB / 2.869 GB, free: 197.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.031e-06/4.541, allocations: 10.58 kB / 2.869 GB, free: 197.5 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/4.541, allocations: 0 / 2.869 GB, free: 197.5 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006398/4.541, allocations: 0.577 MB / 2.87 GB, free: 197.1 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008369/4.542, allocations: 1.068 MB / 2.871 GB, free: 196.3 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/4.542, allocations: 120.3 kB / 2.871 GB, free: 196.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.5e-05/4.542, allocations: 3.531 kB / 2.871 GB, free: 196.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00022/4.543, allocations: 21.64 kB / 2.871 GB, free: 196.2 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.467e-05/4.543, allocations: 22.06 kB / 2.871 GB, free: 196.2 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/4.543, allocations: 10.56 kB / 2.871 GB, free: 196.2 MB / 0.6982 GB Notification: Performance of sort global known variables: time 9.672e-05/4.543, allocations: 153 kB / 2.871 GB, free: 196.1 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001305/4.544, allocations: 271.3 kB / 2.872 GB, free: 196.1 MB / 0.6982 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.001454/4.546, allocations: 1.187 MB / 2.873 GB, free: 195.9 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0002405/4.546, allocations: 138.5 kB / 2.873 GB, free: 195.9 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/4.546, allocations: 3.062 kB / 2.873 GB, free: 195.9 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0001098/4.546, allocations: 78.5 kB / 2.873 GB, free: 195.9 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006615/4.547, allocations: 123.9 kB / 2.873 GB, free: 195.9 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007925/4.547, allocations: 436.5 kB / 2.873 GB, free: 195.7 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002969/4.548, allocations: 0.8184 MB / 2.874 GB, free: 195 MB / 0.6982 GB Notification: Performance of SimCode: time 2.71e-07/4.548, allocations: 0 / 2.874 GB, free: 195 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_VolumeFlowRate_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_VolumeFlowRate.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.VolumeFlowRate.pipe 2>&1)