Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_latest_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.COP|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.964/1.964, 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.001193/0.001192, allocations: 185.3 kB / 490.8 MB, free: 1.957 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.344/1.344, 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.001032/0.001032, allocations: 97.44 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.715e-06/7.735e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2659, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9627/1.229, allocations: 430.9 MB / 1.632 GB, free: 1.191 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002695/1.229, allocations: 88 kB / 1.632 GB, free: 1.148 MB / 1.042 GB Notification: Performance of FrontEnd: time 2.491/3.72, allocations: 0.6376 GB / 2.27 GB, free: 208.8 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0002682/3.721, allocations: 44.8 kB / 2.27 GB, free: 208.8 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.005089/3.726, allocations: 1.776 MB / 2.272 GB, free: 208.1 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/3.726, allocations: 10.62 kB / 2.272 GB, free: 208.1 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004312/3.73, allocations: 0.6133 MB / 2.272 GB, free: 208 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00484/3.735, allocations: 1.668 MB / 2.274 GB, free: 207.6 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002244/3.735, allocations: 115.9 kB / 2.274 GB, free: 207.6 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004153/3.736, allocations: 65.77 kB / 2.274 GB, free: 207.6 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002238/3.738, allocations: 0.9712 MB / 2.275 GB, free: 207.6 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00225/3.74, allocations: 1.031 MB / 2.276 GB, free: 207.4 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.428e-05/3.74, allocations: 0 / 2.276 GB, free: 207.4 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001449/3.74, allocations: 0 / 2.276 GB, free: 207.4 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.728e-05/3.74, allocations: 29.03 kB / 2.276 GB, free: 207.4 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009483/3.75, allocations: 5.765 MB / 2.282 GB, free: 204.8 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/3.751, allocations: 0.659 MB / 2.283 GB, free: 204.7 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006885/3.752, allocations: 460.5 kB / 2.283 GB, free: 204.7 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007305/3.753, allocations: 1.165 MB / 2.284 GB, free: 203.4 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008461/3.753, allocations: 0.5478 MB / 2.285 GB, free: 203.3 MB / 1.167 GB Notification: Performance of pre-optimization done (n=68): time 3.988e-06/3.753, allocations: 0 / 2.285 GB, free: 203.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=68): time 0.01026/3.764, allocations: 1.757 MB / 2.286 GB, free: 203.2 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.486e-05/3.764, allocations: 115.2 kB / 2.286 GB, free: 203.1 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002351/3.766, allocations: 1.007 MB / 2.287 GB, free: 202.9 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 0.0002832/3.766, allocations: 28.98 kB / 2.287 GB, free: 202.9 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005186/3.767, allocations: 437.6 kB / 2.288 GB, free: 202.7 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004307/3.767, allocations: 233.6 kB / 2.288 GB, free: 202.6 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.22e-05/3.768, allocations: 0 / 2.288 GB, free: 202.6 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 9.348e-05/3.768, allocations: 331.9 kB / 2.288 GB, free: 202.3 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006312/3.768, allocations: 369.9 kB / 2.289 GB, free: 202.3 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007443/3.769, allocations: 0.6068 MB / 2.289 GB, free: 202 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001212/3.77, allocations: 432.2 kB / 2.29 GB, free: 202 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/3.77, allocations: 0 / 2.29 GB, free: 202 MB / 1.167 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.0102/3.78, allocations: 1.867 MB / 2.292 GB, free: 201.9 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002755/3.781, allocations: 1.163 MB / 2.293 GB, free: 200.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.907e-05/3.781, allocations: 3.406 kB / 2.293 GB, free: 200.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009017/3.782, allocations: 495 kB / 2.293 GB, free: 200.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009677/3.783, allocations: 197.8 kB / 2.293 GB, free: 200.7 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01355/3.796, allocations: 3.304 MB / 2.297 GB, free: 199.5 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002536/3.799, allocations: 210.5 kB / 2.297 GB, free: 199.4 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003298/3.799, allocations: 48.88 kB / 2.297 GB, free: 199.4 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/3.799, allocations: 8.906 kB / 2.297 GB, free: 199.4 MB / 1.167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01068/3.81, allocations: 1.685 MB / 2.299 GB, free: 199.4 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.008e-05/3.81, allocations: 3.812 kB / 2.299 GB, free: 199.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008703/3.811, allocations: 495.3 kB / 2.299 GB, free: 199.4 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009838/3.812, allocations: 193.9 kB / 2.299 GB, free: 199.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01335/3.825, allocations: 3.308 MB / 2.302 GB, free: 198.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00228/3.828, allocations: 205.8 kB / 2.303 GB, free: 198.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002858/3.828, allocations: 49.16 kB / 2.303 GB, free: 198.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.0004496/3.828, allocations: 120.4 kB / 2.303 GB, free: 198 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005355/3.829, allocations: 142.2 kB / 2.303 GB, free: 198 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01076/3.84, allocations: 1.977 MB / 2.305 GB, free: 197.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.092e-05/3.84, allocations: 15.38 kB / 2.305 GB, free: 197.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/3.84, allocations: 3.828 kB / 2.305 GB, free: 197.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009522/3.849, allocations: 1.769 MB / 2.307 GB, free: 197.7 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01577/3.865, allocations: 3.884 MB / 2.31 GB, free: 196.8 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.199e-05/3.865, allocations: 5.688 kB / 2.31 GB, free: 196.8 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008135/3.866, allocations: 158.8 kB / 2.311 GB, free: 196.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000914/3.867, allocations: 497.5 kB / 2.311 GB, free: 196.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001448/3.867, allocations: 24.78 kB / 2.311 GB, free: 196.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01474/3.882, allocations: 3.467 MB / 2.314 GB, free: 195.6 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.108e-05/3.882, allocations: 6.625 kB / 2.314 GB, free: 195.6 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0116/3.894, allocations: 2.923 MB / 2.317 GB, free: 194.9 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001339/3.895, allocations: 472.8 kB / 2.318 GB, free: 194.6 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005433/3.896, allocations: 10.16 kB / 2.318 GB, free: 194.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001872/3.897, allocations: 163.4 kB / 2.318 GB, free: 194.6 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001699/3.898, allocations: 67.91 kB / 2.318 GB, free: 194.6 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001431/3.898, allocations: 48.36 kB / 2.318 GB, free: 194.6 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.001568/3.899, allocations: 0.7656 MB / 2.319 GB, free: 194.5 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.003952/3.903, allocations: 0.9265 MB / 2.32 GB, free: 194.3 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.00188/3.905, allocations: 0.8193 MB / 2.32 GB, free: 194.1 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.005261/3.911, allocations: 1.851 MB / 2.322 GB, free: 193.8 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/3.911, allocations: 0 / 2.322 GB, free: 193.8 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.003288/3.914, allocations: 0.8869 MB / 2.323 GB, free: 193.7 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003358/3.917, allocations: 0.6089 MB / 2.324 GB, free: 193.7 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007255/3.924, allocations: 2.362 MB / 2.326 GB, free: 193.1 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001509/3.926, allocations: 1.398 MB / 2.327 GB, free: 192.4 MB / 1.167 GB Notification: Performance of SimCode: time 1.473e-06/3.926, allocations: 0 / 2.327 GB, free: 192.4 MB / 1.167 GB Notification: Performance of Templates: time 0.072/3.998, allocations: 44.87 MB / 2.371 GB, free: 190.4 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.makefile (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & ./Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Chillers_Examples_ElectricEIR.csv","../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches