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.001679/0.001679, allocations: 106.1 kB / 15.98 MB, free: 5.891 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.001827/0.001827, allocations: 196.4 kB / 16.91 MB, free: 5.746 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.457/1.457, allocations: 222.9 MB / 240.6 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.94/2.94, allocations: 482.4 MB / 0.755 GB, free: 11.16 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001943, allocations: 71.36 kB / 0.924 GB, free: 29.54 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3378/0.3398, allocations: 162.2 MB / 1.082 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.0651/0.405, allocations: 60.19 MB / 1.141 GB, free: 1.195 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02125/0.4263, allocations: 13.17 MB / 1.154 GB, free: 4 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003171/0.4295, allocations: 67.56 kB / 1.154 GB, free: 3.934 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.003163/0.4327, allocations: 0.8473 MB / 1.155 GB, free: 3.082 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.007189/0.4399, allocations: 2.145 MB / 1.157 GB, free: 0.9297 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004408/0.4443, allocations: 1.469 MB / 1.158 GB, free: 15.47 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.006604/0.451, allocations: 4.333 MB / 1.163 GB, free: 11.12 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002534/0.4535, allocations: 1.334 MB / 1.164 GB, free: 9.754 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006169/0.4597, allocations: 1.779 MB / 1.166 GB, free: 7.977 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002903/0.4626, allocations: 1.229 MB / 1.167 GB, free: 6.742 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0003845/0.463, allocations: 144 kB / 1.167 GB, free: 6.602 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003785/0.4668, allocations: 1.509 MB / 1.169 GB, free: 5.09 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0005263/0.4674, allocations: 430.4 kB / 1.169 GB, free: 4.668 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001404/0.4688, allocations: 0.9367 MB / 1.17 GB, free: 3.727 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.003385/0.4722, allocations: 2.14 MB / 1.172 GB, free: 1.582 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.152e-06/0.4722, allocations: 8 kB / 1.172 GB, free: 1.574 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.693e-06/0.4722, allocations: 0 / 1.172 GB, free: 1.574 MB / 0.92 GB Notification: Performance of Transformations before backend: time 2.541e-05/0.4723, allocations: 0 / 1.172 GB, free: 1.574 MB / 0.92 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.004221/0.4765, allocations: 2.217 MB / 1.174 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.66e-05/0.4765, allocations: 8.031 kB / 1.174 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004407/0.4809, allocations: 0.615 MB / 1.175 GB, free: 14.67 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00286/0.4838, allocations: 1.434 MB / 1.176 GB, free: 13.18 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001879/0.484, allocations: 149.3 kB / 1.176 GB, free: 13.02 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001884/0.4842, allocations: 100 kB / 1.176 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003403/0.4876, allocations: 1.389 MB / 1.178 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.095e-05/0.4877, allocations: 3.938 kB / 1.178 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001149/0.4878, allocations: 36 kB / 1.178 GB, free: 11.46 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-05/0.4879, allocations: 27.98 kB / 1.178 GB, free: 11.43 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00418/0.492, allocations: 1.44 MB / 1.179 GB, free: 9.992 MB / 0.9356 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.008829/0.5009, allocations: 5.604 MB / 1.185 GB, free: 4.035 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002898/0.5038, allocations: 1.101 MB / 1.186 GB, free: 2.887 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001735/0.5056, allocations: 0.627 MB / 1.186 GB, free: 2.258 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001076/0.5067, allocations: 1.236 MB / 1.188 GB, free: 0.7461 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002005/0.5087, allocations: 0.694 MB / 1.188 GB, free: 44 kB / 0.9356 GB Notification: Performance of pre-optimization done (n=70): time 3.175e-06/0.5087, allocations: 0 / 1.188 GB, free: 44 kB / 0.9356 GB Notification: Performance of matching and sorting (n=70): time 0.005737/0.5144, allocations: 1.777 MB / 1.19 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.776e-05/0.5145, allocations: 63.97 kB / 1.19 GB, free: 14.18 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002057/0.5166, allocations: 1.332 MB / 1.191 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.000143/0.5167, allocations: 45.64 kB / 1.191 GB, free: 12.79 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006775/0.5174, allocations: 0.6779 MB / 1.192 GB, free: 12.1 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.000288/0.5177, allocations: 236.5 kB / 1.192 GB, free: 11.87 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003347/0.5181, allocations: 182.4 kB / 1.192 GB, free: 11.68 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001731/0.5182, allocations: 333.9 kB / 1.193 GB, free: 11.35 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001712/0.52, allocations: 0.559 MB / 1.193 GB, free: 10.79 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001942/0.5219, allocations: 0.7872 MB / 1.194 GB, free: 9.918 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003407/0.5253, allocations: 1.199 MB / 1.195 GB, free: 8.672 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.378e-06/0.5253, allocations: 0 / 1.195 GB, free: 8.672 MB / 0.9512 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004329/0.5297, allocations: 1.473 MB / 1.197 GB, free: 7.184 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.987e-05/0.5298, allocations: 39.39 kB / 1.197 GB, free: 7.141 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.498e-06/0.5298, allocations: 4 kB / 1.197 GB, free: 7.137 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.827e-05/0.5298, allocations: 8 kB / 1.197 GB, free: 7.129 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001363/0.5312, allocations: 259.7 kB / 1.197 GB, free: 6.875 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.251e-05/0.5312, allocations: 15.92 kB / 1.197 GB, free: 6.859 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001839/0.5331, allocations: 239 kB / 1.197 GB, free: 6.625 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001079/0.5332, allocations: 39.97 kB / 1.197 GB, free: 6.586 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002192/0.5354, allocations: 0.8259 MB / 1.198 GB, free: 5.758 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00188/0.5373, allocations: 0.7769 MB / 1.199 GB, free: 4.902 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003268/0.5405, allocations: 1.191 MB / 1.2 GB, free: 3.664 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.829e-06/0.5406, allocations: 0 / 1.2 GB, free: 3.664 MB / 0.9512 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004238/0.5448, allocations: 1.458 MB / 1.201 GB, free: 2.191 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 4.572e-05/0.5449, allocations: 33.7 kB / 1.201 GB, free: 2.152 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/0.5449, allocations: 7.984 kB / 1.201 GB, free: 2.145 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.5449, allocations: 11.94 kB / 1.201 GB, free: 2.133 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/0.5463, allocations: 267.9 kB / 1.202 GB, free: 1.871 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.118e-05/0.5463, allocations: 4 kB / 1.202 GB, free: 1.867 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001921/0.5482, allocations: 223.2 kB / 1.202 GB, free: 1.648 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001002/0.5483, allocations: 39.97 kB / 1.202 GB, free: 1.609 MB / 0.9512 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.0003527/0.5487, allocations: 228 kB / 1.202 GB, free: 1.379 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003387/0.5491, allocations: 158.1 kB / 1.202 GB, free: 1.223 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004356/0.5534, allocations: 1.525 MB / 1.204 GB, free: 15.68 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.437e-05/0.5535, allocations: 15.98 kB / 1.204 GB, free: 15.66 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.5535, allocations: 4 kB / 1.204 GB, free: 15.66 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003532/0.557, allocations: 1.281 MB / 1.205 GB, free: 14.35 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00752/0.5646, allocations: 3.3 MB / 1.208 GB, free: 10.89 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.204e-05/0.5646, allocations: 4 kB / 1.208 GB, free: 10.89 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001274/0.5659, allocations: 236.1 kB / 1.209 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.761e-05/0.5659, allocations: 11.98 kB / 1.209 GB, free: 10.65 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.432e-05/0.566, allocations: 23.98 kB / 1.209 GB, free: 10.62 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.175e-05/0.566, allocations: 8 kB / 1.209 GB, free: 10.62 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.934e-06/0.566, allocations: 7.938 kB / 1.209 GB, free: 10.61 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006119/0.5722, allocations: 2.325 MB / 1.211 GB, free: 8.203 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008851/0.5731, allocations: 358.8 kB / 1.211 GB, free: 7.832 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000244/0.5733, allocations: 19.98 kB / 1.211 GB, free: 7.812 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00162/0.575, allocations: 171.8 kB / 1.211 GB, free: 7.645 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/0.5752, allocations: 68.36 kB / 1.211 GB, free: 7.578 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001009/0.5753, allocations: 39.97 kB / 1.212 GB, free: 7.539 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.00143/0.5767, allocations: 0.9493 MB / 1.212 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of sort global known variables: time 2.9e-07/0.5767, allocations: 0 / 1.212 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.002245/0.579, allocations: 0.8071 MB / 1.213 GB, free: 5.785 MB / 0.9669 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.001209/0.5802, allocations: 0.522 MB / 1.214 GB, free: 5.27 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.00631/0.5865, allocations: 2.152 MB / 1.216 GB, free: 3.094 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/0.5865, allocations: 0 / 1.216 GB, free: 3.094 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.002062/0.5886, allocations: 0.6913 MB / 1.217 GB, free: 2.406 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00397/0.5926, allocations: 0.756 MB / 1.217 GB, free: 1.664 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007513/0.6001, allocations: 3.529 MB / 1.221 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009576/0.6011, allocations: 1.249 MB / 1.222 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006857/0.6018, allocations: 139.4 kB / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of SimCode: time 3.116e-06/0.6018, allocations: 0 / 1.222 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of Templates: time 0.04538/0.6472, allocations: 27.25 MB / 1.249 GB, free: 1.566 MB / 0.9981 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