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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001575/0.001575, allocations: 86.33 kB / 15.06 MB, free: 1.09 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.001864/0.001864, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.514/1.514, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.982/2.982, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000485/0.0004851, allocations: 9.75 kB / 0.9021 GB, free: 36.61 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4071/0.4076, allocations: 159.6 MB / 1.058 GB, free: 5.324 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05818/0.4658, allocations: 55.9 MB / 1.113 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01968/0.4855, allocations: 12.41 MB / 1.125 GB, free: 0.8438 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003267/0.4889, allocations: 71.5 kB / 1.125 GB, free: 0.7734 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.002984/0.4919, allocations: 0.7026 MB / 1.125 GB, free: 68 kB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.007977/0.4999, allocations: 1.836 MB / 1.127 GB, free: 14.22 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004855/0.5048, allocations: 1.184 MB / 1.128 GB, free: 13.05 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.008446/0.5132, allocations: 4.783 MB / 1.133 GB, free: 8.254 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002704/0.516, allocations: 0.985 MB / 1.134 GB, free: 7.25 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004529/0.5205, allocations: 1.291 MB / 1.135 GB, free: 5.953 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002527/0.5231, allocations: 1.1 MB / 1.136 GB, free: 4.848 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0001984/0.5233, allocations: 60 kB / 1.136 GB, free: 4.789 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003351/0.5267, allocations: 1.037 MB / 1.137 GB, free: 3.75 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0004476/0.5271, allocations: 330.6 kB / 1.138 GB, free: 3.426 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.0007166/0.5278, allocations: 360.8 kB / 1.138 GB, free: 3.066 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.002935/0.5308, allocations: 2.003 MB / 1.14 GB, free: 1.059 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 9.077e-06/0.5308, allocations: 4 kB / 1.14 GB, free: 1.055 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.935e-06/0.5308, allocations: 3.938 kB / 1.14 GB, free: 1.051 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 2.278e-05/0.5308, allocations: 0 / 1.14 GB, free: 1.051 MB / 0.8887 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.004143/0.535, allocations: 1.93 MB / 1.142 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.5351, allocations: 8.031 kB / 1.142 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003204/0.5383, allocations: 0.5832 MB / 1.143 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00282/0.5411, allocations: 1.361 MB / 1.144 GB, free: 13.05 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001931/0.5413, allocations: 153.3 kB / 1.144 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001688/0.5415, allocations: 100 kB / 1.144 GB, free: 12.79 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003204/0.5447, allocations: 1.362 MB / 1.145 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.67e-05/0.5447, allocations: 0 / 1.145 GB, free: 11.39 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/0.5449, allocations: 44 kB / 1.145 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.341e-05/0.5449, allocations: 24 kB / 1.146 GB, free: 11.33 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003573/0.5485, allocations: 1.397 MB / 1.147 GB, free: 9.926 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.008631/0.5571, allocations: 5.498 MB / 1.152 GB, free: 4.082 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002428/0.5596, allocations: 1.098 MB / 1.153 GB, free: 2.938 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00156/0.5612, allocations: 0.6392 MB / 1.154 GB, free: 2.297 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001152/0.5623, allocations: 1.24 MB / 1.155 GB, free: 0.7812 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001784/0.5641, allocations: 0.694 MB / 1.156 GB, free: 76 kB / 0.9044 GB Notification: Performance of pre-optimization done (n=70): time 3.085e-06/0.5641, allocations: 0 / 1.156 GB, free: 76 kB / 0.9044 GB Notification: Performance of matching and sorting (n=70): time 0.005035/0.5692, allocations: 1.805 MB / 1.158 GB, free: 14.26 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.5692, allocations: 59.97 kB / 1.158 GB, free: 14.19 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001924/0.5712, allocations: 1.321 MB / 1.159 GB, free: 12.86 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 9.426e-05/0.5713, allocations: 41.7 kB / 1.159 GB, free: 12.82 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007168/0.572, allocations: 0.6816 MB / 1.16 GB, free: 12.12 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002441/0.5722, allocations: 232.6 kB / 1.16 GB, free: 11.89 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.373e-05/0.5723, allocations: 16 kB / 1.16 GB, free: 11.88 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001533/0.5725, allocations: 341.9 kB / 1.16 GB, free: 11.54 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001504/0.574, allocations: 0.5601 MB / 1.161 GB, free: 10.98 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001663/0.5757, allocations: 0.7841 MB / 1.162 GB, free: 10.11 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/0.5772, allocations: 0.6136 MB / 1.162 GB, free: 9.492 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.85e-06/0.5772, allocations: 4 kB / 1.162 GB, free: 9.488 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003734/0.581, allocations: 1.469 MB / 1.164 GB, free: 8.004 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001779/0.5812, allocations: 226.8 kB / 1.164 GB, free: 7.73 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.5812, allocations: 4 kB / 1.164 GB, free: 7.727 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/0.5812, allocations: 8 kB / 1.164 GB, free: 7.719 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.5824, allocations: 271.7 kB / 1.164 GB, free: 7.453 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.675e-05/0.5825, allocations: 11.94 kB / 1.164 GB, free: 7.441 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001706/0.5842, allocations: 247 kB / 1.164 GB, free: 7.199 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.105e-05/0.5843, allocations: 39.97 kB / 1.164 GB, free: 7.16 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 8.485e-06/0.5843, allocations: 4 kB / 1.164 GB, free: 7.156 MB / 0.92 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003303/0.5876, allocations: 1.321 MB / 1.166 GB, free: 5.828 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.5876, allocations: 4.312 kB / 1.166 GB, free: 5.824 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.5877, allocations: 12 kB / 1.166 GB, free: 5.812 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001176/0.5888, allocations: 267.6 kB / 1.166 GB, free: 5.551 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.101e-05/0.5889, allocations: 8 kB / 1.166 GB, free: 5.543 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001758/0.5906, allocations: 243.1 kB / 1.166 GB, free: 5.305 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.116e-05/0.5907, allocations: 35.98 kB / 1.166 GB, free: 5.27 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,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,chi.on) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008753/0.5916, allocations: 432.7 kB / 1.167 GB, free: 4.836 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002947/0.5919, allocations: 154.1 kB / 1.167 GB, free: 4.684 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003948/0.5959, allocations: 1.536 MB / 1.168 GB, free: 3.125 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.08e-05/0.5959, allocations: 11.98 kB / 1.168 GB, free: 3.113 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.025e-06/0.5959, allocations: 0 / 1.168 GB, free: 3.113 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003285/0.5992, allocations: 1.308 MB / 1.17 GB, free: 1.773 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007806/0.607, allocations: 3.301 MB / 1.173 GB, free: 14.31 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.551e-05/0.6071, allocations: 8 kB / 1.173 GB, free: 14.3 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001131/0.6082, allocations: 240.2 kB / 1.173 GB, free: 14.07 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.049e-05/0.6083, allocations: 8 kB / 1.173 GB, free: 14.06 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.695e-05/0.6083, allocations: 23.98 kB / 1.173 GB, free: 14.04 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.356e-05/0.6084, allocations: 15.92 kB / 1.173 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/0.6084, allocations: 8 kB / 1.173 GB, free: 14.02 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005487/0.6139, allocations: 2.333 MB / 1.175 GB, free: 11.61 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001024/0.6149, allocations: 382.7 kB / 1.176 GB, free: 11.21 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003663/0.6153, allocations: 16 kB / 1.176 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00156/0.6169, allocations: 190.3 kB / 1.176 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001556/0.617, allocations: 72.38 kB / 1.176 GB, free: 10.95 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.949e-05/0.6172, allocations: 39.97 kB / 1.176 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001587/0.6187, allocations: 0.9376 MB / 1.177 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.61e-07/0.6188, allocations: 0 / 1.177 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002711/0.6215, allocations: 0.7915 MB / 1.178 GB, free: 9.18 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001294/0.6228, allocations: 499 kB / 1.178 GB, free: 8.699 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.005305/0.6281, allocations: 2.113 MB / 1.18 GB, free: 6.562 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/0.6281, allocations: 3.938 kB / 1.18 GB, free: 6.559 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.001818/0.6299, allocations: 0.7147 MB / 1.181 GB, free: 5.844 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003959/0.6339, allocations: 0.7552 MB / 1.182 GB, free: 5.098 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007349/0.6413, allocations: 3.448 MB / 1.185 GB, free: 1.562 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009902/0.6423, allocations: 1.246 MB / 1.186 GB, free: 296 kB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.002164/0.6445, allocations: 383.5 kB / 1.187 GB, free: 15.91 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004262/0.6449, allocations: 123.4 kB / 1.187 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of SimCode: time 8.42e-07/0.6449, allocations: 0 / 1.187 GB, free: 15.79 MB / 0.9512 GB Notification: Performance of Templates: time 0.05572/0.7006, allocations: 29.37 MB / 1.215 GB, free: 2.801 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=480 -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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches