Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Pressure.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Fluid.Sensors.Examples.Pressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp.port_a.m_flow|senRelPre.p_rel|senPre_a.p|senPre_b.p",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Pressure") translateModel(Buildings.Fluid.Sensors.Examples.Pressure,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp.port_a.m_flow|senRelPre.p_rel|senPre_a.p|senPre_b.p",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Pressure") [: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 7.0.3-maint.7.0.x/package.mo): time 1.226/1.226, allocations: 249.4 MB / 256.7 MB, free: 7.039 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009321/0.0009321, allocations: 185.2 kB / 316 MB, free: 3.574 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.03/1.03, allocations: 205.2 MB / 0.5667 GB, free: 15.73 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008017/0.0008014, allocations: 83.38 kB / 0.671 GB, free: 4.863 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.054e-06/7.074e-06, allocations: 4 kB / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1373/0.1373, allocations: 106.3 MB / 0.8846 GB, free: 12.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.418/3.555, allocations: 2.183 GB / 3.067 GB, free: 222.5 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002597/3.556, allocations: 85.59 kB / 3.067 GB, free: 222.4 MB / 0.8698 GB Notification: Performance of FrontEnd: time 0.889/4.445, allocations: 331.8 MB / 3.391 GB, free: 228.3 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 3.41e-05/4.445, allocations: 14.59 kB / 3.391 GB, free: 228.3 MB / 0.8698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 52 * Number of variables: 52 Notification: Performance of Generate backend data structure: time 0.001128/4.446, allocations: 0.6698 MB / 3.392 GB, free: 227.7 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/4.446, allocations: 12.98 kB / 3.392 GB, free: 227.7 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003517/4.446, allocations: 62.64 kB / 3.392 GB, free: 227.6 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005379/4.447, allocations: 317.9 kB / 3.392 GB, free: 227.3 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.451e-05/4.447, allocations: 7.312 kB / 3.392 GB, free: 227.3 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.216e-05/4.447, allocations: 17.66 kB / 3.393 GB, free: 227.3 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002701/4.447, allocations: 121.6 kB / 3.393 GB, free: 227.3 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003592/4.447, allocations: 253.3 kB / 3.393 GB, free: 227.1 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.46e-05/4.448, allocations: 1.438 kB / 3.393 GB, free: 227.1 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.224e-05/4.448, allocations: 1.25 kB / 3.393 GB, free: 227.1 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.982e-05/4.448, allocations: 5.406 kB / 3.393 GB, free: 227.1 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001559/4.449, allocations: 1.664 MB / 3.395 GB, free: 225.5 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002222/4.449, allocations: 76.58 kB / 3.395 GB, free: 225.5 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/4.45, allocations: 58.83 kB / 3.395 GB, free: 225.5 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002922/4.45, allocations: 197 kB / 3.395 GB, free: 225.3 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/4.45, allocations: 31.53 kB / 3.395 GB, free: 225.2 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=11): time 1.964e-06/4.45, allocations: 0 / 3.395 GB, free: 225.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=11): time 0.0005313/4.45, allocations: 152.3 kB / 3.395 GB, free: 225.1 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.562e-05/4.45, allocations: 53.59 kB / 3.395 GB, free: 225.1 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002555/4.451, allocations: 223.8 kB / 3.395 GB, free: 224.9 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/4.451, allocations: 26.36 kB / 3.395 GB, free: 224.9 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/4.451, allocations: 175.2 kB / 3.395 GB, free: 224.7 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.314e-05/4.451, allocations: 40.7 kB / 3.395 GB, free: 224.7 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.506e-06/4.451, allocations: 1.312 kB / 3.395 GB, free: 224.7 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 8.77e-05/4.451, allocations: 327.8 kB / 3.396 GB, free: 224.4 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.679e-05/4.451, allocations: 42.98 kB / 3.396 GB, free: 224.3 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000181/4.451, allocations: 167.6 kB / 3.396 GB, free: 224.2 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001282/4.451, allocations: 76.64 kB / 3.396 GB, free: 224.1 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/4.451, allocations: 1.125 kB / 3.396 GB, free: 224.1 MB / 0.8698 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003613/4.452, allocations: 194.8 kB / 3.396 GB, free: 224 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003737/4.452, allocations: 1.397 MB / 3.398 GB, free: 222.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/4.452, allocations: 3.375 kB / 3.398 GB, free: 222.5 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.814e-05/4.452, allocations: 6.062 kB / 3.398 GB, free: 222.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002406/4.452, allocations: 54.22 kB / 3.398 GB, free: 222.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.635e-05/4.452, allocations: 5.156 kB / 3.398 GB, free: 222.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002934/4.453, allocations: 41.5 kB / 3.398 GB, free: 222.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.949e-05/4.453, allocations: 11.5 kB / 3.398 GB, free: 222.5 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.796e-06/4.453, allocations: 3.812 kB / 3.398 GB, free: 222.5 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002793/4.453, allocations: 145.3 kB / 3.398 GB, free: 222.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.198e-06/4.453, allocations: 7.672 kB / 3.398 GB, free: 222.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.898e-06/4.453, allocations: 6.188 kB / 3.398 GB, free: 222.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002155/4.453, allocations: 49.77 kB / 3.398 GB, free: 222.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.859e-06/4.453, allocations: 9.828 kB / 3.398 GB, free: 222.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/4.454, allocations: 32.42 kB / 3.398 GB, free: 222.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.864e-05/4.454, allocations: 14.89 kB / 3.398 GB, free: 222.4 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 9.051e-05/4.454, allocations: 112.4 kB / 3.398 GB, free: 222.3 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.659e-05/4.454, allocations: 27.03 kB / 3.398 GB, free: 222.2 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002909/4.454, allocations: 135.6 kB / 3.398 GB, free: 222.2 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.651e-06/4.454, allocations: 1.875 kB / 3.398 GB, free: 222.2 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/4.454, allocations: 3.938 kB / 3.398 GB, free: 222.1 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/4.454, allocations: 4.906 kB / 3.398 GB, free: 222.1 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008217/4.455, allocations: 0.5391 MB / 3.399 GB, free: 221.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/4.455, allocations: 2.031 kB / 3.399 GB, free: 221.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001491/4.455, allocations: 31.05 kB / 3.399 GB, free: 221.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.109e-06/4.455, allocations: 2.719 kB / 3.399 GB, free: 221.7 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.782e-05/4.455, allocations: 2.688 kB / 3.399 GB, free: 221.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/4.455, allocations: 2.281 kB / 3.399 GB, free: 221.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.507e-06/4.455, allocations: 10.34 kB / 3.399 GB, free: 221.7 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003362/4.456, allocations: 351.5 kB / 3.399 GB, free: 221.3 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/4.456, allocations: 106.3 kB / 3.399 GB, free: 221.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.621e-05/4.456, allocations: 3.156 kB / 3.399 GB, free: 221.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/4.456, allocations: 24.11 kB / 3.399 GB, free: 221.2 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.374e-05/4.456, allocations: 16.77 kB / 3.399 GB, free: 221.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.252e-05/4.456, allocations: 5.125 kB / 3.399 GB, free: 221.2 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.0001594/4.456, allocations: 170.9 kB / 3.399 GB, free: 221 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0008406/4.457, allocations: 223.6 kB / 3.4 GB, free: 220.8 MB / 0.8698 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 (11): * Single equations (assignments): 11 * 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.001615/4.459, allocations: 1.429 MB / 3.401 GB, free: 219.5 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.000293/4.459, allocations: 199.2 kB / 3.401 GB, free: 219.3 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/4.459, allocations: 0 / 3.401 GB, free: 219.3 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 6.74e-05/4.459, allocations: 49.61 kB / 3.401 GB, free: 219.3 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000602/4.46, allocations: 109.1 kB / 3.401 GB, free: 219.2 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005596/4.46, allocations: 342.7 kB / 3.402 GB, free: 218.8 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002385/4.461, allocations: 0.8031 MB / 3.403 GB, free: 217.9 MB / 0.8698 GB Notification: Performance of SimCode: time 2.4e-07/4.461, allocations: 0 / 3.403 GB, free: 217.9 MB / 0.8698 GB Notification: Performance of Templates: time 0.01625/4.477, allocations: 11.59 MB / 3.414 GB, free: 206.4 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Pressure.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Pressure.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Pressure.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Pressure.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Pressure.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Pressure -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Pressure.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Pressure_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Sensors_Examples_Pressure.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Sensors.Examples.Pressure.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches