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/ModelicaServices 4.0.0+maint.om/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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001534/0.001534, allocations: 104.6 kB / 16.27 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001524/0.001524, allocations: 190.3 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 240.9 MB, free: 15.24 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.65/2.65, allocations: 482.4 MB / 0.7553 GB, free: 6.984 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 77.31 kB / 0.9245 GB, free: 4 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7831/0.785, allocations: 162.2 MB / 1.083 GB, free: 1.656 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.06936/0.8544, allocations: 60.7 MB / 1.142 GB, free: 6.109 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02187/0.8763, allocations: 13.26 MB / 1.155 GB, free: 11.54 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003384/0.8797, allocations: 71.56 kB / 1.155 GB, free: 11.51 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003044/0.8829, allocations: 0.9682 MB / 1.156 GB, free: 10.7 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007374/0.8903, allocations: 2.303 MB / 1.158 GB, free: 8.848 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004531/0.8948, allocations: 1.593 MB / 1.16 GB, free: 7.629 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.006899/0.9017, allocations: 4.309 MB / 1.164 GB, free: 5.109 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002479/0.9042, allocations: 1.341 MB / 1.165 GB, free: 4.234 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004986/0.9092, allocations: 1.757 MB / 1.167 GB, free: 3.184 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002639/0.9119, allocations: 1.189 MB / 1.168 GB, free: 2.445 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0003968/0.9123, allocations: 141 kB / 1.168 GB, free: 2.445 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004249/0.9166, allocations: 1.499 MB / 1.17 GB, free: 1.645 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0005703/0.9172, allocations: 433.4 kB / 1.17 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.001616/0.9188, allocations: 0.9234 MB / 1.171 GB, free: 0.6953 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.005462/0.9243, allocations: 2.805 MB / 1.174 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.532e-06/0.9243, allocations: 1 kB / 1.174 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.513e-06/0.9243, allocations: 0 / 1.174 GB, free: 14.84 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.581e-05/0.9243, allocations: 0 / 1.174 GB, free: 14.84 MB / 0.9044 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.004809/0.9292, allocations: 2.22 MB / 1.176 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.9292, allocations: 8.906 kB / 1.176 GB, free: 13.16 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004364/0.9336, allocations: 0.6109 MB / 1.177 GB, free: 12.9 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002906/0.9365, allocations: 1.403 MB / 1.178 GB, free: 11.8 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002117/0.9367, allocations: 153.1 kB / 1.178 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001843/0.9369, allocations: 96.34 kB / 1.178 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003405/0.9403, allocations: 1.391 MB / 1.18 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.704e-05/0.9404, allocations: 1.125 kB / 1.18 GB, free: 10.84 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001148/0.9405, allocations: 37.91 kB / 1.18 GB, free: 10.82 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.587e-05/0.9406, allocations: 31.94 kB / 1.18 GB, free: 10.81 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004287/0.9448, allocations: 1.426 MB / 1.181 GB, free: 9.918 MB / 0.9044 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009116/0.954, allocations: 5.635 MB / 1.187 GB, free: 3.93 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002852/0.9569, allocations: 1.117 MB / 1.188 GB, free: 2.766 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001714/0.9586, allocations: 0.6271 MB / 1.188 GB, free: 2.137 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001116/0.9597, allocations: 1.232 MB / 1.19 GB, free: 0.625 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001972/0.9617, allocations: 0.6979 MB / 1.19 GB, free: 15.92 MB / 0.92 GB Notification: Performance of pre-optimization done (n=70): time 2.604e-06/0.9617, allocations: 0 / 1.19 GB, free: 15.92 MB / 0.92 GB Notification: Performance of matching and sorting (n=70): time 0.005696/0.9674, allocations: 1.781 MB / 1.192 GB, free: 14.12 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.864e-05/0.9675, allocations: 59.97 kB / 1.192 GB, free: 14.05 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002081/0.9696, allocations: 1.34 MB / 1.193 GB, free: 12.71 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001445/0.9697, allocations: 45.7 kB / 1.193 GB, free: 12.66 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006933/0.9704, allocations: 0.6817 MB / 1.194 GB, free: 11.96 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002776/0.9707, allocations: 240.5 kB / 1.194 GB, free: 11.73 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003249/0.9711, allocations: 174.5 kB / 1.194 GB, free: 11.55 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001623/0.9712, allocations: 334 kB / 1.195 GB, free: 11.22 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00171/0.9729, allocations: 0.559 MB / 1.195 GB, free: 10.66 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001919/0.9749, allocations: 0.7872 MB / 1.196 GB, free: 9.789 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003336/0.9782, allocations: 1.203 MB / 1.197 GB, free: 8.535 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.298e-06/0.9782, allocations: 0 / 1.197 GB, free: 8.535 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004335/0.9826, allocations: 1.47 MB / 1.199 GB, free: 7.051 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 7.043e-05/0.9827, allocations: 45.56 kB / 1.199 GB, free: 7 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.5e-05/0.9827, allocations: 4 kB / 1.199 GB, free: 6.996 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.083e-05/0.9828, allocations: 4 kB / 1.199 GB, free: 6.992 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/0.9841, allocations: 267.6 kB / 1.199 GB, free: 6.73 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.597e-05/0.9842, allocations: 8 kB / 1.199 GB, free: 6.723 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002145/0.9863, allocations: 195 kB / 1.199 GB, free: 6.531 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001248/0.9865, allocations: 43.92 kB / 1.199 GB, free: 6.488 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002449/0.9889, allocations: 0.8259 MB / 1.2 GB, free: 5.656 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001886/0.9908, allocations: 0.7751 MB / 1.201 GB, free: 4.801 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003319/0.9941, allocations: 1.187 MB / 1.202 GB, free: 3.566 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.226e-06/0.9942, allocations: 0 / 1.202 GB, free: 3.566 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004292/0.9985, allocations: 1.465 MB / 1.203 GB, free: 2.09 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.905e-05/0.9985, allocations: 37.69 kB / 1.203 GB, free: 2.047 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.46e-06/0.9985, allocations: 3.938 kB / 1.203 GB, free: 2.043 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.257e-05/0.9986, allocations: 11.94 kB / 1.203 GB, free: 2.031 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001281/0.9998, allocations: 267.9 kB / 1.204 GB, free: 1.77 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.9999, allocations: 11.98 kB / 1.204 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001859/1.002, allocations: 179.4 kB / 1.204 GB, free: 1.582 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.814e-05/1.002, allocations: 35.98 kB / 1.204 GB, free: 1.547 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (chi.tru.y,chi.on,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003492/1.002, allocations: 239.1 kB / 1.204 GB, free: 1.309 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003232/1.003, allocations: 154.1 kB / 1.204 GB, free: 1.156 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004261/1.007, allocations: 1.525 MB / 1.206 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.638e-05/1.007, allocations: 8 kB / 1.206 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/1.007, allocations: 0 / 1.206 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00348/1.01, allocations: 1.289 MB / 1.207 GB, free: 14.28 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007366/1.018, allocations: 3.309 MB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.135e-05/1.018, allocations: 4 kB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001211/1.019, allocations: 227.8 kB / 1.211 GB, free: 10.59 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.506e-05/1.019, allocations: 12 kB / 1.211 GB, free: 10.58 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.878e-05/1.019, allocations: 31.97 kB / 1.211 GB, free: 10.55 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.978e-05/1.019, allocations: 8 kB / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.736e-06/1.019, allocations: 7.938 kB / 1.211 GB, free: 10.54 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006133/1.025, allocations: 2.31 MB / 1.213 GB, free: 8.145 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009462/1.026, allocations: 358.8 kB / 1.213 GB, free: 7.773 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002362/1.026, allocations: 24.06 kB / 1.213 GB, free: 7.75 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001381/1.028, allocations: 135.8 kB / 1.213 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000161/1.028, allocations: 76.34 kB / 1.213 GB, free: 7.543 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.157e-05/1.028, allocations: 39.97 kB / 1.213 GB, free: 7.504 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001414/1.03, allocations: 0.9649 MB / 1.214 GB, free: 6.543 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.5e-07/1.03, allocations: 0 / 1.214 GB, free: 6.543 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002368/1.032, allocations: 0.8071 MB / 1.215 GB, free: 5.734 MB / 0.9356 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001179/1.033, allocations: 0.5268 MB / 1.216 GB, free: 5.211 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.006093/1.039, allocations: 2.152 MB / 1.218 GB, free: 3.039 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/1.039, allocations: 7.938 kB / 1.218 GB, free: 3.031 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.002003/1.041, allocations: 0.6913 MB / 1.218 GB, free: 2.34 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00389/1.045, allocations: 0.7694 MB / 1.219 GB, free: 1.59 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006716/1.052, allocations: 3.014 MB / 1.222 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009209/1.053, allocations: 1.241 MB / 1.223 GB, free: 13.21 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006066/1.053, allocations: 147.3 kB / 1.224 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of SimCode: time 8.42e-07/1.053, allocations: 0 / 1.224 GB, free: 13.07 MB / 0.9512 GB Notification: Performance of Templates: time 0.04287/1.096, allocations: 27.45 MB / 1.25 GB, free: 1.816 MB / 0.9669 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=400 -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches