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.006101/0.006101, allocations: 103.2 kB / 15.73 MB, free: 6.059 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.001208/0.001208, allocations: 190.5 kB / 16.67 MB, free: 5.977 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.54/1.54, allocations: 222.9 MB / 240.4 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.324/2.324, allocations: 390.2 MB / 0.6648 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001432, allocations: 63.89 kB / 0.9509 GB, free: 7.629 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8735/0.875, allocations: 140.4 MB / 1.088 GB, free: 5.527 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.07503/0.9501, allocations: 60.45 MB / 1.147 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.02562/0.9757, allocations: 13.22 MB / 1.16 GB, free: 0.6641 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00654/0.9823, allocations: 71 kB / 1.16 GB, free: 0.6367 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.004761/0.9871, allocations: 0.9882 MB / 1.161 GB, free: 36 kB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.011/0.9982, allocations: 2.424 MB / 1.163 GB, free: 14.59 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.007274/1.006, allocations: 1.567 MB / 1.165 GB, free: 13.74 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.009294/1.015, allocations: 4.302 MB / 1.169 GB, free: 11.67 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002842/1.018, allocations: 1.321 MB / 1.17 GB, free: 11.05 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005186/1.023, allocations: 1.621 MB / 1.172 GB, free: 10.29 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003152/1.026, allocations: 1.188 MB / 1.173 GB, free: 9.727 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0004441/1.027, allocations: 139.2 kB / 1.173 GB, free: 9.727 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005429/1.032, allocations: 1.478 MB / 1.175 GB, free: 9.047 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.0008413/1.033, allocations: 428.2 kB / 1.175 GB, free: 8.723 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.002216/1.035, allocations: 0.9134 MB / 1.176 GB, free: 8.109 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.006887/1.042, allocations: 2.794 MB / 1.179 GB, free: 6.27 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/1.042, allocations: 0 / 1.179 GB, free: 6.27 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.833e-06/1.042, allocations: 5.188 kB / 1.179 GB, free: 6.266 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.272e-05/1.042, allocations: 0 / 1.179 GB, free: 6.266 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.005659/1.048, allocations: 2.195 MB / 1.181 GB, free: 4.605 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/1.048, allocations: 10.31 kB / 1.181 GB, free: 4.605 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003841/1.052, allocations: 0.6124 MB / 1.181 GB, free: 4.34 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003323/1.055, allocations: 1.436 MB / 1.183 GB, free: 3.238 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001852/1.055, allocations: 144.9 kB / 1.183 GB, free: 3.137 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001891/1.055, allocations: 103.6 kB / 1.183 GB, free: 3.102 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00328/1.059, allocations: 1.321 MB / 1.184 GB, free: 2.32 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.113e-05/1.059, allocations: 1.156 kB / 1.184 GB, free: 2.32 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001008/1.059, allocations: 36.44 kB / 1.184 GB, free: 2.293 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.601e-05/1.059, allocations: 28.09 kB / 1.184 GB, free: 2.289 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004009/1.063, allocations: 1.322 MB / 1.186 GB, free: 1.684 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.009464/1.072, allocations: 5.38 MB / 1.191 GB, free: 13.12 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002808/1.075, allocations: 1.049 MB / 1.192 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00169/1.077, allocations: 0.6014 MB / 1.193 GB, free: 12.22 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00116/1.078, allocations: 1.234 MB / 1.194 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001986/1.08, allocations: 0.6626 MB / 1.194 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=69): time 6.312e-06/1.08, allocations: 0 / 1.194 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of matching and sorting (n=69): time 0.005974/1.086, allocations: 1.7 MB / 1.196 GB, free: 9.633 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.77e-05/1.086, allocations: 67.3 kB / 1.196 GB, free: 9.562 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002732/1.089, allocations: 1.336 MB / 1.197 GB, free: 8.844 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0002236/1.089, allocations: 44.52 kB / 1.197 GB, free: 8.801 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008803/1.09, allocations: 0.667 MB / 1.198 GB, free: 8.211 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003373/1.09, allocations: 238.1 kB / 1.198 GB, free: 8.004 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003923/1.091, allocations: 169.8 kB / 1.199 GB, free: 7.906 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001865/1.091, allocations: 342 kB / 1.199 GB, free: 7.574 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001675/1.093, allocations: 0.5262 MB / 1.199 GB, free: 7.332 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001921/1.095, allocations: 0.7533 MB / 1.2 GB, free: 6.832 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003313/1.098, allocations: 1.141 MB / 1.201 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.366e-06/1.098, allocations: 9.375 kB / 1.201 GB, free: 6.203 MB / 0.9356 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004504/1.103, allocations: 1.412 MB / 1.203 GB, free: 5.523 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 6.212e-05/1.103, allocations: 36.7 kB / 1.203 GB, free: 5.488 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/1.103, allocations: 3.406 kB / 1.203 GB, free: 5.488 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.393e-05/1.103, allocations: 10.75 kB / 1.203 GB, free: 5.484 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/1.104, allocations: 253.1 kB / 1.203 GB, free: 5.41 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.79e-05/1.104, allocations: 6.875 kB / 1.203 GB, free: 5.41 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001957/1.106, allocations: 186.2 kB / 1.203 GB, free: 5.309 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/1.106, allocations: 41.75 kB / 1.203 GB, free: 5.293 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002209/1.108, allocations: 0.7887 MB / 1.204 GB, free: 4.867 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001857/1.11, allocations: 0.7448 MB / 1.205 GB, free: 4.375 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003192/1.113, allocations: 1.134 MB / 1.206 GB, free: 3.762 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.36e-06/1.113, allocations: 1.062 kB / 1.206 GB, free: 3.762 MB / 0.9356 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.00435/1.118, allocations: 1.4 MB / 1.207 GB, free: 2.871 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.41e-05/1.118, allocations: 39.72 kB / 1.207 GB, free: 2.828 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.303e-06/1.118, allocations: 0 / 1.207 GB, free: 2.828 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/1.118, allocations: 8.312 kB / 1.207 GB, free: 2.82 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001223/1.119, allocations: 259.5 kB / 1.207 GB, free: 2.566 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.285e-05/1.119, allocations: 11.98 kB / 1.207 GB, free: 2.555 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001852/1.121, allocations: 171.4 kB / 1.208 GB, free: 2.387 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.313e-05/1.121, allocations: 35.97 kB / 1.208 GB, free: 2.352 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.0003504/1.121, allocations: 228.1 kB / 1.208 GB, free: 2.121 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003513/1.122, allocations: 150.1 kB / 1.208 GB, free: 1.973 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00391/1.126, allocations: 1.474 MB / 1.209 GB, free: 492 kB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.145e-05/1.126, allocations: 8 kB / 1.209 GB, free: 484 kB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/1.126, allocations: 0 / 1.209 GB, free: 484 kB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00319/1.129, allocations: 1.23 MB / 1.211 GB, free: 15.21 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007239/1.136, allocations: 3.227 MB / 1.214 GB, free: 11.82 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.598e-06/1.136, allocations: 8.062 kB / 1.214 GB, free: 11.81 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001161/1.137, allocations: 219.7 kB / 1.214 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.387e-05/1.137, allocations: 11.94 kB / 1.214 GB, free: 11.59 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.589e-05/1.138, allocations: 31.97 kB / 1.214 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.186e-06/1.138, allocations: 4 kB / 1.214 GB, free: 11.55 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.566e-06/1.138, allocations: 11.94 kB / 1.214 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00572/1.143, allocations: 2.232 MB / 1.216 GB, free: 9.23 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001056/1.144, allocations: 350.8 kB / 1.217 GB, free: 8.867 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002709/1.145, allocations: 27.94 kB / 1.217 GB, free: 8.84 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001351/1.146, allocations: 115.9 kB / 1.217 GB, free: 8.727 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/1.146, allocations: 76.3 kB / 1.217 GB, free: 8.652 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/1.146, allocations: 43.97 kB / 1.217 GB, free: 8.609 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.001489/1.148, allocations: 0.9529 MB / 1.218 GB, free: 7.66 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.5e-07/1.148, allocations: 0 / 1.218 GB, free: 7.66 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002264/1.15, allocations: 0.7954 MB / 1.218 GB, free: 6.863 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.001176/1.151, allocations: 0.5264 MB / 1.219 GB, free: 6.34 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005533/1.157, allocations: 2.007 MB / 1.221 GB, free: 4.309 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/1.157, allocations: 8.125 kB / 1.221 GB, free: 4.301 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001971/1.159, allocations: 0.6834 MB / 1.222 GB, free: 3.621 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003711/1.163, allocations: 0.7548 MB / 1.222 GB, free: 2.879 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005027/1.168, allocations: 2.72 MB / 1.225 GB, free: 72 kB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008279/1.168, allocations: 1.237 MB / 1.226 GB, free: 14.8 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001605/1.17, allocations: 379.4 kB / 1.227 GB, free: 14.43 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003753/1.17, allocations: 119.4 kB / 1.227 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of SimCode: time 1.242e-05/1.17, allocations: 0 / 1.227 GB, free: 14.31 MB / 0.9669 GB Notification: Performance of Templates: time 0.05433/1.225, allocations: 32.04 MB / 1.258 GB, free: 14.69 MB / 0.9981 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches