Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example1v2.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.Examples.Performance.Example1v2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example1v2") translateModel(Buildings.Fluid.Examples.Performance.Example1v2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.m_flow",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example1v2") [: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.189/1.189, allocations: 249.4 MB / 256.7 MB, free: 7.023 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.0009464/0.0009465, allocations: 188.3 kB / 316 MB, free: 3.586 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.056/1.056, allocations: 205.2 MB / 0.5667 GB, free: 15.63 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.0007707/0.0007706, allocations: 89.72 kB / 0.671 GB, free: 4.773 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.941e-06/5.971e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.1552, allocations: 106.3 MB / 0.8846 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9788/1.134, allocations: 415.6 MB / 1.29 GB, free: 261.9 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/1.134, allocations: 92.16 kB / 1.291 GB, free: 261.9 MB / 0.8698 GB Notification: Performance of FrontEnd: time 5.828/6.962, allocations: 2.276 GB / 3.567 GB, free: 55.41 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.001271/6.963, allocations: 255.9 kB / 3.567 GB, free: 55.18 MB / 0.9011 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1418 * Number of variables: 1418 Notification: Performance of Generate backend data structure: time 0.02998/6.993, allocations: 10.79 MB / 3.577 GB, free: 44.4 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/6.994, allocations: 8.031 kB / 3.577 GB, free: 44.39 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006877/7, allocations: 1.257 MB / 3.579 GB, free: 43.13 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02796/7.028, allocations: 12.87 MB / 3.591 GB, free: 30.42 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002673/7.029, allocations: 183.9 kB / 3.591 GB, free: 30.24 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002225/7.031, allocations: 355.9 kB / 3.592 GB, free: 29.89 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02169/7.053, allocations: 18.13 MB / 3.609 GB, free: 11.75 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02233/7.075, allocations: 12.76 MB / 3.622 GB, free: 14.72 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003256/7.075, allocations: 23.78 kB / 3.622 GB, free: 14.7 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002259/7.078, allocations: 15.94 kB / 3.622 GB, free: 14.68 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001127/7.078, allocations: 140 kB / 3.622 GB, free: 14.55 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3745/7.452, allocations: 62.2 MB / 3.683 GB, free: 170.1 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008736/7.461, allocations: 8.474 MB / 3.691 GB, free: 170 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009385/7.47, allocations: 9.402 MB / 3.7 GB, free: 169.8 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04786/7.518, allocations: 29.52 MB / 3.729 GB, free: 162.9 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007216/7.526, allocations: 7.354 MB / 3.736 GB, free: 162.8 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=301): time 7.003e-06/7.526, allocations: 4.844 kB / 3.736 GB, free: 162.8 MB / 0.9167 GB Notification: Performance of matching and sorting (n=301): time 0.02304/7.549, allocations: 14.94 MB / 3.751 GB, free: 162.3 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.016e-05/7.549, allocations: 81.31 kB / 3.751 GB, free: 162.2 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008887/7.558, allocations: 6.568 MB / 3.757 GB, free: 161.9 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 0.001506/7.559, allocations: 38.44 kB / 3.757 GB, free: 161.8 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.002576/7.562, allocations: 2.553 MB / 3.76 GB, free: 160.9 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 0.003501/7.565, allocations: 1.042 MB / 3.761 GB, free: 160.3 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006199/7.566, allocations: 0 / 3.761 GB, free: 160.3 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001998/7.566, allocations: 492.5 kB / 3.761 GB, free: 160 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006093/7.572, allocations: 6.249 MB / 3.767 GB, free: 160 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007133/7.579, allocations: 8.019 MB / 3.775 GB, free: 157.8 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01003/7.589, allocations: 7.321 MB / 3.782 GB, free: 157.8 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-05/7.59, allocations: 18.22 kB / 3.782 GB, free: 157.8 MB / 0.9167 GB Notification: Performance of matching and sorting (n=578) (initialization): time 0.02875/7.618, allocations: 16.74 MB / 3.799 GB, free: 157.2 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.003738/7.622, allocations: 24.47 MB / 3.823 GB, free: 131.6 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001164/7.622, allocations: 46.28 kB / 3.823 GB, free: 131.6 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004498/7.627, allocations: 1.602 MB / 3.824 GB, free: 131.5 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007912/7.635, allocations: 1.574 MB / 3.826 GB, free: 131.5 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006837/7.641, allocations: 4.637 MB / 3.83 GB, free: 129.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01038/7.652, allocations: 0.6872 MB / 3.831 GB, free: 129.5 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001957/7.654, allocations: 0.5526 MB / 3.832 GB, free: 129.5 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/7.654, allocations: 7.938 kB / 3.832 GB, free: 129.5 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02273/7.677, allocations: 15.9 MB / 3.847 GB, free: 129.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001284/7.677, allocations: 47.41 kB / 3.847 GB, free: 129.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004067/7.681, allocations: 1.476 MB / 3.849 GB, free: 129.1 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007834/7.689, allocations: 1.558 MB / 3.85 GB, free: 129.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01013/7.699, allocations: 7.866 MB / 3.858 GB, free: 125.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01013/7.709, allocations: 0.5907 MB / 3.858 GB, free: 125.6 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002039/7.711, allocations: 0.5348 MB / 3.859 GB, free: 125.6 MB / 0.9167 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: val.port_internal.h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 protected = true ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 215 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,from_dp.y,allowFlowReversal.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (524): * Single equations (assignments): 519 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {3 4,2 5,20 21} Notification: Performance of prepare postOptimizeDAE: time 0.001922/7.713, allocations: 255.1 kB / 3.859 GB, free: 125.4 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002547/7.716, allocations: 0.7032 MB / 3.86 GB, free: 125.1 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02423/7.74, allocations: 14.43 MB / 3.874 GB, free: 123.5 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.077e-05/7.74, allocations: 36.5 kB / 3.874 GB, free: 123.5 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.502e-06/7.74, allocations: 0 / 3.874 GB, free: 123.5 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01226/7.752, allocations: 10.34 MB / 3.884 GB, free: 118.9 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02998/7.782, allocations: 23.26 MB / 3.907 GB, free: 108 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.047e-05/7.782, allocations: 0 / 3.907 GB, free: 108 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004753/7.787, allocations: 0.6734 MB / 3.907 GB, free: 107.9 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001892/7.789, allocations: 0.8211 MB / 3.908 GB, free: 107.7 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004818/7.789, allocations: 64.66 kB / 3.908 GB, free: 107.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003687/7.793, allocations: 3.392 MB / 3.912 GB, free: 105.6 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/7.793, allocations: 0 / 3.912 GB, free: 105.6 MB / 0.9167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02064/7.814, allocations: 18.62 MB / 3.93 GB, free: 96.93 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005043/7.819, allocations: 1.966 MB / 3.932 GB, free: 96.07 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001698/7.821, allocations: 18.97 kB / 3.932 GB, free: 96.07 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005258/7.826, allocations: 325.6 kB / 3.932 GB, free: 96.02 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006603/7.826, allocations: 202.9 kB / 3.932 GB, free: 95.98 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005285/7.827, allocations: 158.2 kB / 3.932 GB, free: 95.96 MB / 0.9167 GB Notification: Performance of sort global known variables: time 0.006099/7.833, allocations: 4.995 MB / 3.937 GB, free: 94.34 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.01754/7.851, allocations: 4.713 MB / 3.942 GB, free: 93.96 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 22 (pump.vol.dynBal.U,hea.outCon.T,vol[1].dynBal.U,vol[2].dynBal.U,vol[3].dynBal.U,vol[4].dynBal.U,vol[5].dynBal.U,vol[6].dynBal.U,vol[7].dynBal.U,vol[8].dynBal.U,vol[9].dynBal.U,vol[10].dynBal.U,vol[11].dynBal.U,vol[12].dynBal.U,vol[13].dynBal.U,vol[14].dynBal.U,vol[15].dynBal.U,vol[16].dynBal.U,vol[17].dynBal.U,vol[18].dynBal.U,vol[19].dynBal.U,vol[20].dynBal.U) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (303): * Single equations (assignments): 294 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {3 4,20 21,2 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002532/7.853, allocations: 1.187 MB / 3.943 GB, free: 93.21 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.02921/7.882, allocations: 23.14 MB / 3.966 GB, free: 73.14 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 1.446e-05/7.882, allocations: 4 kB / 3.966 GB, free: 73.13 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.008064/7.891, allocations: 6.12 MB / 3.972 GB, free: 67.47 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01681/7.907, allocations: 3.806 MB / 3.975 GB, free: 64.7 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02966/7.937, allocations: 17.52 MB / 3.992 GB, free: 49.34 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008265/7.945, allocations: 6.336 MB / 3.999 GB, free: 44.74 MB / 0.9167 GB Notification: Performance of SimCode: time 5.91e-07/7.945, allocations: 4 kB / 3.999 GB, free: 44.74 MB / 0.9167 GB Notification: Performance of Templates: time 0.5927/8.538, allocations: 258.9 MB / 4.251 GB, free: 145.3 MB / 0.9167 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example1v2.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example1v2.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example1v2.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example1v2.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example1v2.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example1v2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example1v2.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example1v2_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Fluid_Examples_Performance_Example1v2.csv","../files/Buildings_maint.7.0.x_Buildings.Fluid.Examples.Performance.Example1v2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches