Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.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.ElectricEIR_HeatRecovery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP_h|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP_h|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery") [: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.97/1.97, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.001255/0.001255, allocations: 173.3 kB / 490.8 MB, free: 1.961 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.266/1.266, allocations: 221.4 MB / 0.7863 GB, free: 13.68 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.0008649/0.000865, allocations: 95.5 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.733e-06/6.833e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.257/0.257, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9772/1.234, allocations: 431 MB / 1.632 GB, free: 0.5312 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002379/1.235, allocations: 89.62 kB / 1.633 GB, free: 496 kB / 1.042 GB Notification: Performance of FrontEnd: time 2.559/3.794, allocations: 0.638 GB / 2.271 GB, free: 211.1 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002773/3.794, allocations: 48.98 kB / 2.271 GB, free: 211.1 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: 236 * Number of variables: 236 Notification: Performance of Generate backend data structure: time 0.004997/3.799, allocations: 1.767 MB / 2.272 GB, free: 210.3 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/3.799, allocations: 9.719 kB / 2.272 GB, free: 210.3 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004243/3.803, allocations: 0.619 MB / 2.273 GB, free: 210.2 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00471/3.808, allocations: 1.679 MB / 2.275 GB, free: 209.9 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002112/3.808, allocations: 109.4 kB / 2.275 GB, free: 209.9 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004054/3.809, allocations: 62.72 kB / 2.275 GB, free: 209.9 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002257/3.811, allocations: 0.9873 MB / 2.276 GB, free: 209.9 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00221/3.813, allocations: 1.026 MB / 2.277 GB, free: 209.7 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.879e-05/3.813, allocations: 5.531 kB / 2.277 GB, free: 209.7 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001438/3.814, allocations: 3.719 kB / 2.277 GB, free: 209.7 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.241e-05/3.814, allocations: 32.89 kB / 2.277 GB, free: 209.7 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009275/3.823, allocations: 5.78 MB / 2.282 GB, free: 207 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00107/3.824, allocations: 0.6671 MB / 2.283 GB, free: 207 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006902/3.825, allocations: 464.9 kB / 2.283 GB, free: 207 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007294/3.825, allocations: 1.165 MB / 2.285 GB, free: 205.7 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007918/3.826, allocations: 0.5441 MB / 2.285 GB, free: 205.6 MB / 1.167 GB Notification: Performance of pre-optimization done (n=69): time 2.755e-06/3.826, allocations: 0 / 2.285 GB, free: 205.6 MB / 1.167 GB Notification: Performance of matching and sorting (n=69): time 0.01053/3.837, allocations: 1.756 MB / 2.287 GB, free: 205.5 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.17e-05/3.837, allocations: 118 kB / 2.287 GB, free: 205.4 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002288/3.839, allocations: 1.01 MB / 2.288 GB, free: 205.2 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0003196/3.84, allocations: 29.52 kB / 2.288 GB, free: 205.2 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005627/3.84, allocations: 436.3 kB / 2.288 GB, free: 205 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004434/3.841, allocations: 232.1 kB / 2.289 GB, free: 204.9 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.925e-05/3.841, allocations: 2.156 kB / 2.289 GB, free: 204.9 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 9.56e-05/3.841, allocations: 338.9 kB / 2.289 GB, free: 204.6 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006668/3.841, allocations: 369.2 kB / 2.289 GB, free: 204.6 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007768/3.842, allocations: 0.6057 MB / 2.29 GB, free: 204.3 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/3.843, allocations: 431.9 kB / 2.29 GB, free: 204.3 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/3.843, allocations: 3.031 kB / 2.29 GB, free: 204.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=90) (initialization): time 0.01028/3.854, allocations: 1.863 MB / 2.292 GB, free: 204.2 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003077/3.854, allocations: 1.169 MB / 2.293 GB, free: 203 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.257e-05/3.854, allocations: 6.625 kB / 2.293 GB, free: 203 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000921/3.855, allocations: 483.9 kB / 2.294 GB, free: 203 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/3.856, allocations: 201.2 kB / 2.294 GB, free: 203 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0136/3.87, allocations: 3.283 MB / 2.297 GB, free: 201.8 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002424/3.872, allocations: 216.5 kB / 2.297 GB, free: 201.7 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003203/3.873, allocations: 43.55 kB / 2.297 GB, free: 201.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/3.873, allocations: 7.219 kB / 2.297 GB, free: 201.7 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01028/3.883, allocations: 1.692 MB / 2.299 GB, free: 201.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.857e-05/3.883, allocations: 3.906 kB / 2.299 GB, free: 201.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008244/3.884, allocations: 494.2 kB / 2.3 GB, free: 201.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009382/3.885, allocations: 196.2 kB / 2.3 GB, free: 201.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01352/3.898, allocations: 3.279 MB / 2.303 GB, free: 200.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002405/3.901, allocations: 197.8 kB / 2.303 GB, free: 200.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003166/3.901, allocations: 48.97 kB / 2.303 GB, free: 200.4 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 (81): * Single equations (assignments): 79 * 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.0004771/3.902, allocations: 129.2 kB / 2.303 GB, free: 200.3 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005791/3.902, allocations: 145.1 kB / 2.303 GB, free: 200.2 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01069/3.913, allocations: 1.979 MB / 2.305 GB, free: 200.2 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.005e-05/3.913, allocations: 10.97 kB / 2.305 GB, free: 200.2 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.343e-06/3.913, allocations: 3.469 kB / 2.305 GB, free: 200.2 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01018/3.923, allocations: 1.776 MB / 2.307 GB, free: 200 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01537/3.939, allocations: 3.884 MB / 2.311 GB, free: 199.1 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.739e-05/3.939, allocations: 3.938 kB / 2.311 GB, free: 199.1 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007968/3.939, allocations: 161.8 kB / 2.311 GB, free: 199.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008381/3.94, allocations: 497 kB / 2.311 GB, free: 199.1 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001563/3.94, allocations: 23.12 kB / 2.312 GB, free: 199.1 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01455/3.955, allocations: 3.445 MB / 2.315 GB, free: 197.9 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.418e-06/3.955, allocations: 6.156 kB / 2.315 GB, free: 197.9 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01186/3.967, allocations: 2.924 MB / 2.318 GB, free: 197.1 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001391/3.968, allocations: 468.9 kB / 2.318 GB, free: 196.9 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006613/3.969, allocations: 14.45 kB / 2.318 GB, free: 196.9 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002065/3.971, allocations: 167.7 kB / 2.318 GB, free: 196.9 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002153/3.971, allocations: 69.23 kB / 2.318 GB, free: 196.9 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001748/3.972, allocations: 49.72 kB / 2.318 GB, free: 196.9 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.001741/3.973, allocations: 0.7676 MB / 2.319 GB, free: 196.8 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.004349/3.978, allocations: 0.9315 MB / 2.32 GB, free: 196.6 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 (67): * Single equations (assignments): 58 * 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.002111/3.98, allocations: 0.8169 MB / 2.321 GB, free: 196.4 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.006019/3.986, allocations: 1.853 MB / 2.323 GB, free: 196.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/3.986, allocations: 7.719 kB / 2.323 GB, free: 196.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.003418/3.989, allocations: 0.8868 MB / 2.324 GB, free: 196 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003868/3.993, allocations: 0.5992 MB / 2.324 GB, free: 196 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007462/4.001, allocations: 2.364 MB / 2.327 GB, free: 195.4 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001512/4.002, allocations: 1.413 MB / 2.328 GB, free: 194.7 MB / 1.167 GB Notification: Performance of SimCode: time 5.81e-07/4.002, allocations: 3.344 kB / 2.328 GB, free: 194.7 MB / 1.167 GB Notification: Performance of Templates: time 0.07428/4.077, allocations: 44.91 MB / 2.372 GB, free: 192.8 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.makefile (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.sim & ./Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery.csv","../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches