Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001584/0.001584, allocations: 105.1 kB / 16.41 MB, free: 6.41 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.001752/0.001753, allocations: 189.7 kB / 17.35 MB, free: 5.695 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.249/2.249, allocations: 390.3 MB / 0.6655 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 71.86 kB / 0.9516 GB, free: 7.648 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8882/0.8896, allocations: 140.4 MB / 1.089 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.08511/0.9747, allocations: 60.46 MB / 1.148 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.03262/1.007, allocations: 13.21 MB / 1.161 GB, free: 0.6719 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.005838/1.013, allocations: 71.56 kB / 1.161 GB, free: 0.6445 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.005048/1.018, allocations: 0.9832 MB / 1.162 GB, free: 48 kB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.01255/1.031, allocations: 2.423 MB / 1.164 GB, free: 14.6 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.008085/1.039, allocations: 1.568 MB / 1.165 GB, free: 13.75 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.01152/1.051, allocations: 4.298 MB / 1.17 GB, free: 11.68 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00421/1.055, allocations: 1.329 MB / 1.171 GB, free: 11.05 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006779/1.062, allocations: 1.623 MB / 1.173 GB, free: 10.29 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00425/1.066, allocations: 1.181 MB / 1.174 GB, free: 9.734 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0009221/1.067, allocations: 139.5 kB / 1.174 GB, free: 9.734 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007199/1.074, allocations: 1.475 MB / 1.175 GB, free: 9.078 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.001283/1.076, allocations: 429.2 kB / 1.176 GB, free: 8.754 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.003157/1.079, allocations: 0.9093 MB / 1.177 GB, free: 8.145 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.009332/1.088, allocations: 2.801 MB / 1.179 GB, free: 6.297 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 9.638e-06/1.088, allocations: 1.344 kB / 1.179 GB, free: 6.297 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.555e-06/1.088, allocations: 0 / 1.179 GB, free: 6.297 MB / 0.92 GB Notification: Performance of Transformations before backend: time 0.0001313/1.088, allocations: 0 / 1.179 GB, free: 6.297 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: 230 * Number of variables: 230 Notification: Performance of Generate backend data structure: time 0.008476/1.097, allocations: 2.191 MB / 1.181 GB, free: 4.641 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.463e-05/1.097, allocations: 9.438 kB / 1.181 GB, free: 4.641 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005384/1.102, allocations: 0.6162 MB / 1.182 GB, free: 4.371 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004818/1.107, allocations: 1.441 MB / 1.183 GB, free: 3.266 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002832/1.107, allocations: 144.3 kB / 1.184 GB, free: 3.164 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004032/1.108, allocations: 99.5 kB / 1.184 GB, free: 3.133 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005061/1.113, allocations: 1.322 MB / 1.185 GB, free: 2.352 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.397e-05/1.113, allocations: 3.938 kB / 1.185 GB, free: 2.348 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000203/1.113, allocations: 37.44 kB / 1.185 GB, free: 2.32 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.249e-05/1.113, allocations: 24.41 kB / 1.185 GB, free: 2.32 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005526/1.119, allocations: 1.329 MB / 1.186 GB, free: 1.707 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.01168/1.131, allocations: 5.38 MB / 1.192 GB, free: 13.14 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003859/1.134, allocations: 1.049 MB / 1.193 GB, free: 12.53 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002486/1.137, allocations: 0.6014 MB / 1.193 GB, free: 12.25 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00128/1.138, allocations: 1.241 MB / 1.194 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002362/1.141, allocations: 0.6546 MB / 1.195 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=69): time 3.897e-06/1.141, allocations: 0 / 1.195 GB, free: 10.43 MB / 0.9356 GB Notification: Performance of matching and sorting (n=69): time 0.005469/1.146, allocations: 1.704 MB / 1.197 GB, free: 9.652 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.612e-05/1.146, allocations: 59.47 kB / 1.197 GB, free: 9.59 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002521/1.149, allocations: 1.336 MB / 1.198 GB, free: 8.871 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.000155/1.149, allocations: 52.47 kB / 1.198 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006838/1.15, allocations: 0.6592 MB / 1.199 GB, free: 8.238 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002867/1.15, allocations: 238.8 kB / 1.199 GB, free: 8.031 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003854/1.15, allocations: 178 kB / 1.199 GB, free: 7.926 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001427/1.15, allocations: 340.7 kB / 1.2 GB, free: 7.594 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001656/1.152, allocations: 0.5261 MB / 1.2 GB, free: 7.352 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001899/1.154, allocations: 0.7501 MB / 1.201 GB, free: 6.855 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003733/1.158, allocations: 1.149 MB / 1.202 GB, free: 6.227 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.117e-05/1.158, allocations: 1 kB / 1.202 GB, free: 6.227 MB / 0.9356 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00527/1.163, allocations: 1.409 MB / 1.203 GB, free: 5.551 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 5.337e-05/1.163, allocations: 37.62 kB / 1.203 GB, free: 5.516 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/1.163, allocations: 2.281 kB / 1.203 GB, free: 5.516 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.406e-05/1.163, allocations: 15 kB / 1.203 GB, free: 5.508 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/1.165, allocations: 253.7 kB / 1.204 GB, free: 5.434 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.479e-05/1.165, allocations: 5.844 kB / 1.204 GB, free: 5.434 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001861/1.166, allocations: 183.5 kB / 1.204 GB, free: 5.336 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/1.167, allocations: 38.11 kB / 1.204 GB, free: 5.324 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002182/1.169, allocations: 0.7974 MB / 1.205 GB, free: 4.891 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001774/1.171, allocations: 0.7424 MB / 1.205 GB, free: 4.402 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00308/1.174, allocations: 1.132 MB / 1.206 GB, free: 3.793 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.48e-06/1.174, allocations: 5.406 kB / 1.206 GB, free: 3.789 MB / 0.9356 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.004003/1.178, allocations: 1.399 MB / 1.208 GB, free: 2.852 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.636e-05/1.178, allocations: 40.34 kB / 1.208 GB, free: 2.809 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.64e-06/1.178, allocations: 8 kB / 1.208 GB, free: 2.801 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.03e-05/1.178, allocations: 8 kB / 1.208 GB, free: 2.793 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001178/1.179, allocations: 251.5 kB / 1.208 GB, free: 2.547 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.942e-05/1.179, allocations: 8 kB / 1.208 GB, free: 2.539 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001778/1.181, allocations: 171.4 kB / 1.208 GB, free: 2.371 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/1.181, allocations: 39.97 kB / 1.208 GB, free: 2.332 MB / 0.9356 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 (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 (95): * Single equations (assignments): 94 * 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.0003217/1.181, allocations: 224.1 kB / 1.208 GB, free: 2.105 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005522/1.182, allocations: 154.1 kB / 1.209 GB, free: 1.953 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003986/1.186, allocations: 1.462 MB / 1.21 GB, free: 484 kB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.113e-05/1.186, allocations: 15.98 kB / 1.21 GB, free: 468 kB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/1.186, allocations: 0 / 1.21 GB, free: 468 kB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003197/1.189, allocations: 1.23 MB / 1.211 GB, free: 15.2 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007227/1.196, allocations: 3.23 MB / 1.214 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.257e-05/1.196, allocations: 4 kB / 1.214 GB, free: 11.8 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/1.197, allocations: 223.8 kB / 1.215 GB, free: 11.58 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-05/1.197, allocations: 11.94 kB / 1.215 GB, free: 11.57 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.505e-05/1.197, allocations: 23.97 kB / 1.215 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.091e-05/1.197, allocations: 11.94 kB / 1.215 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.667e-06/1.198, allocations: 15.98 kB / 1.215 GB, free: 11.52 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005534/1.203, allocations: 2.228 MB / 1.217 GB, free: 9.211 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008998/1.204, allocations: 350.8 kB / 1.217 GB, free: 8.848 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005128/1.204, allocations: 31.92 kB / 1.217 GB, free: 8.816 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001624/1.206, allocations: 123.9 kB / 1.217 GB, free: 8.695 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001764/1.206, allocations: 68.36 kB / 1.217 GB, free: 8.629 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/1.206, allocations: 39.97 kB / 1.217 GB, free: 8.59 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001658/1.208, allocations: 0.9529 MB / 1.218 GB, free: 7.641 MB / 0.9512 GB Notification: Performance of sort global known variables: time 2.21e-07/1.208, allocations: 0 / 1.218 GB, free: 7.641 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002919/1.211, allocations: 0.7993 MB / 1.219 GB, free: 6.84 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 (73): * Single equations (assignments): 65 * 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.001452/1.213, allocations: 0.5265 MB / 1.22 GB, free: 6.316 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005653/1.218, allocations: 2.011 MB / 1.222 GB, free: 4.281 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 9.288e-06/1.218, allocations: 0 / 1.222 GB, free: 4.281 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001887/1.22, allocations: 0.6717 MB / 1.222 GB, free: 3.613 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004376/1.224, allocations: 0.7596 MB / 1.223 GB, free: 2.867 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005398/1.23, allocations: 2.756 MB / 1.226 GB, free: 16 kB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/1.231, allocations: 1.237 MB / 1.227 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006991/1.232, allocations: 143.4 kB / 1.227 GB, free: 14.61 MB / 0.9669 GB Notification: Performance of SimCode: time 9.62e-07/1.232, allocations: 0 / 1.227 GB, free: 14.61 MB / 0.9669 GB Notification: Performance of Templates: time 0.04076/1.272, allocations: 27.26 MB / 1.254 GB, free: 3.57 MB / 0.9825 GB make -j1 -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.makefile (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.sim & ./Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Chillers_Examples_ElectricReformulatedEIR.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches