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/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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001377/0.001377, allocations: 189.4 kB / 16.25 MB, free: 6.633 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.407/1.407, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.915/2.915, allocations: 472.6 MB / 0.7448 GB, free: 4.82 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002269/0.002269, allocations: 66.98 kB / 0.9116 GB, free: 33.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3808/0.3831, allocations: 159.9 MB / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.05656/0.4397, allocations: 60.09 MB / 1.126 GB, free: 14.41 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.02033/0.4601, allocations: 13.13 MB / 1.139 GB, free: 1.246 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0032/0.4634, allocations: 67.56 kB / 1.139 GB, free: 1.18 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.003278/0.4667, allocations: 0.8395 MB / 1.14 GB, free: 344 kB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.007052/0.4738, allocations: 2.161 MB / 1.142 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.00431/0.4781, allocations: 1.445 MB / 1.144 GB, free: 12.73 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.007104/0.4852, allocations: 4.345 MB / 1.148 GB, free: 8.383 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00319/0.4885, allocations: 1.33 MB / 1.149 GB, free: 7.023 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005159/0.4937, allocations: 1.598 MB / 1.151 GB, free: 5.426 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002954/0.4966, allocations: 1.237 MB / 1.152 GB, free: 4.184 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0007115/0.4974, allocations: 143.9 kB / 1.152 GB, free: 4.043 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004818/0.5022, allocations: 1.485 MB / 1.154 GB, free: 2.555 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.000897/0.5031, allocations: 426.4 kB / 1.154 GB, free: 2.137 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.002353/0.5055, allocations: 0.9135 MB / 1.155 GB, free: 1.219 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.006068/0.5116, allocations: 2.773 MB / 1.158 GB, free: 14.44 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.5116, allocations: 4 kB / 1.158 GB, free: 14.43 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.713e-06/0.5116, allocations: 0 / 1.158 GB, free: 14.43 MB / 0.92 GB Notification: Performance of Transformations before backend: time 9.766e-05/0.5117, allocations: 0 / 1.158 GB, free: 14.43 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.005657/0.5174, allocations: 2.185 MB / 1.16 GB, free: 12.18 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.5174, allocations: 8.031 kB / 1.16 GB, free: 12.18 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003678/0.5211, allocations: 0.5604 MB / 1.16 GB, free: 11.61 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002578/0.5237, allocations: 1.398 MB / 1.162 GB, free: 10.16 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000163/0.5239, allocations: 145.4 kB / 1.162 GB, free: 10.01 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001795/0.5241, allocations: 104 kB / 1.162 GB, free: 9.906 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003072/0.5271, allocations: 1.33 MB / 1.163 GB, free: 8.539 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.749e-05/0.5272, allocations: 3.938 kB / 1.163 GB, free: 8.535 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001079/0.5273, allocations: 39.98 kB / 1.163 GB, free: 8.496 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.509e-05/0.5273, allocations: 28 kB / 1.163 GB, free: 8.469 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003576/0.5309, allocations: 1.335 MB / 1.165 GB, free: 7.137 MB / 0.92 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.007548/0.5385, allocations: 5.426 MB / 1.17 GB, free: 1.352 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005295/0.5438, allocations: 1.344 MB / 1.171 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00158/0.5454, allocations: 0.6041 MB / 1.172 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009594/0.5464, allocations: 1.244 MB / 1.173 GB, free: 13.86 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001803/0.5482, allocations: 0.6588 MB / 1.174 GB, free: 13.19 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=70): time 3.266e-06/0.5482, allocations: 0 / 1.174 GB, free: 13.19 MB / 0.9356 GB Notification: Performance of matching and sorting (n=70): time 0.005179/0.5534, allocations: 1.688 MB / 1.175 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.336e-05/0.5535, allocations: 63.97 kB / 1.175 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002353/0.5558, allocations: 1.279 MB / 1.177 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001489/0.556, allocations: 41.7 kB / 1.177 GB, free: 10.08 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006332/0.5566, allocations: 0.658 MB / 1.177 GB, free: 9.41 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002593/0.5569, allocations: 232.6 kB / 1.177 GB, free: 9.18 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003167/0.5572, allocations: 178.4 kB / 1.178 GB, free: 9 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000196/0.5574, allocations: 341.9 kB / 1.178 GB, free: 8.66 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001531/0.559, allocations: 0.5278 MB / 1.178 GB, free: 8.129 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001927/0.5609, allocations: 0.7598 MB / 1.179 GB, free: 7.285 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003142/0.5641, allocations: 1.148 MB / 1.18 GB, free: 6.094 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.131e-06/0.5641, allocations: 0 / 1.18 GB, free: 6.094 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.0044/0.5685, allocations: 1.411 MB / 1.182 GB, free: 4.668 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.5e-05/0.5686, allocations: 33.7 kB / 1.182 GB, free: 4.629 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.5686, allocations: 4 kB / 1.182 GB, free: 4.625 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.097e-05/0.5686, allocations: 11.94 kB / 1.182 GB, free: 4.613 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001279/0.5699, allocations: 255.7 kB / 1.182 GB, free: 4.363 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.363e-05/0.5699, allocations: 8 kB / 1.182 GB, free: 4.355 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001987/0.5719, allocations: 227 kB / 1.182 GB, free: 4.133 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001349/0.5721, allocations: 39.98 kB / 1.182 GB, free: 4.094 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002211/0.5743, allocations: 0.7842 MB / 1.183 GB, free: 3.309 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001724/0.576, allocations: 0.7516 MB / 1.184 GB, free: 2.473 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002972/0.579, allocations: 1.128 MB / 1.185 GB, free: 1.293 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.925e-06/0.5791, allocations: 4 kB / 1.185 GB, free: 1.289 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003915/0.583, allocations: 1.391 MB / 1.186 GB, free: 15.89 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 5.159e-05/0.583, allocations: 41.69 kB / 1.186 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.748e-06/0.5831, allocations: 0 / 1.186 GB, free: 15.84 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.5831, allocations: 11.94 kB / 1.186 GB, free: 15.83 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001186/0.5843, allocations: 252 kB / 1.187 GB, free: 15.58 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.62e-05/0.5843, allocations: 11.88 kB / 1.187 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001878/0.5862, allocations: 219.2 kB / 1.187 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001143/0.5863, allocations: 39.97 kB / 1.187 GB, free: 15.32 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.0003635/0.5867, allocations: 228.1 kB / 1.187 GB, free: 15.09 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005006/0.5872, allocations: 146.2 kB / 1.187 GB, free: 14.94 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004092/0.5913, allocations: 1.465 MB / 1.189 GB, free: 13.45 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-05/0.5913, allocations: 11.94 kB / 1.189 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.5913, allocations: 3.938 kB / 1.189 GB, free: 13.44 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003154/0.5945, allocations: 1.226 MB / 1.19 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007817/0.6023, allocations: 3.183 MB / 1.193 GB, free: 8.844 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.374e-05/0.6024, allocations: 8 kB / 1.193 GB, free: 8.836 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00114/0.6035, allocations: 216.1 kB / 1.193 GB, free: 8.625 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.634e-05/0.6036, allocations: 8 kB / 1.193 GB, free: 8.617 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.584e-05/0.6037, allocations: 35.91 kB / 1.193 GB, free: 8.582 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.336e-05/0.6037, allocations: 15.92 kB / 1.193 GB, free: 8.566 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.431e-06/0.6037, allocations: 4 kB / 1.193 GB, free: 8.562 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005681/0.6094, allocations: 2.212 MB / 1.195 GB, free: 6.273 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001014/0.6104, allocations: 354.8 kB / 1.196 GB, free: 5.906 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004445/0.6109, allocations: 19.94 kB / 1.196 GB, free: 5.887 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001838/0.6127, allocations: 167.8 kB / 1.196 GB, free: 5.723 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001827/0.6129, allocations: 68.36 kB / 1.196 GB, free: 5.656 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001283/0.6131, allocations: 43.97 kB / 1.196 GB, free: 5.613 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001716/0.6148, allocations: 0.9051 MB / 1.197 GB, free: 4.711 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.71e-07/0.6148, allocations: 4 kB / 1.197 GB, free: 4.707 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002752/0.6176, allocations: 0.7915 MB / 1.198 GB, free: 3.914 MB / 0.9512 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.001305/0.6189, allocations: 0.5099 MB / 1.198 GB, free: 3.406 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005915/0.6248, allocations: 2.058 MB / 1.2 GB, free: 1.324 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.038e-05/0.6249, allocations: 4 kB / 1.2 GB, free: 1.32 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001957/0.6268, allocations: 0.6796 MB / 1.201 GB, free: 0.6406 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004316/0.6312, allocations: 0.7542 MB / 1.202 GB, free: 15.9 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007874/0.6391, allocations: 3.395 MB / 1.205 GB, free: 12.42 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001129/0.6402, allocations: 1.234 MB / 1.206 GB, free: 11.15 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.002177/0.6424, allocations: 371.5 kB / 1.206 GB, free: 10.79 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005252/0.643, allocations: 123.4 kB / 1.206 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of SimCode: time 4.478e-06/0.643, allocations: 0 / 1.206 GB, free: 10.66 MB / 0.9669 GB Notification: Performance of Templates: time 0.05673/0.6997, allocations: 31 MB / 1.237 GB, free: 12.05 MB / 0.9981 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches