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.009895/0.009895, allocations: 97.47 kB / 15.73 MB, free: 6.008 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.002012/0.002012, allocations: 195.1 kB / 16.68 MB, free: 5.934 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.442/1.442, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.438/2.438, allocations: 390.2 MB / 0.6648 GB, free: 0.5898 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001478/0.001478, allocations: 67.89 kB / 0.9509 GB, free: 7.582 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9725/0.974, allocations: 140.4 MB / 1.088 GB, free: 5.75 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.06988/1.044, allocations: 60.44 MB / 1.147 GB, free: 10.38 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.02461/1.069, allocations: 13.22 MB / 1.16 GB, free: 0.8789 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004616/1.073, allocations: 71.16 kB / 1.16 GB, free: 0.8516 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.003783/1.077, allocations: 0.9805 MB / 1.161 GB, free: 260 kB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.008518/1.086, allocations: 2.423 MB / 1.163 GB, free: 14.81 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.004881/1.091, allocations: 1.573 MB / 1.165 GB, free: 13.95 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.007518/1.098, allocations: 4.291 MB / 1.169 GB, free: 11.89 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002492/1.101, allocations: 1.326 MB / 1.17 GB, free: 11.27 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00443/1.105, allocations: 1.62 MB / 1.172 GB, free: 10.51 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002733/1.108, allocations: 1.184 MB / 1.173 GB, free: 9.953 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.0004249/1.108, allocations: 138.8 kB / 1.173 GB, free: 9.953 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00478/1.113, allocations: 1.475 MB / 1.175 GB, free: 9.238 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 0.000594/1.114, allocations: 436.7 kB / 1.175 GB, free: 8.906 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 0.001473/1.115, allocations: 0.9062 MB / 1.176 GB, free: 8.301 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.006225/1.121, allocations: 2.808 MB / 1.179 GB, free: 6.441 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/1.121, allocations: 5.219 kB / 1.179 GB, free: 6.438 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.983e-06/1.121, allocations: 0 / 1.179 GB, free: 6.438 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.343e-05/1.121, allocations: 0 / 1.179 GB, free: 6.438 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.005413/1.127, allocations: 2.263 MB / 1.181 GB, free: 4.707 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.227e-05/1.127, allocations: 9.219 kB / 1.181 GB, free: 4.707 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003911/1.131, allocations: 0.6214 MB / 1.181 GB, free: 4.434 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003379/1.134, allocations: 1.453 MB / 1.183 GB, free: 3.316 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001936/1.134, allocations: 148.9 kB / 1.183 GB, free: 3.211 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002249/1.135, allocations: 100.7 kB / 1.183 GB, free: 3.18 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003427/1.138, allocations: 1.318 MB / 1.184 GB, free: 2.402 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.978e-05/1.138, allocations: 0 / 1.184 GB, free: 2.402 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001128/1.138, allocations: 37.31 kB / 1.184 GB, free: 2.375 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-05/1.138, allocations: 23.34 kB / 1.184 GB, free: 2.375 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003746/1.142, allocations: 1.326 MB / 1.186 GB, free: 1.766 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.008475/1.151, allocations: 5.394 MB / 1.191 GB, free: 13.19 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002619/1.153, allocations: 1.052 MB / 1.192 GB, free: 12.57 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001667/1.155, allocations: 0.6008 MB / 1.193 GB, free: 12.29 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001013/1.156, allocations: 1.234 MB / 1.194 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001935/1.158, allocations: 0.6628 MB / 1.195 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=69): time 2.966e-06/1.158, allocations: 0 / 1.195 GB, free: 10.48 MB / 0.9356 GB Notification: Performance of matching and sorting (n=69): time 0.005433/1.163, allocations: 1.71 MB / 1.196 GB, free: 9.695 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.671e-05/1.163, allocations: 66.75 kB / 1.196 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001945/1.165, allocations: 1.337 MB / 1.198 GB, free: 8.906 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001238/1.166, allocations: 43.45 kB / 1.198 GB, free: 8.863 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006998/1.166, allocations: 0.6832 MB / 1.198 GB, free: 8.258 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003595/1.167, allocations: 244.2 kB / 1.198 GB, free: 8.047 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003827/1.167, allocations: 173.4 kB / 1.199 GB, free: 7.945 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001752/1.167, allocations: 337 kB / 1.199 GB, free: 7.617 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001787/1.169, allocations: 0.5307 MB / 1.2 GB, free: 7.371 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001941/1.171, allocations: 0.75 MB / 1.2 GB, free: 6.875 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003193/1.174, allocations: 1.145 MB / 1.201 GB, free: 6.25 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.841e-06/1.174, allocations: 1.125 kB / 1.201 GB, free: 6.25 MB / 0.9356 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004195/1.178, allocations: 1.422 MB / 1.203 GB, free: 5.562 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 4.62e-05/1.178, allocations: 32.92 kB / 1.203 GB, free: 5.531 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.193e-05/1.178, allocations: 2.375 kB / 1.203 GB, free: 5.531 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.914e-05/1.178, allocations: 10.75 kB / 1.203 GB, free: 5.527 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/1.18, allocations: 257.7 kB / 1.203 GB, free: 5.449 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.23e-05/1.18, allocations: 10.02 kB / 1.203 GB, free: 5.445 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002166/1.182, allocations: 175.2 kB / 1.203 GB, free: 5.355 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001376/1.182, allocations: 42.09 kB / 1.203 GB, free: 5.34 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002424/1.185, allocations: 0.7928 MB / 1.204 GB, free: 4.91 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001809/1.186, allocations: 0.7418 MB / 1.205 GB, free: 4.422 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003134/1.19, allocations: 1.14 MB / 1.206 GB, free: 3.805 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.15e-06/1.19, allocations: 0 / 1.206 GB, free: 3.805 MB / 0.9356 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.004038/1.194, allocations: 1.411 MB / 1.207 GB, free: 2.82 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.495e-05/1.194, allocations: 33.7 kB / 1.207 GB, free: 2.781 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/1.194, allocations: 4 kB / 1.207 GB, free: 2.777 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.688e-06/1.194, allocations: 4.312 kB / 1.207 GB, free: 2.773 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001199/1.195, allocations: 259.5 kB / 1.208 GB, free: 2.52 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.277e-05/1.195, allocations: 11.98 kB / 1.208 GB, free: 2.508 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00173/1.197, allocations: 175.4 kB / 1.208 GB, free: 2.336 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.699e-05/1.197, allocations: 43.97 kB / 1.208 GB, free: 2.293 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.0003056/1.197, allocations: 224.1 kB / 1.208 GB, free: 2.066 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005114/1.198, allocations: 155 kB / 1.208 GB, free: 1.914 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003967/1.202, allocations: 1.481 MB / 1.21 GB, free: 424 kB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.587e-05/1.202, allocations: 4 kB / 1.21 GB, free: 420 kB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.995e-06/1.202, allocations: 4 kB / 1.21 GB, free: 416 kB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003265/1.205, allocations: 1.23 MB / 1.211 GB, free: 15.14 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007529/1.212, allocations: 3.219 MB / 1.214 GB, free: 11.76 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.888e-06/1.212, allocations: 12.09 kB / 1.214 GB, free: 11.75 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001126/1.214, allocations: 211.7 kB / 1.214 GB, free: 11.54 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.73e-05/1.214, allocations: 11.94 kB / 1.214 GB, free: 11.53 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.587e-05/1.214, allocations: 27.97 kB / 1.214 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.295e-05/1.214, allocations: 11.94 kB / 1.214 GB, free: 11.49 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.751e-06/1.214, allocations: 7.938 kB / 1.214 GB, free: 11.48 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005523/1.219, allocations: 2.248 MB / 1.216 GB, free: 9.16 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008873/1.22, allocations: 355.7 kB / 1.217 GB, free: 8.793 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000446/1.221, allocations: 19.94 kB / 1.217 GB, free: 8.773 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001602/1.222, allocations: 123.9 kB / 1.217 GB, free: 8.652 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001596/1.222, allocations: 80.34 kB / 1.217 GB, free: 8.574 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.91e-05/1.222, allocations: 35.97 kB / 1.217 GB, free: 8.539 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.00166/1.224, allocations: 0.9607 MB / 1.218 GB, free: 7.582 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.3e-07/1.224, allocations: 0 / 1.218 GB, free: 7.582 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.002882/1.227, allocations: 0.8031 MB / 1.219 GB, free: 6.777 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.001463/1.229, allocations: 0.5232 MB / 1.219 GB, free: 6.254 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.005667/1.234, allocations: 2.011 MB / 1.221 GB, free: 4.219 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 8.446e-06/1.234, allocations: 4.125 kB / 1.221 GB, free: 4.215 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.001968/1.236, allocations: 0.6833 MB / 1.222 GB, free: 3.535 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004614/1.241, allocations: 0.7687 MB / 1.223 GB, free: 2.781 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006005/1.247, allocations: 2.759 MB / 1.225 GB, free: 15.93 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001186/1.248, allocations: 1.237 MB / 1.226 GB, free: 14.66 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.001826/1.25, allocations: 379.5 kB / 1.227 GB, free: 14.29 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005595/1.25, allocations: 127.4 kB / 1.227 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of SimCode: time 5.61e-07/1.25, allocations: 3.938 kB / 1.227 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of Templates: time 0.05589/1.306, allocations: 32.03 MB / 1.258 GB, free: 14.55 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