Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.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.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|pum.m_flow|EHea.y|ECoo.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop") translateModel(Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|vol.T|pum.m_flow|EHea.y|ECoo.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop") [: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.191/1.191, allocations: 249.4 MB / 256.7 MB, free: 7.012 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.00102/0.00102, allocations: 177.3 kB / 316 MB, free: 3.594 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/1, allocations: 205.2 MB / 0.5667 GB, free: 15.78 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.0007994/0.0007995, allocations: 85.45 kB / 0.671 GB, free: 4.914 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.169e-06/5.199e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1413/0.1413, allocations: 106.3 MB / 0.8846 GB, free: 12.68 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8581/0.9995, allocations: 443.1 MB / 1.317 GB, free: 304.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/0.9997, allocations: 88.7 kB / 1.317 GB, free: 304.1 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.07/3.069, allocations: 0.9589 GB / 2.276 GB, free: 8.602 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001869/3.07, allocations: 59.92 kB / 2.276 GB, free: 8.543 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.004322/3.074, allocations: 2.143 MB / 2.278 GB, free: 6.34 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/3.074, allocations: 8.031 kB / 2.278 GB, free: 6.332 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003947/3.078, allocations: 0.8051 MB / 2.279 GB, free: 5.523 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.263/3.341, allocations: 8.829 MB / 2.288 GB, free: 196.6 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.192e-05/3.341, allocations: 36.81 kB / 2.288 GB, free: 196.6 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001636/3.341, allocations: 81.94 kB / 2.288 GB, free: 196.6 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001491/3.343, allocations: 0.9347 MB / 2.289 GB, free: 196.6 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001531/3.344, allocations: 1.236 MB / 2.29 GB, free: 196.3 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.028e-05/3.344, allocations: 3.094 kB / 2.29 GB, free: 196.3 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.754e-05/3.344, allocations: 3.875 kB / 2.29 GB, free: 196.3 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.231e-05/3.344, allocations: 41.05 kB / 2.29 GB, free: 196.3 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007775/3.352, allocations: 8.267 MB / 2.298 GB, free: 191.3 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008154/3.353, allocations: 0.6714 MB / 2.299 GB, free: 191.3 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004482/3.354, allocations: 370 kB / 2.299 GB, free: 191.3 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003886/3.357, allocations: 2.88 MB / 2.302 GB, free: 189.7 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004763/3.358, allocations: 408.4 kB / 2.302 GB, free: 189.7 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=66): time 2.365e-06/3.358, allocations: 3.391 kB / 2.302 GB, free: 189.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=66): time 0.0017/3.36, allocations: 0.8552 MB / 2.303 GB, free: 189.5 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.919e-05/3.36, allocations: 113.8 kB / 2.303 GB, free: 189.4 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/3.361, allocations: 1.188 MB / 2.304 GB, free: 189.2 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 6.764e-05/3.361, allocations: 31.86 kB / 2.304 GB, free: 189.2 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002856/3.361, allocations: 0.5953 MB / 2.305 GB, free: 189 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/3.361, allocations: 227.3 kB / 2.305 GB, free: 188.8 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.168e-05/3.361, allocations: 6.031 kB / 2.305 GB, free: 188.8 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 5.781e-05/3.361, allocations: 346.7 kB / 2.306 GB, free: 188.5 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004283/3.362, allocations: 326.1 kB / 2.306 GB, free: 188.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005499/3.362, allocations: 0.7848 MB / 2.307 GB, free: 188 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001153/3.364, allocations: 0.5104 MB / 2.307 GB, free: 188 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.189e-06/3.364, allocations: 4.469 kB / 2.307 GB, free: 188 MB / 0.8855 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002081/3.366, allocations: 1.238 MB / 2.308 GB, free: 187.8 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.000596/3.366, allocations: 4.96 MB / 2.313 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.884e-05/3.366, allocations: 10.97 kB / 2.313 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.459e-05/3.366, allocations: 22.03 kB / 2.313 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001187/3.368, allocations: 295.7 kB / 2.314 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.481e-05/3.368, allocations: 29.42 kB / 2.314 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001307/3.369, allocations: 202.8 kB / 2.314 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001023/3.369, allocations: 62.52 kB / 2.314 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 4.819e-06/3.369, allocations: 3.438 kB / 2.314 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001838/3.371, allocations: 1.009 MB / 2.315 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/3.371, allocations: 14.94 kB / 2.315 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/3.371, allocations: 19.47 kB / 2.315 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/3.372, allocations: 302.7 kB / 2.315 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.142e-05/3.372, allocations: 21 kB / 2.315 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001187/3.373, allocations: 181.8 kB / 2.315 GB, free: 182.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.171e-05/3.373, allocations: 63.55 kB / 2.315 GB, free: 182.6 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,EHea.local_reset,ECoo.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (131): * Single equations (assignments): 127 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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 0.0001668/3.374, allocations: 137.9 kB / 2.316 GB, free: 182.5 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001577/3.374, allocations: 169.4 kB / 2.316 GB, free: 182.4 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002142/3.376, allocations: 1.175 MB / 2.317 GB, free: 182.3 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/3.376, allocations: 11.47 kB / 2.317 GB, free: 182.3 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.439e-06/3.376, allocations: 0 / 2.317 GB, free: 182.3 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001278/3.377, allocations: 0.988 MB / 2.318 GB, free: 182 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00327/3.38, allocations: 2.288 MB / 2.32 GB, free: 181.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.125e-06/3.381, allocations: 0 / 2.32 GB, free: 181.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009785/3.381, allocations: 184.7 kB / 2.32 GB, free: 181.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.631e-06/3.382, allocations: 3.844 kB / 2.32 GB, free: 181.6 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.245e-05/3.382, allocations: 22.09 kB / 2.32 GB, free: 181.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/3.382, allocations: 6.75 kB / 2.32 GB, free: 181.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/3.382, allocations: 0 / 2.32 GB, free: 181.6 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001945/3.384, allocations: 1.53 MB / 2.322 GB, free: 181.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004028/3.384, allocations: 349.3 kB / 2.322 GB, free: 181.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002282/3.384, allocations: 2.844 kB / 2.322 GB, free: 181.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/3.385, allocations: 127.1 kB / 2.322 GB, free: 181.1 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.451e-05/3.385, allocations: 43.95 kB / 2.322 GB, free: 181.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.269e-05/3.385, allocations: 37.84 kB / 2.322 GB, free: 181.1 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.0008386/3.386, allocations: 0.8824 MB / 2.323 GB, free: 181 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.002739/3.389, allocations: 1.038 MB / 2.324 GB, free: 181 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (pla.coo.outCon.T,pla.hea.outCon.T,vol.dynBal.U,pum.filter.x[1],pum.filter.x[2],ECoo.y,EHea.y) * 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 (77): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 2 * 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.001452/3.39, allocations: 1.18 MB / 2.325 GB, free: 180.8 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001822/3.392, allocations: 1.568 MB / 2.327 GB, free: 180.6 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/3.392, allocations: 0 / 2.327 GB, free: 180.6 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0004852/3.393, allocations: 415.5 kB / 2.327 GB, free: 180.6 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002535/3.395, allocations: 0.6727 MB / 2.328 GB, free: 180.6 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005895/3.401, allocations: 2.768 MB / 2.331 GB, free: 180 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/3.402, allocations: 1.586 MB / 2.332 GB, free: 179.3 MB / 0.8855 GB Notification: Performance of SimCode: time 3.9e-07/3.402, allocations: 0 / 2.332 GB, free: 179.3 MB / 0.8855 GB Notification: Performance of Templates: time 0.05171/3.454, allocations: 41.03 MB / 2.372 GB, free: 178.5 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.makefile (rm -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.sim & ./Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Experimental_DistrictHeatingCooling_Plants_Validation_Plant_T_ClosedLoop.csv","../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches