Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Fluid.Sensors.Examples.Velocity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senDyn.port_a.m_flow|senDyn.v|senSteSta.v",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity") translateModel(Buildings.Fluid.Sensors.Examples.Velocity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senDyn.port_a.m_flow|senDyn.v|senSteSta.v",fileNamePrefix="Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity") [: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 9.1.1-maint.9.1.x/package.mo): time 2.028/2.028, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001111/0.001111, allocations: 185.3 kB / 487 MB, free: 5.387 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.385/1.385, allocations: 221.3 MB / 0.7819 GB, free: 1.43 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009779/0.0009778, allocations: 96.55 kB / 0.9213 GB, free: 2.676 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.674e-06/7.704e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2433/0.2433, allocations: 142.3 MB / 1.205 GB, free: 26.25 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.973/4.216, allocations: 1.906 GB / 3.111 GB, free: 413.4 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/4.216, allocations: 87.95 kB / 3.111 GB, free: 413.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 0.4361/4.652, allocations: 246.4 MB / 3.352 GB, free: 161.8 MB / 1.151 GB Notification: Performance of Transformations before backend: time 3.12e-05/4.652, allocations: 11.98 kB / 3.352 GB, free: 161.7 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.001157/4.654, allocations: 0.6421 MB / 3.352 GB, free: 161.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/4.654, allocations: 12.03 kB / 3.352 GB, free: 161 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001292/4.655, allocations: 167.4 kB / 3.352 GB, free: 160.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005029/4.655, allocations: 346.3 kB / 3.353 GB, free: 160.5 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/4.655, allocations: 4 kB / 3.353 GB, free: 160.5 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.869e-05/4.656, allocations: 16 kB / 3.353 GB, free: 160.5 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003465/4.656, allocations: 220.8 kB / 3.353 GB, free: 160.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003482/4.656, allocations: 254.5 kB / 3.353 GB, free: 160 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/4.656, allocations: 0 / 3.353 GB, free: 160 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.511e-05/4.656, allocations: 3.984 kB / 3.353 GB, free: 160 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/4.656, allocations: 8 kB / 3.353 GB, free: 160 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001331/4.658, allocations: 1.102 MB / 3.354 GB, free: 158.8 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003565/4.658, allocations: 227.1 kB / 3.355 GB, free: 158.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001361/4.658, allocations: 109.2 kB / 3.355 GB, free: 158.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005946/4.659, allocations: 473.6 kB / 3.355 GB, free: 157.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.516e-05/4.659, allocations: 30.75 kB / 3.355 GB, free: 157.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=21): time 2.054e-06/4.659, allocations: 0 / 3.355 GB, free: 157.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=21): time 0.0009619/4.66, allocations: 282.1 kB / 3.355 GB, free: 157.6 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.756e-05/4.66, allocations: 59.34 kB / 3.355 GB, free: 157.5 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001718/4.66, allocations: 193.1 kB / 3.356 GB, free: 157.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 2.222e-05/4.66, allocations: 25.7 kB / 3.356 GB, free: 157.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 7.142e-05/4.66, allocations: 148.3 kB / 3.356 GB, free: 157.1 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 4.956e-05/4.66, allocations: 78.84 kB / 3.356 GB, free: 157.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.789e-06/4.66, allocations: 0 / 3.356 GB, free: 157.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 9.486e-05/4.66, allocations: 334.8 kB / 3.356 GB, free: 156.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.105e-05/4.66, allocations: 48.39 kB / 3.356 GB, free: 156.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001188/4.66, allocations: 112.8 kB / 3.356 GB, free: 156.5 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002493/4.661, allocations: 107.8 kB / 3.356 GB, free: 156.4 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/4.661, allocations: 4 kB / 3.356 GB, free: 156.4 MB / 1.151 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003869/4.661, allocations: 225.2 kB / 3.357 GB, free: 156.2 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/4.661, allocations: 4 kB / 3.357 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/4.661, allocations: 3.906 kB / 3.357 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.78e-05/4.661, allocations: 4 kB / 3.357 GB, free: 156.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002242/4.661, allocations: 60 kB / 3.357 GB, free: 156.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/4.661, allocations: 0 / 3.357 GB, free: 156.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002074/4.662, allocations: 27.83 kB / 3.357 GB, free: 156.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.701e-05/4.662, allocations: 12.08 kB / 3.357 GB, free: 156.1 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 (24): * Single equations (assignments): 24 * 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.947e-05/4.662, allocations: 120.4 kB / 3.357 GB, free: 156 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.98e-05/4.662, allocations: 31.61 kB / 3.357 GB, free: 155.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004418/4.662, allocations: 227.7 kB / 3.357 GB, free: 155.7 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.538e-06/4.662, allocations: 4 kB / 3.357 GB, free: 155.7 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/4.662, allocations: 0 / 3.357 GB, free: 155.7 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/4.662, allocations: 0 / 3.357 GB, free: 155.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008932/4.663, allocations: 0.7147 MB / 3.358 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/4.663, allocations: 4.062 kB / 3.358 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000208/4.663, allocations: 47.91 kB / 3.358 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/4.663, allocations: 4 kB / 3.358 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.786e-05/4.663, allocations: 7.906 kB / 3.358 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/4.664, allocations: 4 kB / 3.358 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.448e-06/4.664, allocations: 4 kB / 3.358 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006035/4.664, allocations: 0.596 MB / 3.358 GB, free: 154.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 8.932e-05/4.664, allocations: 132.6 kB / 3.359 GB, free: 154 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.238e-05/4.664, allocations: 0 / 3.359 GB, free: 154 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002108/4.664, allocations: 24.05 kB / 3.359 GB, free: 154 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.577e-05/4.665, allocations: 19.92 kB / 3.359 GB, free: 154 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/4.665, allocations: 11.91 kB / 3.359 GB, free: 153.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0001287/4.665, allocations: 161.3 kB / 3.359 GB, free: 153.8 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0006359/4.665, allocations: 155.8 kB / 3.359 GB, free: 153.6 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 (21): * Single equations (assignments): 21 * 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.001409/4.667, allocations: 1.19 MB / 3.36 GB, free: 152.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0002609/4.667, allocations: 144 kB / 3.36 GB, free: 152.3 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/4.667, allocations: 0 / 3.36 GB, free: 152.3 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0001144/4.667, allocations: 88.3 kB / 3.36 GB, free: 152.2 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006581/4.668, allocations: 117 kB / 3.36 GB, free: 152.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008041/4.669, allocations: 448.2 kB / 3.361 GB, free: 151.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002989/4.669, allocations: 0.8219 MB / 3.362 GB, free: 150.8 MB / 1.151 GB Notification: Performance of SimCode: time 2.31e-07/4.669, allocations: 0 / 3.362 GB, free: 150.8 MB / 1.151 GB Notification: Performance of Templates: time 0.01617/4.685, allocations: 10.41 MB / 3.372 GB, free: 140.4 MB / 1.151 GB make -j1 -f Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.makefile (rm -f Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; mkfifo Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe >> ../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.sim & ./Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Sensors_Examples_Velocity.csv","../files/Buildings_9_Buildings.Fluid.Sensors.Examples.Velocity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches