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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001691/0.001691, allocations: 108.1 kB / 16.41 MB, free: 6.492 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.001586/0.001586, allocations: 183 kB / 17.34 MB, free: 5.762 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.405/1.405, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.956/2.956, allocations: 461.9 MB / 0.7355 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001548/0.001548, allocations: 63.91 kB / 1.055 GB, free: 7.676 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8711/0.8727, allocations: 157.4 MB / 1.208 GB, free: 13.61 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.06519/0.9379, allocations: 60.6 MB / 1.268 GB, free: 0.8125 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02242/0.9604, allocations: 13.23 MB / 1.281 GB, free: 3.547 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003379/0.9638, allocations: 71.56 kB / 1.281 GB, free: 3.477 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.003554/0.9674, allocations: 0.974 MB / 1.282 GB, free: 2.5 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.007928/0.9754, allocations: 2.327 MB / 1.284 GB, free: 168 kB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005114/0.9805, allocations: 1.584 MB / 1.285 GB, free: 14.59 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.007342/0.9879, allocations: 4.333 MB / 1.29 GB, free: 10.24 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002887/0.9908, allocations: 1.345 MB / 1.291 GB, free: 8.867 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00468/0.9955, allocations: 1.61 MB / 1.293 GB, free: 7.258 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002752/0.9983, allocations: 1.202 MB / 1.294 GB, free: 6.051 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.000633/0.999, allocations: 144 kB / 1.294 GB, free: 5.91 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004465/1.003, allocations: 1.505 MB / 1.295 GB, free: 4.402 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0009008/1.004, allocations: 430.5 kB / 1.296 GB, free: 3.98 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.00231/1.007, allocations: 0.9211 MB / 1.297 GB, free: 3.055 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.007289/1.014, allocations: 2.822 MB / 1.299 GB, free: 232 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 9.598e-06/1.014, allocations: 4 kB / 1.299 GB, free: 228 kB / 1.014 GB Notification: Performance of FrontEnd: time 4.509e-06/1.014, allocations: 7.938 kB / 1.299 GB, free: 220 kB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0001005/1.014, allocations: 3.938 kB / 1.299 GB, free: 216 kB / 1.014 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.005863/1.02, allocations: 2.213 MB / 1.302 GB, free: 13.93 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.489e-05/1.02, allocations: 12.03 kB / 1.302 GB, free: 13.92 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004057/1.024, allocations: 0.5566 MB / 1.302 GB, free: 13.36 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003738/1.028, allocations: 1.473 MB / 1.304 GB, free: 11.84 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002305/1.028, allocations: 145.4 kB / 1.304 GB, free: 11.68 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003562/1.029, allocations: 99.98 kB / 1.304 GB, free: 11.59 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003825/1.032, allocations: 1.338 MB / 1.305 GB, free: 10.21 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.476e-05/1.033, allocations: 4 kB / 1.305 GB, free: 10.21 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001605/1.033, allocations: 36 kB / 1.305 GB, free: 10.17 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.24e-05/1.033, allocations: 27.98 kB / 1.305 GB, free: 10.14 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004044/1.037, allocations: 1.347 MB / 1.306 GB, free: 8.801 MB / 1.029 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.00933/1.046, allocations: 5.478 MB / 1.312 GB, free: 2.965 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002758/1.049, allocations: 1.071 MB / 1.313 GB, free: 1.852 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001716/1.051, allocations: 0.5886 MB / 1.313 GB, free: 1.262 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001151/1.052, allocations: 1.244 MB / 1.315 GB, free: 15.74 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002016/1.054, allocations: 0.6589 MB / 1.315 GB, free: 15.07 MB / 1.045 GB Notification: Performance of pre-optimization done (n=70): time 4.218e-06/1.054, allocations: 3.938 kB / 1.315 GB, free: 15.07 MB / 1.045 GB Notification: Performance of matching and sorting (n=70): time 0.005512/1.059, allocations: 1.715 MB / 1.317 GB, free: 13.34 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.976e-05/1.06, allocations: 59.97 kB / 1.317 GB, free: 13.27 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002315/1.062, allocations: 1.336 MB / 1.318 GB, free: 11.93 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0001601/1.062, allocations: 41.7 kB / 1.318 GB, free: 11.88 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006977/1.063, allocations: 0.6778 MB / 1.319 GB, free: 11.2 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003181/1.063, allocations: 236.5 kB / 1.319 GB, free: 10.96 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003742/1.063, allocations: 186.4 kB / 1.319 GB, free: 10.77 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001363/1.064, allocations: 337.9 kB / 1.32 GB, free: 10.44 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001676/1.065, allocations: 0.5356 MB / 1.32 GB, free: 9.898 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001855/1.067, allocations: 0.7597 MB / 1.321 GB, free: 9.055 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003299/1.07, allocations: 1.156 MB / 1.322 GB, free: 7.852 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-05/1.071, allocations: 4 kB / 1.322 GB, free: 7.848 MB / 1.045 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.00433/1.075, allocations: 1.423 MB / 1.324 GB, free: 6.406 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 5.467e-05/1.075, allocations: 41.62 kB / 1.324 GB, free: 6.359 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/1.075, allocations: 4 kB / 1.324 GB, free: 6.355 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.825e-05/1.075, allocations: 4 kB / 1.324 GB, free: 6.352 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001288/1.076, allocations: 251.8 kB / 1.324 GB, free: 6.105 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.535e-05/1.076, allocations: 8 kB / 1.324 GB, free: 6.098 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001761/1.078, allocations: 191 kB / 1.324 GB, free: 5.91 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001305/1.078, allocations: 43.97 kB / 1.324 GB, free: 5.867 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002201/1.08, allocations: 0.7946 MB / 1.325 GB, free: 5.07 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001847/1.082, allocations: 0.7556 MB / 1.326 GB, free: 4.234 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003245/1.086, allocations: 1.148 MB / 1.327 GB, free: 3.039 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.829e-06/1.086, allocations: 4 kB / 1.327 GB, free: 3.035 MB / 1.045 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.00434/1.09, allocations: 1.411 MB / 1.328 GB, free: 1.609 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.624e-05/1.09, allocations: 39.41 kB / 1.328 GB, free: 1.566 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/1.09, allocations: 4 kB / 1.328 GB, free: 1.562 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/1.09, allocations: 11.88 kB / 1.328 GB, free: 1.551 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/1.091, allocations: 256 kB / 1.328 GB, free: 1.301 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.949e-05/1.091, allocations: 7.938 kB / 1.328 GB, free: 1.293 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0017/1.093, allocations: 171.4 kB / 1.329 GB, free: 1.125 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/1.093, allocations: 39.98 kB / 1.329 GB, free: 1.086 MB / 1.045 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.0003644/1.094, allocations: 232.1 kB / 1.329 GB, free: 0.8516 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005209/1.094, allocations: 154.1 kB / 1.329 GB, free: 0.6992 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004246/1.098, allocations: 1.478 MB / 1.33 GB, free: 15.2 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.924e-05/1.098, allocations: 15.98 kB / 1.33 GB, free: 15.18 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/1.098, allocations: 4 kB / 1.33 GB, free: 15.18 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003339/1.102, allocations: 1.23 MB / 1.332 GB, free: 13.92 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007636/1.109, allocations: 3.234 MB / 1.335 GB, free: 10.52 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.097e-05/1.109, allocations: 4 kB / 1.335 GB, free: 10.52 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001177/1.111, allocations: 232.2 kB / 1.335 GB, free: 10.29 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.747e-05/1.111, allocations: 8 kB / 1.335 GB, free: 10.29 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.233e-05/1.111, allocations: 27.98 kB / 1.335 GB, free: 10.26 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-05/1.111, allocations: 11.94 kB / 1.335 GB, free: 10.25 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.294e-06/1.111, allocations: 4 kB / 1.335 GB, free: 10.24 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006252/1.117, allocations: 2.24 MB / 1.337 GB, free: 7.926 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001129/1.118, allocations: 354.8 kB / 1.338 GB, free: 7.559 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004588/1.119, allocations: 27.92 kB / 1.338 GB, free: 7.531 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001638/1.12, allocations: 127.8 kB / 1.338 GB, free: 7.406 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001987/1.121, allocations: 76.34 kB / 1.338 GB, free: 7.332 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001214/1.121, allocations: 43.97 kB / 1.338 GB, free: 7.289 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.00201/1.123, allocations: 0.9571 MB / 1.339 GB, free: 6.336 MB / 1.061 GB Notification: Performance of sort global known variables: time 2.11e-07/1.123, allocations: 0 / 1.339 GB, free: 6.336 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.002865/1.126, allocations: 0.811 MB / 1.34 GB, free: 5.523 MB / 1.061 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.001349/1.127, allocations: 0.5283 MB / 1.34 GB, free: 4.996 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.005922/1.133, allocations: 2.023 MB / 1.342 GB, free: 2.957 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/1.133, allocations: 0 / 1.342 GB, free: 2.957 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.002033/1.135, allocations: 0.6679 MB / 1.343 GB, free: 2.285 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004399/1.139, allocations: 0.7608 MB / 1.343 GB, free: 1.539 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007418/1.147, allocations: 2.956 MB / 1.346 GB, free: 14.49 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001117/1.148, allocations: 1.249 MB / 1.348 GB, free: 13.21 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007163/1.149, allocations: 135.4 kB / 1.348 GB, free: 13.08 MB / 1.076 GB Notification: Performance of SimCode: time 8.92e-07/1.149, allocations: 3.938 kB / 1.348 GB, free: 13.08 MB / 1.076 GB Notification: Performance of Templates: time 0.04966/1.198, allocations: 27.41 MB / 1.374 GB, free: 1.887 MB / 1.092 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