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.001901/0.001901, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002053/0.002053, allocations: 199.8 kB / 16.79 MB, free: 6.809 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.385/1.385, allocations: 222.9 MB / 240.5 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.732/2.732, allocations: 461.8 MB / 0.7348 GB, free: 14.22 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001273, allocations: 65.23 kB / 0.899 GB, free: 37.04 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3017/0.303, allocations: 157.4 MB / 1.053 GB, free: 8.352 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.05788/0.3609, allocations: 60.22 MB / 1.112 GB, free: 11.92 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.019/0.3799, allocations: 13.32 MB / 1.125 GB, free: 14.57 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002904/0.3829, allocations: 67.56 kB / 1.125 GB, free: 14.51 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.00311/0.386, allocations: 0.8082 MB / 1.125 GB, free: 13.7 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.006818/0.3929, allocations: 2.154 MB / 1.128 GB, free: 11.53 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.004143/0.3971, allocations: 1.426 MB / 1.129 GB, free: 10.12 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.006658/0.4037, allocations: 5.56 MB / 1.134 GB, free: 4.543 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002217/0.406, allocations: 1.138 MB / 1.135 GB, free: 3.379 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003112/0.4091, allocations: 1.361 MB / 1.137 GB, free: 2.012 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002099/0.4112, allocations: 1.217 MB / 1.138 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0004456/0.4117, allocations: 76 kB / 1.138 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003625/0.4153, allocations: 1.407 MB / 1.139 GB, free: 15.3 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0006939/0.4161, allocations: 370.4 kB / 1.14 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.001775/0.4179, allocations: 0.8508 MB / 1.141 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003243/0.4211, allocations: 2.113 MB / 1.143 GB, free: 11.97 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.4211, allocations: 7.938 kB / 1.143 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.192e-06/0.4211, allocations: 0 / 1.143 GB, free: 11.96 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 6.984e-05/0.4212, allocations: 0 / 1.143 GB, free: 11.96 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.00475/0.426, allocations: 2.209 MB / 1.145 GB, free: 9.684 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.08e-05/0.426, allocations: 11.97 kB / 1.145 GB, free: 9.672 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003932/0.43, allocations: 0.5604 MB / 1.145 GB, free: 9.109 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002953/0.4329, allocations: 1.43 MB / 1.147 GB, free: 7.629 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001891/0.4332, allocations: 153.4 kB / 1.147 GB, free: 7.465 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000254/0.4334, allocations: 100 kB / 1.147 GB, free: 7.367 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003322/0.4368, allocations: 1.33 MB / 1.148 GB, free: 6.004 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.409e-05/0.4368, allocations: 8 kB / 1.148 GB, free: 5.996 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001234/0.4369, allocations: 36 kB / 1.148 GB, free: 5.961 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.612e-05/0.437, allocations: 31.94 kB / 1.148 GB, free: 5.93 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003833/0.4408, allocations: 1.343 MB / 1.15 GB, free: 4.582 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.007833/0.4487, allocations: 5.486 MB / 1.155 GB, free: 14.74 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002554/0.4512, allocations: 1.061 MB / 1.156 GB, free: 13.64 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001604/0.4529, allocations: 0.6003 MB / 1.157 GB, free: 13.03 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000835/0.4537, allocations: 1.236 MB / 1.158 GB, free: 11.52 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001844/0.4556, allocations: 0.6589 MB / 1.159 GB, free: 10.85 MB / 0.92 GB Notification: Performance of pre-optimization done (n=70): time 2.415e-06/0.4556, allocations: 0 / 1.159 GB, free: 10.85 MB / 0.92 GB Notification: Performance of matching and sorting (n=70): time 0.005184/0.4608, allocations: 1.719 MB / 1.16 GB, free: 9.125 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.136e-05/0.4609, allocations: 63.97 kB / 1.16 GB, free: 9.051 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001901/0.4628, allocations: 1.325 MB / 1.162 GB, free: 7.719 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001276/0.4629, allocations: 45.7 kB / 1.162 GB, free: 7.668 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005903/0.4635, allocations: 0.67 MB / 1.162 GB, free: 6.988 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002557/0.4638, allocations: 244.5 kB / 1.162 GB, free: 6.746 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003395/0.4641, allocations: 178.4 kB / 1.163 GB, free: 6.566 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001181/0.4642, allocations: 337.9 kB / 1.163 GB, free: 6.23 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001578/0.4658, allocations: 0.5317 MB / 1.164 GB, free: 5.695 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001813/0.4676, allocations: 0.7716 MB / 1.164 GB, free: 4.84 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003098/0.4708, allocations: 1.156 MB / 1.165 GB, free: 3.637 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.439e-06/0.4708, allocations: 3.938 kB / 1.165 GB, free: 3.633 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.003922/0.4747, allocations: 1.419 MB / 1.167 GB, free: 2.203 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 4.293e-05/0.4748, allocations: 41.62 kB / 1.167 GB, free: 2.156 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.979e-06/0.4748, allocations: 4 kB / 1.167 GB, free: 2.152 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.4748, allocations: 8 kB / 1.167 GB, free: 2.145 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001265/0.4761, allocations: 251.9 kB / 1.167 GB, free: 1.898 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.871e-05/0.4761, allocations: 8 kB / 1.167 GB, free: 1.891 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001782/0.4779, allocations: 223 kB / 1.167 GB, free: 1.672 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001214/0.478, allocations: 47.86 kB / 1.167 GB, free: 1.625 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00206/0.4801, allocations: 0.7985 MB / 1.168 GB, free: 0.8203 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001733/0.4819, allocations: 0.7556 MB / 1.169 GB, free: 15.98 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003038/0.4849, allocations: 1.152 MB / 1.17 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.306e-06/0.4849, allocations: 0 / 1.17 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003928/0.4889, allocations: 1.415 MB / 1.171 GB, free: 13.35 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.179e-05/0.4889, allocations: 35.58 kB / 1.171 GB, free: 13.31 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.4889, allocations: 4.312 kB / 1.171 GB, free: 13.31 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.23e-05/0.489, allocations: 15.94 kB / 1.171 GB, free: 13.29 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.4902, allocations: 255.6 kB / 1.172 GB, free: 13.04 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.74e-05/0.4902, allocations: 8 kB / 1.172 GB, free: 13.04 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001802/0.492, allocations: 207.3 kB / 1.172 GB, free: 12.83 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.4922, allocations: 39.98 kB / 1.172 GB, free: 12.79 MB / 0.9356 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.0003133/0.4925, allocations: 232.1 kB / 1.172 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004495/0.4929, allocations: 158 kB / 1.172 GB, free: 12.4 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004022/0.497, allocations: 1.474 MB / 1.174 GB, free: 10.91 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.702e-05/0.497, allocations: 15.98 kB / 1.174 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.497, allocations: 0 / 1.174 GB, free: 10.89 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003195/0.5002, allocations: 1.238 MB / 1.175 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006851/0.5071, allocations: 3.226 MB / 1.178 GB, free: 6.238 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.264e-05/0.5071, allocations: 4 kB / 1.178 GB, free: 6.234 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001213/0.5083, allocations: 228.2 kB / 1.178 GB, free: 6.012 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.246e-05/0.5084, allocations: 8 kB / 1.178 GB, free: 6.004 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.525e-05/0.5084, allocations: 27.98 kB / 1.178 GB, free: 5.977 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.147e-05/0.5085, allocations: 11.98 kB / 1.178 GB, free: 5.965 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.181e-06/0.5085, allocations: 7.938 kB / 1.178 GB, free: 5.957 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005689/0.5142, allocations: 2.236 MB / 1.181 GB, free: 3.645 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000805/0.515, allocations: 354.8 kB / 1.181 GB, free: 3.277 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000374/0.5154, allocations: 23.98 kB / 1.181 GB, free: 3.254 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001625/0.517, allocations: 163.7 kB / 1.181 GB, free: 3.094 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001668/0.5172, allocations: 72.28 kB / 1.181 GB, free: 3.023 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001118/0.5173, allocations: 43.97 kB / 1.181 GB, free: 2.98 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001458/0.5188, allocations: 0.9493 MB / 1.182 GB, free: 2.035 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5188, allocations: 0 / 1.182 GB, free: 2.035 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002185/0.521, allocations: 0.8032 MB / 1.183 GB, free: 1.23 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.001113/0.5221, allocations: 0.5159 MB / 1.183 GB, free: 0.7188 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.005335/0.5275, allocations: 2.023 MB / 1.185 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/0.5275, allocations: 0 / 1.185 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001864/0.5294, allocations: 0.664 MB / 1.186 GB, free: 14 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003892/0.5333, allocations: 0.7523 MB / 1.187 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006722/0.54, allocations: 3.497 MB / 1.19 GB, free: 9.672 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008374/0.5409, allocations: 1.25 MB / 1.191 GB, free: 8.395 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005949/0.5415, allocations: 139.3 kB / 1.192 GB, free: 8.258 MB / 0.9512 GB Notification: Performance of SimCode: time 4.31e-07/0.5415, allocations: 0 / 1.192 GB, free: 8.258 MB / 0.9512 GB Notification: Performance of Templates: time 0.03805/0.5795, allocations: 27.15 MB / 1.218 GB, free: 13.32 MB / 0.9825 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/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