Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.PropertySource_h.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.Sources.Examples.PropertySource_h,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|proSouXi.port_b.h_outflow|proSouH.port_b.h_outflow|proSouC.port_b.h_outflow|proSouXi.port_a.h_outflow|proSouH.port_a.h_outflow|proSouC.port_a.h_outflow|proSouXi.port_b.Xi_outflow.1.|proSouH.port_b.Xi_outflow.1.|proSouC.port_b.Xi_outflow.1.|proSouXi.port_a.Xi_outflow.1.|proSouH.port_a.Xi_outflow.1.|proSouC.port_a.Xi_outflow.1.|proSouH.port_a.C_outflow.1.|proSouH.port_b.C_outflow.1.|proSouC.port_a.C_outflow.1.|proSouC.port_b.C_outflow.1.|proSouXi.port_a.C_outflow.1.|proSouXi.port_b.C_outflow.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.PropertySource_h") translateModel(Buildings.Fluid.Sources.Examples.PropertySource_h,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|proSouXi.port_b.h_outflow|proSouH.port_b.h_outflow|proSouC.port_b.h_outflow|proSouXi.port_a.h_outflow|proSouH.port_a.h_outflow|proSouC.port_a.h_outflow|proSouXi.port_b.Xi_outflow.1.|proSouH.port_b.Xi_outflow.1.|proSouC.port_b.Xi_outflow.1.|proSouXi.port_a.Xi_outflow.1.|proSouH.port_a.Xi_outflow.1.|proSouC.port_a.Xi_outflow.1.|proSouH.port_a.C_outflow.1.|proSouH.port_b.C_outflow.1.|proSouC.port_a.C_outflow.1.|proSouC.port_b.C_outflow.1.|proSouXi.port_a.C_outflow.1.|proSouXi.port_b.C_outflow.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.PropertySource_h") [: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.217/1.217, allocations: 249.4 MB / 256.7 MB, free: 7.078 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.001022/0.001022, allocations: 188.3 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.145/1.145, allocations: 205.1 MB / 0.5667 GB, free: 15.72 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.0008884/0.0008884, allocations: 83.95 kB / 0.671 GB, free: 4.855 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.943e-06/6.973e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1665/0.1666, allocations: 106.3 MB / 0.8846 GB, free: 12.69 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.443/3.61, allocations: 2.183 GB / 3.068 GB, free: 222.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001832/3.61, allocations: 91.55 kB / 3.068 GB, free: 222.5 MB / 0.8698 GB Notification: Performance of FrontEnd: time 0.9236/4.534, allocations: 397.7 MB / 3.456 GB, free: 164.1 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 3.409e-05/4.534, allocations: 18.27 kB / 3.456 GB, free: 164 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: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.001118/4.535, allocations: 0.8536 MB / 3.457 GB, free: 163.2 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/4.535, allocations: 8.031 kB / 3.457 GB, free: 163.1 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.9e-05/4.535, allocations: 67.25 kB / 3.457 GB, free: 163.1 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004852/4.535, allocations: 428.2 kB / 3.458 GB, free: 162.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.473e-05/4.535, allocations: 20.22 kB / 3.458 GB, free: 162.6 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.364e-05/4.536, allocations: 36 kB / 3.458 GB, free: 162.6 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003859/4.536, allocations: 294.4 kB / 3.458 GB, free: 162.3 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005788/4.537, allocations: 0.591 MB / 3.459 GB, free: 161.6 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/4.537, allocations: 3.938 kB / 3.459 GB, free: 161.6 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.277e-05/4.537, allocations: 4 kB / 3.459 GB, free: 161.6 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.166e-05/4.537, allocations: 27.98 kB / 3.459 GB, free: 161.6 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001419/4.538, allocations: 2.991 MB / 3.462 GB, free: 158.5 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 9.365e-05/4.538, allocations: 202.2 kB / 3.462 GB, free: 158.2 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.255e-05/4.538, allocations: 116.6 kB / 3.462 GB, free: 158 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.361e-05/4.538, allocations: 7.984 kB / 3.462 GB, free: 158 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.735e-05/4.538, allocations: 50.41 kB / 3.462 GB, free: 158 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=10): time 1.323e-06/4.538, allocations: 0 / 3.462 GB, free: 158 MB / 0.8698 GB Notification: Performance of matching and sorting (n=10): time 0.0003582/4.539, allocations: 129.2 kB / 3.462 GB, free: 157.8 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.061e-05/4.539, allocations: 295 kB / 3.462 GB, free: 157.5 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/4.539, allocations: 219.6 kB / 3.463 GB, free: 157.3 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.314e-05/4.539, allocations: 25.7 kB / 3.463 GB, free: 157.2 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 6.603e-05/4.539, allocations: 263.5 kB / 3.463 GB, free: 157 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.107e-05/4.539, allocations: 27.89 kB / 3.463 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-06/4.539, allocations: 3.938 kB / 3.463 GB, free: 156.9 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 4.788e-05/4.539, allocations: 342.8 kB / 3.463 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.1e-05/4.539, allocations: 27.94 kB / 3.463 GB, free: 156.6 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.735e-05/4.539, allocations: 100.5 kB / 3.463 GB, free: 156.4 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.257e-05/4.539, allocations: 43.88 kB / 3.463 GB, free: 156.4 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.333e-06/4.539, allocations: 0 / 3.463 GB, free: 156.4 MB / 0.8698 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001292/4.539, allocations: 125.2 kB / 3.464 GB, free: 156.3 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 8.946e-06/4.539, allocations: 4 kB / 3.464 GB, free: 156.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/4.539, allocations: 0 / 3.464 GB, free: 156.3 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.208e-05/4.539, allocations: 4 kB / 3.464 GB, free: 156.3 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001194/4.539, allocations: 32.11 kB / 3.464 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.607e-06/4.54, allocations: 0 / 3.464 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001511/4.54, allocations: 31.88 kB / 3.464 GB, free: 156.2 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.741e-05/4.54, allocations: 8 kB / 3.464 GB, free: 156.2 MB / 0.8698 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 (10): * Single equations (assignments): 10 * 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 4.898e-05/4.54, allocations: 108.6 kB / 3.464 GB, free: 156.1 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001893/4.54, allocations: 31.62 kB / 3.464 GB, free: 156.1 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.072e-05/4.54, allocations: 28.98 kB / 3.464 GB, free: 156 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/4.54, allocations: 4 kB / 3.464 GB, free: 156 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/4.54, allocations: 7.984 kB / 3.464 GB, free: 156 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/4.54, allocations: 0 / 3.464 GB, free: 156 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008833/4.541, allocations: 1.222 MB / 3.465 GB, free: 154.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/4.541, allocations: 8.031 kB / 3.465 GB, free: 154.7 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.318e-05/4.541, allocations: 27.92 kB / 3.465 GB, free: 154.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/4.541, allocations: 4 kB / 3.465 GB, free: 154.7 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.235e-06/4.541, allocations: 4 kB / 3.465 GB, free: 154.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/4.541, allocations: 4 kB / 3.465 GB, free: 154.7 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.385e-06/4.541, allocations: 0 / 3.465 GB, free: 154.7 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001579/4.541, allocations: 379.6 kB / 3.465 GB, free: 154.2 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.482e-05/4.541, allocations: 120.6 kB / 3.465 GB, free: 154.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.743e-05/4.541, allocations: 4.375 kB / 3.465 GB, free: 154.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/4.541, allocations: 19.97 kB / 3.466 GB, free: 154 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.568e-05/4.542, allocations: 12 kB / 3.466 GB, free: 154 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.55e-06/4.542, allocations: 12 kB / 3.466 GB, free: 154 MB / 0.8698 GB Notification: Performance of sort global known variables: time 9.443e-05/4.542, allocations: 183 kB / 3.466 GB, free: 153.8 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0005284/4.542, allocations: 219.2 kB / 3.466 GB, free: 153.6 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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.001539/4.544, allocations: 1.634 MB / 3.468 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0001288/4.544, allocations: 79.84 kB / 3.468 GB, free: 152 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/4.544, allocations: 0 / 3.468 GB, free: 152 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 5.824e-05/4.544, allocations: 44.86 kB / 3.468 GB, free: 152 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004496/4.544, allocations: 88.58 kB / 3.468 GB, free: 151.9 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007483/4.545, allocations: 0.5929 MB / 3.468 GB, free: 151.2 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002801/4.545, allocations: 0.9345 MB / 3.469 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of SimCode: time 2.51e-07/4.545, allocations: 4 kB / 3.469 GB, free: 150.3 MB / 0.8698 GB Notification: Performance of Templates: time 0.01573/4.561, allocations: 11.83 MB / 3.481 GB, free: 138.5 MB / 0.8698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.PropertySource_h.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.PropertySource_h.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.PropertySource_h.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.PropertySource_h.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.PropertySource_h.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.PropertySource_h -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.PropertySource_h.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.PropertySource_h_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Sources_Examples_PropertySource_h.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Sources.Examples.PropertySource_h.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches