Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.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.ElectricReformulatedEIR,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.ElectricReformulatedEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR,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.ElectricReformulatedEIR") [: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.085/2.085, allocations: 387.2 MB / 394.5 MB, free: 13.67 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.001061/0.001061, allocations: 180.5 kB / 487 MB, free: 5.383 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.5/1.5, allocations: 221.3 MB / 0.7819 GB, free: 1.391 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.001084/0.001084, allocations: 100.6 kB / 0.9213 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.665e-06/7.674e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3132/0.3132, allocations: 142.3 MB / 1.205 GB, free: 26.27 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.052/1.365, allocations: 428.9 MB / 1.624 GB, free: 10.8 MB / 1.057 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002731/1.365, allocations: 86.2 kB / 1.624 GB, free: 10.76 MB / 1.057 GB Notification: Performance of FrontEnd: time 2.378/3.743, allocations: 0.6378 GB / 2.262 GB, free: 243.1 MB / 1.135 GB Notification: Performance of Transformations before backend: time 0.0001598/3.744, allocations: 37.27 kB / 2.262 GB, free: 243.1 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.003311/3.747, allocations: 1.796 MB / 2.264 GB, free: 242.3 MB / 1.135 GB Notification: Performance of prepare preOptimizeDAE: time 4.122e-05/3.747, allocations: 16.02 kB / 2.264 GB, free: 242.3 MB / 1.135 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003509/3.751, allocations: 0.6794 MB / 2.264 GB, free: 242.2 MB / 1.135 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003206/3.754, allocations: 1.686 MB / 2.266 GB, free: 241.9 MB / 1.135 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/3.754, allocations: 106.7 kB / 2.266 GB, free: 241.8 MB / 1.135 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001383/3.754, allocations: 62.66 kB / 2.266 GB, free: 241.8 MB / 1.135 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001568/3.756, allocations: 0.9403 MB / 2.267 GB, free: 241.8 MB / 1.135 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001461/3.757, allocations: 1.008 MB / 2.268 GB, free: 241.7 MB / 1.135 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.715e-05/3.757, allocations: 3.375 kB / 2.268 GB, free: 241.7 MB / 1.135 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.083e-05/3.757, allocations: 3.906 kB / 2.268 GB, free: 241.7 MB / 1.135 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.116e-05/3.757, allocations: 35.25 kB / 2.268 GB, free: 241.7 MB / 1.135 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006856/3.764, allocations: 5.705 MB / 2.274 GB, free: 239 MB / 1.135 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001077/3.765, allocations: 0.6578 MB / 2.274 GB, free: 239 MB / 1.135 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006303/3.766, allocations: 452.8 kB / 2.275 GB, free: 239 MB / 1.135 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007314/3.767, allocations: 1.243 MB / 2.276 GB, free: 237.6 MB / 1.135 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006815/3.767, allocations: 0.5356 MB / 2.277 GB, free: 237.5 MB / 1.135 GB Notification: Performance of pre-optimization done (n=67): time 2.244e-06/3.767, allocations: 0 / 2.277 GB, free: 237.5 MB / 1.135 GB Notification: Performance of matching and sorting (n=67): time 0.002037/3.769, allocations: 0.9357 MB / 2.277 GB, free: 237.4 MB / 1.135 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.549e-05/3.769, allocations: 117.2 kB / 2.278 GB, free: 237.2 MB / 1.135 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001339/3.771, allocations: 1.046 MB / 2.279 GB, free: 237.1 MB / 1.135 GB Notification: Performance of collectPreVariables (initialization): time 8.755e-05/3.771, allocations: 28.39 kB / 2.279 GB, free: 237.1 MB / 1.135 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003543/3.771, allocations: 446.2 kB / 2.279 GB, free: 236.8 MB / 1.135 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002081/3.771, allocations: 221.1 kB / 2.279 GB, free: 236.7 MB / 1.135 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.379e-05/3.771, allocations: 0 / 2.279 GB, free: 236.7 MB / 1.135 GB Notification: Performance of setup shared object (initialization): time 7.258e-05/3.772, allocations: 339.7 kB / 2.28 GB, free: 236.4 MB / 1.135 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00049/3.772, allocations: 357.5 kB / 2.28 GB, free: 236.4 MB / 1.135 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006461/3.773, allocations: 0.5874 MB / 2.28 GB, free: 236.1 MB / 1.135 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009563/3.774, allocations: 447.6 kB / 2.281 GB, free: 236.1 MB / 1.135 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.508e-06/3.774, allocations: 7.438 kB / 2.281 GB, free: 236.1 MB / 1.135 GB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001907/3.776, allocations: 1.043 MB / 2.282 GB, free: 236 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002643/3.776, allocations: 1.16 MB / 2.283 GB, free: 234.8 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/3.776, allocations: 3.938 kB / 2.283 GB, free: 234.8 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/3.776, allocations: 7.688 kB / 2.283 GB, free: 234.8 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001361/3.777, allocations: 290.1 kB / 2.283 GB, free: 234.8 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/3.777, allocations: 7.75 kB / 2.283 GB, free: 234.8 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001681/3.779, allocations: 222.1 kB / 2.284 GB, free: 234.8 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001219/3.779, allocations: 52.88 kB / 2.284 GB, free: 234.8 MB / 1.135 GB Notification: Performance of prepare postOptimizeDAE: time 7.985e-06/3.779, allocations: 3.938 kB / 2.284 GB, free: 234.8 MB / 1.135 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001641/3.781, allocations: 0.8653 MB / 2.284 GB, free: 234.8 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/3.781, allocations: 3.906 kB / 2.284 GB, free: 234.8 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.516e-06/3.781, allocations: 7.062 kB / 2.284 GB, free: 234.8 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/3.782, allocations: 287.8 kB / 2.285 GB, free: 234.8 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/3.782, allocations: 10.03 kB / 2.285 GB, free: 234.8 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001577/3.784, allocations: 215.2 kB / 2.285 GB, free: 234.7 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.984e-05/3.784, allocations: 47.91 kB / 2.285 GB, free: 234.7 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.0002553/3.784, allocations: 133.8 kB / 2.285 GB, free: 234.6 MB / 1.135 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002023/3.784, allocations: 140.3 kB / 2.285 GB, free: 234.6 MB / 1.135 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002361/3.787, allocations: 1.158 MB / 2.286 GB, free: 234.5 MB / 1.135 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.501e-05/3.787, allocations: 11.66 kB / 2.286 GB, free: 234.5 MB / 1.135 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.564e-06/3.787, allocations: 3.938 kB / 2.286 GB, free: 234.5 MB / 1.135 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001578/3.788, allocations: 0.9535 MB / 2.287 GB, free: 234.3 MB / 1.135 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004859/3.793, allocations: 3.018 MB / 2.29 GB, free: 233.5 MB / 1.135 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/3.793, allocations: 7.344 kB / 2.29 GB, free: 233.5 MB / 1.135 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001214/3.794, allocations: 249.6 kB / 2.291 GB, free: 233.5 MB / 1.135 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-05/3.794, allocations: 14.2 kB / 2.291 GB, free: 233.5 MB / 1.135 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.496e-05/3.795, allocations: 21.83 kB / 2.291 GB, free: 233.5 MB / 1.135 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.698e-06/3.795, allocations: 10.12 kB / 2.291 GB, free: 233.5 MB / 1.135 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/3.795, allocations: 3.812 kB / 2.291 GB, free: 233.5 MB / 1.135 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002812/3.797, allocations: 2.106 MB / 2.293 GB, free: 232.7 MB / 1.135 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008726/3.798, allocations: 469.6 kB / 2.293 GB, free: 232.5 MB / 1.135 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003649/3.799, allocations: 13.92 kB / 2.293 GB, free: 232.5 MB / 1.135 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001599/3.8, allocations: 175.2 kB / 2.293 GB, free: 232.5 MB / 1.135 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/3.8, allocations: 65.2 kB / 2.293 GB, free: 232.5 MB / 1.135 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001067/3.801, allocations: 52.61 kB / 2.293 GB, free: 232.5 MB / 1.135 GB Notification: Performance of sort global known variables: time 0.00122/3.802, allocations: 0.8011 MB / 2.294 GB, free: 232.3 MB / 1.135 GB Notification: Performance of remove unused functions: time 0.00281/3.805, allocations: 0.8349 MB / 2.295 GB, free: 232.2 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.001728/3.806, allocations: 0.8252 MB / 2.296 GB, free: 232 MB / 1.135 GB Notification: Performance of simCode: created initialization part: time 0.002291/3.809, allocations: 1.387 MB / 2.297 GB, free: 231.9 MB / 1.135 GB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/3.809, allocations: 3.562 kB / 2.297 GB, free: 231.9 MB / 1.135 GB Notification: Performance of simCode: created simulation system equations: time 0.0008672/3.809, allocations: 0.5019 MB / 2.298 GB, free: 231.9 MB / 1.135 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003196/3.813, allocations: 0.6149 MB / 2.298 GB, free: 231.9 MB / 1.135 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004566/3.817, allocations: 2.099 MB / 2.3 GB, free: 231.3 MB / 1.135 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001404/3.819, allocations: 1.436 MB / 2.302 GB, free: 230.5 MB / 1.135 GB Notification: Performance of SimCode: time 9.82e-07/3.819, allocations: 3.844 kB / 2.302 GB, free: 230.5 MB / 1.135 GB Notification: Performance of Templates: time 0.07067/3.889, allocations: 35.72 MB / 2.337 GB, free: 227.3 MB / 1.135 GB make -j1 -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.csv","../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches