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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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.001331/0.001331, allocations: 106.8 kB / 15.99 MB, free: 6.348 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.001281/0.001281, allocations: 191.3 kB / 16.91 MB, free: 6.188 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.428/1.428, allocations: 222.9 MB / 240.6 MB, free: 13.74 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.804/2.804, allocations: 482.2 MB / 0.7548 GB, free: 7.363 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002559/0.002559, allocations: 67.89 kB / 0.9238 GB, free: 0.5352 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.841/0.8436, allocations: 162.2 MB / 1.082 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.07267/0.9163, allocations: 60.2 MB / 1.141 GB, free: 6.539 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.02802/0.9443, allocations: 13.16 MB / 1.154 GB, free: 12.35 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004794/0.9492, allocations: 66.22 kB / 1.154 GB, free: 12.32 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.004604/0.9538, allocations: 0.8454 MB / 1.155 GB, free: 11.64 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.01141/0.9653, allocations: 2.149 MB / 1.157 GB, free: 9.938 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.006654/0.972, allocations: 1.463 MB / 1.158 GB, free: 8.863 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.008018/0.98, allocations: 4.337 MB / 1.162 GB, free: 6.328 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002591/0.9827, allocations: 1.332 MB / 1.164 GB, free: 5.457 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005554/0.9883, allocations: 1.776 MB / 1.165 GB, free: 4.391 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002839/0.9911, allocations: 1.228 MB / 1.167 GB, free: 3.629 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0004799/0.9916, allocations: 141.5 kB / 1.167 GB, free: 3.629 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004597/0.9962, allocations: 1.519 MB / 1.168 GB, free: 2.809 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0006914/0.9969, allocations: 435.4 kB / 1.169 GB, free: 2.48 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.001966/0.9989, allocations: 0.9323 MB / 1.17 GB, free: 1.855 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.004285/1.003, allocations: 2.151 MB / 1.172 GB, free: 448 kB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/1.003, allocations: 0 / 1.172 GB, free: 448 kB / 0.8887 GB Notification: Performance of FrontEnd: time 2.194e-06/1.003, allocations: 1.094 kB / 1.172 GB, free: 448 kB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.511e-05/1.003, allocations: 4 kB / 1.172 GB, free: 444 kB / 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.005043/1.008, allocations: 2.22 MB / 1.174 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.541e-05/1.008, allocations: 9.219 kB / 1.174 GB, free: 14.76 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00451/1.013, allocations: 0.6122 MB / 1.174 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002933/1.016, allocations: 1.433 MB / 1.176 GB, free: 13.38 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/1.016, allocations: 149.7 kB / 1.176 GB, free: 13.27 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000193/1.016, allocations: 105 kB / 1.176 GB, free: 13.24 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003606/1.02, allocations: 1.374 MB / 1.177 GB, free: 12.43 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.152e-05/1.02, allocations: 9.109 kB / 1.177 GB, free: 12.42 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001252/1.02, allocations: 42.03 kB / 1.178 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.46e-05/1.02, allocations: 23.94 kB / 1.178 GB, free: 12.39 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004412/1.025, allocations: 1.443 MB / 1.179 GB, free: 11.71 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.009833/1.034, allocations: 5.59 MB / 1.184 GB, free: 5.941 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002868/1.037, allocations: 1.098 MB / 1.185 GB, free: 4.797 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001757/1.039, allocations: 0.6409 MB / 1.186 GB, free: 4.156 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001096/1.04, allocations: 1.236 MB / 1.187 GB, free: 2.645 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00202/1.042, allocations: 0.6862 MB / 1.188 GB, free: 1.949 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=70): time 4.278e-06/1.042, allocations: 4 kB / 1.188 GB, free: 1.945 MB / 0.9044 GB Notification: Performance of matching and sorting (n=70): time 0.005784/1.048, allocations: 1.777 MB / 1.19 GB, free: 156 kB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.13e-05/1.048, allocations: 67.89 kB / 1.19 GB, free: 76 kB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002011/1.05, allocations: 1.329 MB / 1.191 GB, free: 14.74 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0001592/1.05, allocations: 41.7 kB / 1.191 GB, free: 14.69 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006774/1.051, allocations: 0.6816 MB / 1.192 GB, free: 14 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.000289/1.051, allocations: 236.5 kB / 1.192 GB, free: 13.77 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003352/1.052, allocations: 178.5 kB / 1.192 GB, free: 13.58 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001532/1.052, allocations: 334 kB / 1.193 GB, free: 13.25 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001685/1.054, allocations: 0.559 MB / 1.193 GB, free: 12.69 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001967/1.056, allocations: 0.7872 MB / 1.194 GB, free: 11.82 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003401/1.059, allocations: 1.203 MB / 1.195 GB, free: 10.57 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/1.059, allocations: 4 kB / 1.195 GB, free: 10.57 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00438/1.063, allocations: 1.465 MB / 1.196 GB, free: 9.086 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 5.453e-05/1.063, allocations: 33.64 kB / 1.196 GB, free: 9.047 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.182e-05/1.063, allocations: 8.297 kB / 1.196 GB, free: 9.039 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.396e-05/1.064, allocations: 12 kB / 1.196 GB, free: 9.027 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001331/1.065, allocations: 263.6 kB / 1.197 GB, free: 8.77 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.76e-05/1.065, allocations: 8 kB / 1.197 GB, free: 8.762 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002082/1.067, allocations: 234.9 kB / 1.197 GB, free: 8.531 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001141/1.067, allocations: 43.97 kB / 1.197 GB, free: 8.488 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002284/1.069, allocations: 0.8239 MB / 1.198 GB, free: 7.664 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001909/1.071, allocations: 0.7829 MB / 1.199 GB, free: 6.793 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003317/1.075, allocations: 1.191 MB / 1.2 GB, free: 5.555 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.268e-06/1.075, allocations: 4 kB / 1.2 GB, free: 5.551 MB / 0.92 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004355/1.079, allocations: 1.465 MB / 1.201 GB, free: 4.07 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 5.577e-05/1.079, allocations: 33.7 kB / 1.201 GB, free: 4.031 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/1.079, allocations: 4 kB / 1.201 GB, free: 4.027 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/1.079, allocations: 7.938 kB / 1.201 GB, free: 4.02 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001354/1.081, allocations: 267.9 kB / 1.201 GB, free: 3.758 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.236e-05/1.081, allocations: 8 kB / 1.201 GB, free: 3.75 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002235/1.083, allocations: 227.2 kB / 1.202 GB, free: 3.527 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001114/1.083, allocations: 31.98 kB / 1.202 GB, free: 3.496 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,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.0003945/1.083, allocations: 240 kB / 1.202 GB, free: 3.254 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004068/1.084, allocations: 150.2 kB / 1.202 GB, free: 3.105 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004345/1.088, allocations: 1.532 MB / 1.204 GB, free: 1.555 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.936e-05/1.088, allocations: 4 kB / 1.204 GB, free: 1.551 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.818e-06/1.088, allocations: 4 kB / 1.204 GB, free: 1.547 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003467/1.092, allocations: 1.288 MB / 1.205 GB, free: 236 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007952/1.1, allocations: 3.285 MB / 1.208 GB, free: 12.8 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.322e-05/1.1, allocations: 7.938 kB / 1.208 GB, free: 12.79 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001258/1.101, allocations: 231.9 kB / 1.208 GB, free: 12.56 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.492e-05/1.101, allocations: 8 kB / 1.208 GB, free: 12.55 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.161e-05/1.101, allocations: 31.97 kB / 1.208 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.578e-06/1.101, allocations: 8 kB / 1.208 GB, free: 12.52 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.787e-06/1.101, allocations: 11.92 kB / 1.208 GB, free: 12.5 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006218/1.107, allocations: 2.314 MB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009593/1.108, allocations: 362.8 kB / 1.211 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002696/1.109, allocations: 20 kB / 1.211 GB, free: 9.719 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001557/1.11, allocations: 171.7 kB / 1.211 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001734/1.11, allocations: 76.34 kB / 1.211 GB, free: 9.477 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/1.11, allocations: 35.97 kB / 1.211 GB, free: 9.441 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001498/1.112, allocations: 0.9454 MB / 1.212 GB, free: 8.5 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.9e-07/1.112, allocations: 0 / 1.212 GB, free: 8.5 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002407/1.114, allocations: 0.8033 MB / 1.213 GB, free: 7.695 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.001411/1.116, allocations: 0.5265 MB / 1.213 GB, free: 7.176 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.006512/1.122, allocations: 2.156 MB / 1.216 GB, free: 4.988 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 9.077e-06/1.122, allocations: 0 / 1.216 GB, free: 4.988 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.002128/1.124, allocations: 0.6951 MB / 1.216 GB, free: 4.297 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004075/1.129, allocations: 0.7558 MB / 1.217 GB, free: 3.555 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007649/1.136, allocations: 3.522 MB / 1.22 GB, free: 15.94 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009978/1.137, allocations: 1.245 MB / 1.222 GB, free: 14.66 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007155/1.138, allocations: 147.4 kB / 1.222 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of SimCode: time 1.102e-06/1.138, allocations: 0 / 1.222 GB, free: 14.52 MB / 0.9512 GB Notification: Performance of Templates: time 0.04625/1.184, allocations: 27.24 MB / 1.248 GB, free: 3.473 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/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