Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.937/1.937, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.001146/0.001147, allocations: 169.3 kB / 490.8 MB, free: 1.938 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.243/1.243, allocations: 221.3 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009999/0.001, allocations: 102 kB / 0.9264 GB, free: 14.19 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.743e-06/6.763e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2594, allocations: 143 MB / 1.212 GB, free: 40.13 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.948/1.207, allocations: 430.9 MB / 1.632 GB, free: 0.9375 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002872/1.208, allocations: 89.38 kB / 1.632 GB, free: 0.8945 MB / 1.042 GB Notification: Performance of FrontEnd: time 2.51/3.718, allocations: 0.6382 GB / 2.271 GB, free: 211.3 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0003151/3.718, allocations: 48.7 kB / 2.271 GB, free: 211.3 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 233 * Number of variables: 233 Notification: Performance of Generate backend data structure: time 0.00612/3.724, allocations: 1.799 MB / 2.272 GB, free: 210.6 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.394e-05/3.724, allocations: 10 kB / 2.272 GB, free: 210.6 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004459/3.729, allocations: 0.617 MB / 2.273 GB, free: 210.5 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005483/3.734, allocations: 1.691 MB / 2.275 GB, free: 210.2 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002455/3.735, allocations: 112.8 kB / 2.275 GB, free: 210.1 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004668/3.735, allocations: 67.41 kB / 2.275 GB, free: 210.1 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002544/3.738, allocations: 0.9958 MB / 2.276 GB, free: 210.1 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00179/3.739, allocations: 1.036 MB / 2.277 GB, free: 210 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.316e-05/3.739, allocations: 6.281 kB / 2.277 GB, free: 210 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.808e-05/3.74, allocations: 0 / 2.277 GB, free: 210 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.703e-05/3.74, allocations: 25.22 kB / 2.277 GB, free: 210 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008447/3.748, allocations: 5.832 MB / 2.283 GB, free: 207.3 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/3.749, allocations: 0.6799 MB / 2.283 GB, free: 207.3 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006948/3.75, allocations: 482.9 kB / 2.284 GB, free: 207.3 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007224/3.751, allocations: 1.157 MB / 2.285 GB, free: 205.9 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007386/3.751, allocations: 0.5581 MB / 2.285 GB, free: 205.9 MB / 1.167 GB Notification: Performance of pre-optimization done (n=68): time 3.887e-06/3.751, allocations: 0 / 2.285 GB, free: 205.9 MB / 1.167 GB Notification: Performance of matching and sorting (n=68): time 0.01003/3.762, allocations: 1.802 MB / 2.287 GB, free: 205.7 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.732e-05/3.762, allocations: 119.2 kB / 2.287 GB, free: 205.6 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001647/3.763, allocations: 1.057 MB / 2.288 GB, free: 205.5 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0002103/3.763, allocations: 33.47 kB / 2.288 GB, free: 205.4 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004181/3.764, allocations: 447.4 kB / 2.289 GB, free: 205.2 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002862/3.764, allocations: 219.3 kB / 2.289 GB, free: 205.1 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.5e-05/3.764, allocations: 0 / 2.289 GB, free: 205.1 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 8.142e-05/3.764, allocations: 334.8 kB / 2.289 GB, free: 204.8 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005518/3.765, allocations: 383.7 kB / 2.29 GB, free: 204.8 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006645/3.766, allocations: 0.6184 MB / 2.29 GB, free: 204.6 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/3.767, allocations: 460.7 kB / 2.291 GB, free: 204.5 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/3.767, allocations: 0 / 2.291 GB, free: 204.5 MB / 1.167 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.008971/3.776, allocations: 1.793 MB / 2.292 GB, free: 204.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.000241/3.776, allocations: 1.168 MB / 2.294 GB, free: 203.2 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/3.776, allocations: 12.55 kB / 2.294 GB, free: 203.2 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008869/3.777, allocations: 0.5159 MB / 2.294 GB, free: 203.2 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007958/3.778, allocations: 199.4 kB / 2.294 GB, free: 203.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002805/3.78, allocations: 1.11 MB / 2.295 GB, free: 202.7 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002386/3.783, allocations: 209 kB / 2.296 GB, free: 202.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001759/3.783, allocations: 51.62 kB / 2.296 GB, free: 202.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/3.783, allocations: 6.719 kB / 2.296 GB, free: 202.7 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009209/3.792, allocations: 1.609 MB / 2.297 GB, free: 202.6 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/3.792, allocations: 0 / 2.297 GB, free: 202.6 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009198/3.793, allocations: 0.5244 MB / 2.298 GB, free: 202.6 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009937/3.794, allocations: 196.6 kB / 2.298 GB, free: 202.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003182/3.798, allocations: 1.106 MB / 2.299 GB, free: 202.1 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002545/3.8, allocations: 208.1 kB / 2.299 GB, free: 202.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/3.8, allocations: 47.8 kB / 2.299 GB, free: 202.1 MB / 1.167 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 (80): * Single equations (assignments): 78 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of prepare postOptimizeDAE: time 0.0003902/3.801, allocations: 125.1 kB / 2.299 GB, free: 202 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002848/3.801, allocations: 143.2 kB / 2.299 GB, free: 201.9 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01033/3.811, allocations: 2.035 MB / 2.301 GB, free: 201.8 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.714e-05/3.811, allocations: 10.88 kB / 2.301 GB, free: 201.8 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/3.811, allocations: 0 / 2.301 GB, free: 201.8 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009686/3.821, allocations: 1.817 MB / 2.303 GB, free: 201.6 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00626/3.827, allocations: 3.239 MB / 2.306 GB, free: 200.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.207e-06/3.827, allocations: 6.969 kB / 2.306 GB, free: 200.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006833/3.828, allocations: 163.7 kB / 2.307 GB, free: 200.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008208/3.829, allocations: 0.5274 MB / 2.307 GB, free: 200.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.884e-05/3.829, allocations: 15.42 kB / 2.307 GB, free: 200.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004081/3.833, allocations: 1.309 MB / 2.308 GB, free: 200.3 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.733e-06/3.833, allocations: 3.5 kB / 2.308 GB, free: 200.3 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003393/3.837, allocations: 2.284 MB / 2.311 GB, free: 199.5 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/3.838, allocations: 481.2 kB / 2.311 GB, free: 199.2 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002635/3.838, allocations: 6.125 kB / 2.311 GB, free: 199.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001494/3.839, allocations: 167.5 kB / 2.311 GB, free: 199.2 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001612/3.84, allocations: 70.03 kB / 2.311 GB, free: 199.2 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001207/3.84, allocations: 50.62 kB / 2.311 GB, free: 199.2 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.001168/3.841, allocations: 0.802 MB / 2.312 GB, free: 199.1 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.002643/3.843, allocations: 0.8559 MB / 2.313 GB, free: 199 MB / 1.167 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 (66): * Single equations (assignments): 57 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001601/3.845, allocations: 0.8403 MB / 2.314 GB, free: 198.8 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.004907/3.85, allocations: 1.66 MB / 2.315 GB, free: 198.7 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/3.85, allocations: 6.531 kB / 2.315 GB, free: 198.7 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.00318/3.853, allocations: 0.7825 MB / 2.316 GB, free: 198.7 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003432/3.857, allocations: 0.6113 MB / 2.317 GB, free: 198.7 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005826/3.863, allocations: 2.323 MB / 2.319 GB, free: 198 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/3.864, allocations: 1.412 MB / 2.32 GB, free: 197.3 MB / 1.167 GB Notification: Performance of SimCode: time 1.072e-06/3.864, allocations: 0 / 2.32 GB, free: 197.3 MB / 1.167 GB Notification: Performance of Templates: time 0.05635/3.92, allocations: 37.93 MB / 2.357 GB, free: 196.1 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.csv","../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches