Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaCon.yVal|heaCon.yValSwi|heaCon.dT|heaCon.y",fileNamePrefix="Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat") translateModel(Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heaCon.yVal|heaCon.yValSwi|heaCon.dT|heaCon.y",fileNamePrefix="Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat") [: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 9.1.1-maint.9.1.x/package.mo): time 1.784/1.784, allocations: 387.2 MB / 394.5 MB, free: 13.25 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00105/0.00105, allocations: 178.9 kB / 487 MB, free: 0.6719 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.126/1.126, allocations: 221.3 MB / 0.7819 GB, free: 6.703 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009077/0.0009077, allocations: 89.77 kB / 0.9213 GB, free: 43.64 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 8.085e-06/8.115e-06, allocations: 4 kB / 1.066 GB, free: 7.523 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5821/0.5821, allocations: 142.3 MB / 1.205 GB, free: 72.8 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1563/0.7384, allocations: 151.3 MB / 1.353 GB, free: 11.88 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001979/0.7387, allocations: 87.94 kB / 1.353 GB, free: 11.79 MB / 0.8542 GB Notification: Performance of FrontEnd: time 0.01122/0.7499, allocations: 4.439 MB / 1.357 GB, free: 7.367 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.673e-05/0.75, allocations: 8.875 kB / 1.357 GB, free: 7.359 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.0006085/0.7506, allocations: 0.5039 MB / 1.358 GB, free: 6.812 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.309e-05/0.7506, allocations: 8.031 kB / 1.358 GB, free: 6.805 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.358e-05/0.7507, allocations: 35.62 kB / 1.358 GB, free: 6.77 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002783/0.751, allocations: 267.6 kB / 1.358 GB, free: 6.469 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.241e-05/0.751, allocations: 19.98 kB / 1.358 GB, free: 6.449 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.034e-05/0.751, allocations: 20 kB / 1.358 GB, free: 6.43 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003968/0.7514, allocations: 189.3 kB / 1.358 GB, free: 6.246 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003923/0.7518, allocations: 263.8 kB / 1.359 GB, free: 5.977 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.7519, allocations: 0 / 1.359 GB, free: 5.977 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.835e-05/0.7519, allocations: 11.97 kB / 1.359 GB, free: 5.965 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.327e-06/0.7519, allocations: 8 kB / 1.359 GB, free: 5.957 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001259/0.7532, allocations: 0.8865 MB / 1.36 GB, free: 5.02 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004017/0.7536, allocations: 223.5 kB / 1.36 GB, free: 4.793 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000149/0.7538, allocations: 97.31 kB / 1.36 GB, free: 4.695 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 2.536e-05/0.7538, allocations: 4.234 kB / 1.36 GB, free: 4.691 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001886/0.754, allocations: 143.4 kB / 1.36 GB, free: 4.539 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=30): time 1.492e-06/0.754, allocations: 0 / 1.36 GB, free: 4.539 MB / 0.8542 GB Notification: Performance of matching and sorting (n=30): time 0.0003429/0.7543, allocations: 185.5 kB / 1.36 GB, free: 4.352 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.45e-05/0.7544, allocations: 67.34 kB / 1.36 GB, free: 4.273 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.7545, allocations: 168.9 kB / 1.36 GB, free: 4.105 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.484e-05/0.7546, allocations: 33.7 kB / 1.36 GB, free: 4.066 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 7.32e-05/0.7546, allocations: 144.5 kB / 1.361 GB, free: 3.918 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 5.367e-05/0.7547, allocations: 71.06 kB / 1.361 GB, free: 3.848 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.261e-05/0.7547, allocations: 0.9375 kB / 1.361 GB, free: 3.848 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 9.34e-05/0.7548, allocations: 330.8 kB / 1.361 GB, free: 3.516 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001294/0.7549, allocations: 79.98 kB / 1.361 GB, free: 3.438 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001584/0.7551, allocations: 125.1 kB / 1.361 GB, free: 3.297 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001218/0.7552, allocations: 67.97 kB / 1.361 GB, free: 3.23 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.7552, allocations: 0 / 1.361 GB, free: 3.23 MB / 0.8542 GB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0003633/0.7556, allocations: 260.5 kB / 1.361 GB, free: 2.969 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.7556, allocations: 4 kB / 1.361 GB, free: 2.965 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.974e-06/0.7556, allocations: 9.734 kB / 1.361 GB, free: 2.957 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.7557, allocations: 3.906 kB / 1.361 GB, free: 2.953 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002019/0.7559, allocations: 45.31 kB / 1.362 GB, free: 2.91 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.7559, allocations: 0 / 1.362 GB, free: 2.91 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002039/0.7561, allocations: 48.05 kB / 1.362 GB, free: 2.863 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.148e-05/0.7561, allocations: 19.91 kB / 1.362 GB, free: 2.844 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.heaCon.offToOn.enableFire,$PRE.heaCon.onToOff.enableFire,$whenCondition2,$whenCondition1,$PRE.heaCon.off.localActive,heaCon.off.localActive,$PRE.heaCon.off.newActive,heaCon.off.newActive,$PRE.heaCon.off.oldActive,heaCon.off.oldActive,heaCon.off.active,$PRE.heaCon.on.localActive,heaCon.on.localActive,$PRE.heaCon.on.newActive,heaCon.on.newActive,$PRE.heaCon.on.oldActive,heaCon.on.oldActive,heaCon.on.active,heaCon.offToOn.enableFire,heaCon.offToOn.fire,$PRE.heaCon.offToOn.t_start,heaCon.offToOn.t_start,heaCon.offToOn.condition,heaCon.onToOff.enableFire,heaCon.onToOff.fire,$PRE.heaCon.onToOff.t_start,heaCon.onToOff.t_start,heaCon.onToOff.condition,heaCon.stateGraphRoot.activeSteps,heaCon.stateGraphRoot.resume,heaCon.stateGraphRoot.suspend) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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.192e-05/0.7562, allocations: 128 kB / 1.362 GB, free: 2.711 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.862e-05/0.7563, allocations: 15.81 kB / 1.362 GB, free: 2.695 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000396/0.7567, allocations: 222.1 kB / 1.362 GB, free: 2.477 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.7567, allocations: 4 kB / 1.362 GB, free: 2.473 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.997e-06/0.7567, allocations: 0 / 1.362 GB, free: 2.473 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.7567, allocations: 3.984 kB / 1.362 GB, free: 2.469 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008002/0.7575, allocations: 0.6253 MB / 1.363 GB, free: 1.801 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.7575, allocations: 0 / 1.363 GB, free: 1.801 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.7577, allocations: 35.91 kB / 1.363 GB, free: 1.766 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.7577, allocations: 7.984 kB / 1.363 GB, free: 1.758 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.7577, allocations: 4.625 kB / 1.363 GB, free: 1.754 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.714e-06/0.7577, allocations: 0.8438 kB / 1.363 GB, free: 1.754 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.829e-06/0.7577, allocations: 4 kB / 1.363 GB, free: 1.75 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003325/0.7581, allocations: 307.4 kB / 1.363 GB, free: 1.434 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 4.211e-05/0.7581, allocations: 92.83 kB / 1.363 GB, free: 1.324 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.711e-05/0.7582, allocations: 4.938 kB / 1.363 GB, free: 1.32 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002208/0.7584, allocations: 39.97 kB / 1.363 GB, free: 1.281 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.345e-05/0.7585, allocations: 35.94 kB / 1.363 GB, free: 1.246 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.168e-05/0.7585, allocations: 12 kB / 1.363 GB, free: 1.234 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.224e-05/0.7586, allocations: 111.5 kB / 1.363 GB, free: 1.125 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0002791/0.7589, allocations: 52.45 kB / 1.363 GB, free: 1.074 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 21 (heaCon.offToOn.enableFire,heaCon.onToOff.enableFire,heaCon.on.localActive,heaCon.off.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,heaCon.off.newActive,heaCon.off.oldActive,heaCon.off.active,heaCon.on.newActive,heaCon.on.oldActive,heaCon.on.active,heaCon.offToOn.fire,heaCon.offToOn.t_start,heaCon.offToOn.condition,heaCon.onToOff.fire,heaCon.onToOff.t_start,heaCon.onToOff.condition,heaCon.stateGraphRoot.activeSteps) * Number of discrete states: 2 (heaCon.off.newActive,heaCon.on.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001467/0.759, allocations: 116.9 kB / 1.363 GB, free: 0.9453 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0003201/0.7594, allocations: 212.8 kB / 1.364 GB, free: 0.7383 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.413e-06/0.7594, allocations: 4.125 kB / 1.364 GB, free: 0.7344 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001551/0.7595, allocations: 115.8 kB / 1.364 GB, free: 0.6211 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002325/0.7598, allocations: 23.02 kB / 1.364 GB, free: 0.6016 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006095/0.7604, allocations: 305.6 kB / 1.364 GB, free: 292 kB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003434/0.7607, allocations: 0.7943 MB / 1.365 GB, free: 15.46 MB / 0.8698 GB Notification: Performance of SimCode: time 2.4e-07/0.7607, allocations: 0 / 1.365 GB, free: 15.46 MB / 0.8698 GB Notification: Performance of Templates: time 0.005589/0.7663, allocations: 2.906 MB / 1.368 GB, free: 12.64 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.makefile (rm -f Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe ; mkfifo Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe ; head -c 1048576 < Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe >> ../files/Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.sim & ./Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Applications_DataCenters_ChillerCooled_Controls_Validation_Reheat.csv","../files/Buildings_9_Buildings.Applications.DataCenters.ChillerCooled.Controls.Validation.Reheat.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches