Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h.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.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_latest_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_latest_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 10.0.0-master/package.mo): time 2.055/2.055, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.001015/0.001015, allocations: 187.9 kB / 490.8 MB, free: 1.93 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.408/1.408, 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.0009916/0.000992, allocations: 96.03 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 8.546e-06/8.566e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2978/0.2978, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.457/4.755, allocations: 1.87 GB / 3.082 GB, free: 434.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/4.755, allocations: 80.61 kB / 3.082 GB, free: 434.2 MB / 1.151 GB Notification: Performance of FrontEnd: time 0.7772/5.533, allocations: 414.7 MB / 3.487 GB, free: 45.2 MB / 1.151 GB Notification: Performance of Transformations before backend: time 5.817e-05/5.533, allocations: 20 kB / 3.487 GB, free: 45.18 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: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.001867/5.535, allocations: 0.8453 MB / 3.488 GB, free: 44.29 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/5.535, allocations: 8.031 kB / 3.488 GB, free: 44.28 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002046/5.535, allocations: 71.16 kB / 3.488 GB, free: 44.21 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007184/5.536, allocations: 431.8 kB / 3.488 GB, free: 43.74 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.425e-05/5.536, allocations: 16 kB / 3.488 GB, free: 43.73 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.993e-05/5.536, allocations: 39.94 kB / 3.488 GB, free: 43.69 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004924/5.536, allocations: 282.5 kB / 3.488 GB, free: 43.41 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000703/5.537, allocations: 0.5949 MB / 3.489 GB, free: 42.73 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.165e-05/5.537, allocations: 7.906 kB / 3.489 GB, free: 42.73 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.704e-05/5.537, allocations: 4 kB / 3.489 GB, free: 42.72 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.233e-05/5.537, allocations: 35.91 kB / 3.489 GB, free: 42.69 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001917/5.539, allocations: 2.983 MB / 3.492 GB, free: 39.57 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001499/5.539, allocations: 206.1 kB / 3.492 GB, free: 39.28 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.974e-05/5.539, allocations: 112.6 kB / 3.492 GB, free: 39.14 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 1.82e-05/5.539, allocations: 7.984 kB / 3.492 GB, free: 39.13 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/5.539, allocations: 46.5 kB / 3.492 GB, free: 39.08 MB / 1.151 GB Notification: Performance of pre-optimization done (n=10): time 2.554e-06/5.539, allocations: 0 / 3.492 GB, free: 39.08 MB / 1.151 GB Notification: Performance of matching and sorting (n=10): time 0.0004094/5.54, allocations: 133.4 kB / 3.492 GB, free: 38.94 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.367e-05/5.54, allocations: 295 kB / 3.493 GB, free: 38.59 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001763/5.54, allocations: 223.6 kB / 3.493 GB, free: 38.36 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 1.809e-05/5.54, allocations: 29.64 kB / 3.493 GB, free: 38.32 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 9.129e-05/5.54, allocations: 259.6 kB / 3.493 GB, free: 38.07 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 2.621e-05/5.54, allocations: 35.45 kB / 3.493 GB, free: 38.03 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.07e-06/5.54, allocations: 0 / 3.493 GB, free: 38.03 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 6.763e-05/5.54, allocations: 338.8 kB / 3.494 GB, free: 37.69 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.527e-05/5.54, allocations: 20 kB / 3.494 GB, free: 37.67 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.726e-05/5.54, allocations: 100.6 kB / 3.494 GB, free: 37.54 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.043e-05/5.54, allocations: 39.91 kB / 3.494 GB, free: 37.5 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/5.54, allocations: 0 / 3.494 GB, free: 37.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001531/5.541, allocations: 125.2 kB / 3.494 GB, free: 37.38 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/5.541, allocations: 7.906 kB / 3.494 GB, free: 37.37 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/5.541, allocations: 0 / 3.494 GB, free: 37.37 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/5.541, allocations: 8 kB / 3.494 GB, free: 37.36 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/5.541, allocations: 32.17 kB / 3.494 GB, free: 37.33 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/5.541, allocations: 0 / 3.494 GB, free: 37.33 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001859/5.541, allocations: 27.91 kB / 3.494 GB, free: 37.3 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.158e-05/5.541, allocations: 12 kB / 3.494 GB, free: 37.29 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 (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 6.403e-05/5.541, allocations: 112.8 kB / 3.494 GB, free: 37.17 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002034/5.541, allocations: 23.72 kB / 3.494 GB, free: 37.15 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.181e-05/5.541, allocations: 36.97 kB / 3.494 GB, free: 37.11 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/5.541, allocations: 4.281 kB / 3.494 GB, free: 37.11 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/5.541, allocations: 4 kB / 3.494 GB, free: 37.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/5.541, allocations: 0 / 3.494 GB, free: 37.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001025/5.542, allocations: 1.227 MB / 3.495 GB, free: 35.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.426e-06/5.542, allocations: 8.281 kB / 3.495 GB, free: 35.79 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.927e-05/5.543, allocations: 23.98 kB / 3.495 GB, free: 35.77 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.28e-06/5.543, allocations: 4 kB / 3.495 GB, free: 35.76 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.213e-05/5.543, allocations: 4 kB / 3.495 GB, free: 35.76 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/5.543, allocations: 7.938 kB / 3.495 GB, free: 35.75 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/5.543, allocations: 0 / 3.495 GB, free: 35.75 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002072/5.543, allocations: 382.1 kB / 3.496 GB, free: 35.28 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 7.107e-05/5.543, allocations: 108.8 kB / 3.496 GB, free: 35.15 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.117e-05/5.543, allocations: 4 kB / 3.496 GB, free: 35.15 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001995/5.543, allocations: 19.97 kB / 3.496 GB, free: 35.13 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.122e-05/5.543, allocations: 19.89 kB / 3.496 GB, free: 35.11 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.165e-06/5.543, allocations: 8 kB / 3.496 GB, free: 35.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0001151/5.543, allocations: 179 kB / 3.496 GB, free: 34.93 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.0007135/5.544, allocations: 211.3 kB / 3.496 GB, free: 34.72 MB / 1.151 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.002142/5.546, allocations: 1.648 MB / 3.498 GB, free: 33 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0001675/5.546, allocations: 75.91 kB / 3.498 GB, free: 32.93 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/5.546, allocations: 0 / 3.498 GB, free: 32.93 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 6.485e-05/5.546, allocations: 48.67 kB / 3.498 GB, free: 32.88 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005246/5.547, allocations: 88.67 kB / 3.498 GB, free: 32.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000996/5.548, allocations: 0.5841 MB / 3.499 GB, free: 32.16 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003693/5.548, allocations: 0.9345 MB / 3.5 GB, free: 31.2 MB / 1.151 GB Notification: Performance of SimCode: time 2.51e-07/5.548, allocations: 0 / 3.5 GB, free: 31.2 MB / 1.151 GB Notification: Performance of Templates: time 0.01759/5.566, allocations: 11.85 MB / 3.511 GB, free: 19.39 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h.makefile (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h.sim & ./Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sources_Examples_PropertySource_h.csv","../files/Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches