Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.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.Fluid.Chillers.Examples.ElectricEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.PLR1|chi.PLR2|chi.CR|chi.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.PLR1|chi.PLR2|chi.CR|chi.COP",fileNamePrefix="Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR") [: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 2.081/2.081, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.001199/0.001199, allocations: 184.3 kB / 487 MB, free: 5.395 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.398/1.398, allocations: 221.3 MB / 0.7819 GB, free: 1.453 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001435/0.001435, allocations: 95.05 kB / 0.9213 GB, free: 2.707 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.875e-06/7.895e-06, allocations: 4 kB / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3205/0.3205, allocations: 142.3 MB / 1.205 GB, free: 26.27 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.046/1.366, allocations: 428.9 MB / 1.624 GB, free: 10.89 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002337/1.366, allocations: 82.7 kB / 1.624 GB, free: 10.85 MB / 1.057 GB Notification: Performance of FrontEnd: time 2.269/3.635, allocations: 0.6372 GB / 2.261 GB, free: 243.4 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.0001544/3.635, allocations: 47.44 kB / 2.261 GB, free: 243.4 MB / 1.135 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.003539/3.639, allocations: 1.772 MB / 2.263 GB, free: 242.6 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 3.628e-05/3.639, allocations: 8.875 kB / 2.263 GB, free: 242.6 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003699/3.643, allocations: 0.6734 MB / 2.264 GB, free: 242.5 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003541/3.646, allocations: 1.671 MB / 2.265 GB, free: 242.2 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001301/3.646, allocations: 108 kB / 2.266 GB, free: 242.2 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001472/3.646, allocations: 57.75 kB / 2.266 GB, free: 242.2 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001582/3.648, allocations: 0.9321 MB / 2.266 GB, free: 242.1 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001445/3.649, allocations: 0.99 MB / 2.267 GB, free: 242 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.856e-05/3.649, allocations: 0 / 2.267 GB, free: 242 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.062e-05/3.65, allocations: 3.844 kB / 2.267 GB, free: 242 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.201e-05/3.65, allocations: 29.89 kB / 2.267 GB, free: 242 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007312/3.657, allocations: 5.655 MB / 2.273 GB, free: 239.3 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008988/3.658, allocations: 0.6357 MB / 2.274 GB, free: 239.3 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005856/3.658, allocations: 438.1 kB / 2.274 GB, free: 239.3 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006547/3.659, allocations: 1.25 MB / 2.275 GB, free: 237.9 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006824/3.66, allocations: 0.5143 MB / 2.276 GB, free: 237.8 MB / 1.135 GB Notification: Performance of pre-optimization done (n=67): time 3.316e-06/3.66, allocations: 0 / 2.276 GB, free: 237.8 MB / 1.135 GB Notification: Performance of matching and sorting (n=67): time 0.001876/3.662, allocations: 0.8908 MB / 2.277 GB, free: 237.7 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.83e-05/3.662, allocations: 114.4 kB / 2.277 GB, free: 237.6 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001198/3.663, allocations: 1.008 MB / 2.278 GB, free: 237.4 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 0.0001/3.663, allocations: 29.3 kB / 2.278 GB, free: 237.4 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003414/3.663, allocations: 442.9 kB / 2.278 GB, free: 237.2 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002204/3.664, allocations: 212 kB / 2.278 GB, free: 237 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.162e-05/3.664, allocations: 0 / 2.278 GB, free: 237 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 6.5e-05/3.664, allocations: 339.6 kB / 2.279 GB, free: 236.7 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004643/3.664, allocations: 349.3 kB / 2.279 GB, free: 236.7 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005809/3.665, allocations: 0.5818 MB / 2.28 GB, free: 236.4 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008651/3.666, allocations: 408.8 kB / 2.28 GB, free: 236.4 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/3.666, allocations: 0 / 2.28 GB, free: 236.4 MB / 1.135 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001796/3.668, allocations: 0.9936 MB / 2.281 GB, free: 236.3 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002079/3.668, allocations: 1.158 MB / 2.282 GB, free: 235.1 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.366e-06/3.668, allocations: 3.719 kB / 2.282 GB, free: 235.1 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/3.668, allocations: 7.312 kB / 2.282 GB, free: 235.1 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001356/3.669, allocations: 301.8 kB / 2.282 GB, free: 235.1 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.052e-05/3.669, allocations: 8.906 kB / 2.282 GB, free: 235.1 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001742/3.671, allocations: 219.1 kB / 2.283 GB, free: 235.1 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000115/3.671, allocations: 47.75 kB / 2.283 GB, free: 235.1 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 7.193e-06/3.671, allocations: 3.156 kB / 2.283 GB, free: 235.1 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00157/3.673, allocations: 0.8232 MB / 2.283 GB, free: 235.1 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/3.673, allocations: 3.875 kB / 2.283 GB, free: 235.1 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.244e-06/3.673, allocations: 6.375 kB / 2.283 GB, free: 235.1 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/3.674, allocations: 293.9 kB / 2.284 GB, free: 235.1 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.38e-06/3.674, allocations: 3.969 kB / 2.284 GB, free: 235.1 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001709/3.676, allocations: 218.7 kB / 2.284 GB, free: 235.1 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001001/3.676, allocations: 47.66 kB / 2.284 GB, free: 235.1 MB / 1.135 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,chi.on) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0002484/3.676, allocations: 124.2 kB / 2.284 GB, free: 235 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002148/3.676, allocations: 139.2 kB / 2.284 GB, free: 234.9 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002209/3.678, allocations: 1.112 MB / 2.285 GB, free: 234.8 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/3.679, allocations: 15.12 kB / 2.285 GB, free: 234.8 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/3.679, allocations: 1.594 kB / 2.285 GB, free: 234.8 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001394/3.68, allocations: 0.9058 MB / 2.286 GB, free: 234.6 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004712/3.685, allocations: 2.936 MB / 2.289 GB, free: 233.8 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.908e-06/3.685, allocations: 7.312 kB / 2.289 GB, free: 233.8 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00123/3.686, allocations: 260.5 kB / 2.289 GB, free: 233.8 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.568e-05/3.686, allocations: 7.562 kB / 2.289 GB, free: 233.8 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.304e-05/3.686, allocations: 22.39 kB / 2.289 GB, free: 233.8 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.038e-05/3.686, allocations: 7.781 kB / 2.289 GB, free: 233.8 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/3.686, allocations: 5.312 kB / 2.289 GB, free: 233.8 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002734/3.689, allocations: 2.03 MB / 2.291 GB, free: 233.1 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008891/3.69, allocations: 470 kB / 2.292 GB, free: 232.8 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003955/3.69, allocations: 14.89 kB / 2.292 GB, free: 232.8 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001691/3.692, allocations: 170 kB / 2.292 GB, free: 232.8 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/3.692, allocations: 74.61 kB / 2.292 GB, free: 232.8 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001146/3.692, allocations: 49.11 kB / 2.292 GB, free: 232.8 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.001315/3.693, allocations: 0.7645 MB / 2.293 GB, free: 232.7 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.003019/3.696, allocations: 0.8236 MB / 2.294 GB, free: 232.5 MB / 1.135 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 2 (chi.vol1.dynBal.U,chi.vol2.dynBal.U) * Number of discrete variables: 4 ($whenCondition1,pulse.T_start,pulse.count,chi.on) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.001724/3.698, allocations: 0.8156 MB / 2.294 GB, free: 232.3 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.002375/3.701, allocations: 1.368 MB / 2.296 GB, free: 232.2 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/3.701, allocations: 0 / 2.296 GB, free: 232.2 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0008453/3.701, allocations: 0.4994 MB / 2.296 GB, free: 232.2 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003266/3.705, allocations: 0.6116 MB / 2.297 GB, free: 232.2 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004724/3.709, allocations: 2.04 MB / 2.299 GB, free: 231.6 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001436/3.711, allocations: 1.418 MB / 2.3 GB, free: 230.9 MB / 1.135 GB Notification: Performance of SimCode: time 8.42e-07/3.711, allocations: 3.828 kB / 2.3 GB, free: 230.9 MB / 1.135 GB Notification: Performance of Templates: time 0.07145/3.782, allocations: 35.37 MB / 2.335 GB, free: 228.2 MB / 1.135 GB make -j1 -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.makefile (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & ./Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Chillers_Examples_ElectricEIR.csv","../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches