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: translateModel(Buildings.Fluid.Sensors.Examples.VolumeFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senDyn.port_a.m_flow|senDyn.V_flow|senSteSta.V_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate") translateModel(Buildings.Fluid.Sensors.Examples.VolumeFlowRate,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senDyn.port_a.m_flow|senDyn.V_flow|senSteSta.V_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate") [: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 1.97/1.97, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.001173/0.001173, allocations: 181.3 kB / 490.8 MB, free: 1.977 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.344/1.344, allocations: 221.3 MB / 0.7863 GB, free: 13.68 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.001326/0.001326, allocations: 97.84 kB / 0.9264 GB, free: 14.22 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.525e-06/7.545e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.225, allocations: 143 MB / 1.212 GB, free: 40.16 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.557/3.782, allocations: 1.906 GB / 3.118 GB, free: 428.9 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002652/3.782, allocations: 82.02 kB / 3.118 GB, free: 428.9 MB / 1.151 GB Notification: Performance of FrontEnd: time 0.4554/4.237, allocations: 246.3 MB / 3.358 GB, free: 180.9 MB / 1.151 GB Notification: Performance of Transformations before backend: time 3.247e-05/4.238, allocations: 8 kB / 3.358 GB, free: 180.9 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.001219/4.239, allocations: 0.6305 MB / 3.359 GB, free: 180.2 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.298e-05/4.239, allocations: 8.031 kB / 3.359 GB, free: 180.2 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001395/4.24, allocations: 167.3 kB / 3.359 GB, free: 180.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005919/4.241, allocations: 341.7 kB / 3.36 GB, free: 179.7 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.648e-05/4.241, allocations: 8 kB / 3.36 GB, free: 179.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.548e-05/4.241, allocations: 16 kB / 3.36 GB, free: 179.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003573/4.241, allocations: 204.8 kB / 3.36 GB, free: 179.5 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003607/4.242, allocations: 253.8 kB / 3.36 GB, free: 179.2 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.475e-05/4.242, allocations: 0 / 3.36 GB, free: 179.2 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.484e-05/4.242, allocations: 0 / 3.36 GB, free: 179.2 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/4.242, allocations: 8 kB / 3.36 GB, free: 179.2 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00147/4.243, allocations: 1.09 MB / 3.361 GB, free: 178 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003697/4.244, allocations: 218.5 kB / 3.361 GB, free: 177.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001421/4.244, allocations: 108.8 kB / 3.361 GB, free: 177.7 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006006/4.244, allocations: 465.5 kB / 3.362 GB, free: 177.1 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/4.244, allocations: 38.55 kB / 3.362 GB, free: 177.1 MB / 1.151 GB Notification: Performance of pre-optimization done (n=19): time 1.323e-06/4.244, allocations: 0 / 3.362 GB, free: 177.1 MB / 1.151 GB Notification: Performance of matching and sorting (n=19): time 0.0009571/4.245, allocations: 257.4 kB / 3.362 GB, free: 176.8 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.593e-05/4.245, allocations: 55.41 kB / 3.362 GB, free: 176.8 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001606/4.246, allocations: 193.1 kB / 3.362 GB, free: 176.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/4.246, allocations: 25.7 kB / 3.362 GB, free: 176.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 6.455e-05/4.246, allocations: 144.2 kB / 3.363 GB, free: 176.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 4.23e-05/4.246, allocations: 67 kB / 3.363 GB, free: 176.3 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.987e-06/4.246, allocations: 3.938 kB / 3.363 GB, free: 176.3 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.891e-05/4.246, allocations: 334.8 kB / 3.363 GB, free: 176 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.342e-05/4.246, allocations: 40.38 kB / 3.363 GB, free: 176 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/4.246, allocations: 116.1 kB / 3.363 GB, free: 175.8 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002285/4.246, allocations: 100.4 kB / 3.363 GB, free: 175.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/4.246, allocations: 0 / 3.363 GB, free: 175.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0003912/4.247, allocations: 227.4 kB / 3.363 GB, free: 175.5 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.477e-05/4.247, allocations: 8 kB / 3.363 GB, free: 175.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/4.247, allocations: 0 / 3.363 GB, free: 175.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/4.247, allocations: 7.906 kB / 3.363 GB, free: 175.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/4.247, allocations: 39.98 kB / 3.363 GB, free: 175.4 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.858e-06/4.247, allocations: 7.922 kB / 3.363 GB, free: 175.4 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002247/4.247, allocations: 39.91 kB / 3.363 GB, free: 175.4 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-05/4.247, allocations: 8.062 kB / 3.363 GB, free: 175.4 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 7.506e-05/4.247, allocations: 101 kB / 3.364 GB, free: 175.3 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.101e-05/4.247, allocations: 27.72 kB / 3.364 GB, free: 175.2 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004522/4.248, allocations: 223.6 kB / 3.364 GB, free: 175 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.909e-06/4.248, allocations: 7.906 kB / 3.364 GB, free: 175 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/4.248, allocations: 0 / 3.364 GB, free: 175 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/4.248, allocations: 0 / 3.364 GB, free: 175 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000903/4.249, allocations: 0.6989 MB / 3.365 GB, free: 174.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.751e-06/4.249, allocations: 4.094 kB / 3.365 GB, free: 174.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000201/4.249, allocations: 52.25 kB / 3.365 GB, free: 174.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/4.249, allocations: 7.984 kB / 3.365 GB, free: 174.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.711e-05/4.249, allocations: 7.938 kB / 3.365 GB, free: 174.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/4.249, allocations: 4 kB / 3.365 GB, free: 174.2 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/4.249, allocations: 4 kB / 3.365 GB, free: 174.2 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000592/4.25, allocations: 0.5757 MB / 3.365 GB, free: 173.5 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 9.233e-05/4.25, allocations: 124.7 kB / 3.365 GB, free: 173.3 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.148e-05/4.25, allocations: 4 kB / 3.365 GB, free: 173.3 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000211/4.25, allocations: 15.98 kB / 3.365 GB, free: 173.3 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.354e-05/4.25, allocations: 31.89 kB / 3.365 GB, free: 173.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/4.25, allocations: 4 kB / 3.365 GB, free: 173.3 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0001089/4.25, allocations: 157.2 kB / 3.365 GB, free: 173.1 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0005971/4.251, allocations: 147.8 kB / 3.366 GB, free: 173 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.001655/4.252, allocations: 1.19 MB / 3.367 GB, free: 171.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0002529/4.253, allocations: 136 kB / 3.367 GB, free: 171.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.457e-06/4.253, allocations: 0 / 3.367 GB, free: 171.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0001135/4.253, allocations: 76.55 kB / 3.367 GB, free: 171.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000668/4.254, allocations: 116.6 kB / 3.367 GB, free: 171.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008391/4.254, allocations: 446.8 kB / 3.368 GB, free: 171 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003181/4.255, allocations: 0.8137 MB / 3.368 GB, free: 170.1 MB / 1.151 GB Notification: Performance of SimCode: time 2.4e-07/4.255, allocations: 0 / 3.368 GB, free: 170.1 MB / 1.151 GB Notification: Performance of Templates: time 0.01777/4.272, allocations: 10.34 MB / 3.378 GB, free: 159.9 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.makefile (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 & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_VolumeFlowRate.csv","../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.VolumeFlowRate.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches