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.001377/0.001377, allocations: 108.3 kB / 16.42 MB, free: 6.512 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.001346/0.001346, allocations: 190.7 kB / 17.35 MB, free: 5.738 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.489/1.489, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.703/2.703, allocations: 469.4 MB / 0.7428 GB, free: 3.574 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001541/0.001541, allocations: 63.91 kB / 1.066 GB, free: 13.77 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8981/0.8997, allocations: 159.1 MB / 1.221 GB, free: 2.336 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.06119/0.9609, allocations: 60.61 MB / 1.28 GB, free: 5.512 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0212/0.9821, allocations: 13.24 MB / 1.293 GB, free: 8.242 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003129/0.9853, allocations: 75.56 kB / 1.293 GB, free: 8.168 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.002894/0.9882, allocations: 0.9897 MB / 1.294 GB, free: 7.176 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.006587/0.9949, allocations: 2.433 MB / 1.296 GB, free: 4.734 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.004442/0.9994, allocations: 1.593 MB / 1.298 GB, free: 3.152 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.00617/1.006, allocations: 4.341 MB / 1.302 GB, free: 14.8 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002296/1.008, allocations: 1.342 MB / 1.304 GB, free: 13.43 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003609/1.011, allocations: 1.611 MB / 1.305 GB, free: 11.82 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002031/1.014, allocations: 1.202 MB / 1.306 GB, free: 10.61 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0004249/1.014, allocations: 140 kB / 1.306 GB, free: 10.47 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003415/1.017, allocations: 1.505 MB / 1.308 GB, free: 8.965 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0005632/1.018, allocations: 438.3 kB / 1.308 GB, free: 8.535 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.001486/1.019, allocations: 0.9212 MB / 1.309 GB, free: 7.609 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.004668/1.024, allocations: 2.833 MB / 1.312 GB, free: 4.77 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/1.024, allocations: 0 / 1.312 GB, free: 4.77 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.182e-06/1.024, allocations: 0 / 1.312 GB, free: 4.77 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.884e-05/1.024, allocations: 0 / 1.312 GB, free: 4.77 MB / 1.029 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.004446/1.029, allocations: 2.217 MB / 1.314 GB, free: 2.484 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/1.029, allocations: 8.625 kB / 1.314 GB, free: 2.477 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00377/1.033, allocations: 0.5604 MB / 1.315 GB, free: 1.914 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002774/1.035, allocations: 1.469 MB / 1.316 GB, free: 404 kB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001685/1.035, allocations: 149.4 kB / 1.316 GB, free: 240 kB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002034/1.036, allocations: 100 kB / 1.316 GB, free: 140 kB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003707/1.039, allocations: 1.33 MB / 1.318 GB, free: 14.77 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.764e-05/1.039, allocations: 4 kB / 1.318 GB, free: 14.77 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001255/1.04, allocations: 39.94 kB / 1.318 GB, free: 14.73 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.739e-05/1.04, allocations: 24 kB / 1.318 GB, free: 14.71 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003831/1.043, allocations: 1.35 MB / 1.319 GB, free: 13.36 MB / 1.045 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.00841/1.052, allocations: 5.482 MB / 1.324 GB, free: 7.52 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002665/1.055, allocations: 1.069 MB / 1.325 GB, free: 6.406 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001695/1.056, allocations: 0.5997 MB / 1.326 GB, free: 5.801 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009615/1.057, allocations: 1.232 MB / 1.327 GB, free: 4.293 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001866/1.059, allocations: 0.6704 MB / 1.328 GB, free: 3.613 MB / 1.045 GB Notification: Performance of pre-optimization done (n=70): time 3.407e-06/1.059, allocations: 0 / 1.328 GB, free: 3.613 MB / 1.045 GB Notification: Performance of matching and sorting (n=70): time 0.005669/1.065, allocations: 1.707 MB / 1.33 GB, free: 1.898 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.765e-05/1.065, allocations: 59.97 kB / 1.33 GB, free: 1.828 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002302/1.067, allocations: 1.34 MB / 1.331 GB, free: 492 kB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0001366/1.067, allocations: 49.7 kB / 1.331 GB, free: 436 kB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006806/1.068, allocations: 0.674 MB / 1.332 GB, free: 15.74 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003165/1.068, allocations: 244.4 kB / 1.332 GB, free: 15.5 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000379/1.069, allocations: 174.5 kB / 1.332 GB, free: 15.32 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001383/1.069, allocations: 337.9 kB / 1.332 GB, free: 14.99 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001655/1.071, allocations: 0.5356 MB / 1.333 GB, free: 14.45 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001876/1.073, allocations: 0.7597 MB / 1.334 GB, free: 13.61 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003264/1.076, allocations: 1.156 MB / 1.335 GB, free: 12.4 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/1.076, allocations: 0 / 1.335 GB, free: 12.4 MB / 1.061 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004176/1.08, allocations: 1.43 MB / 1.336 GB, free: 10.96 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 4.521e-05/1.08, allocations: 33.7 kB / 1.336 GB, free: 10.92 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.389e-05/1.08, allocations: 7.938 kB / 1.336 GB, free: 10.91 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.278e-05/1.08, allocations: 8 kB / 1.336 GB, free: 10.9 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00137/1.081, allocations: 259.9 kB / 1.336 GB, free: 10.65 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.204e-05/1.082, allocations: 8 kB / 1.336 GB, free: 10.64 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001571/1.083, allocations: 179.1 kB / 1.337 GB, free: 10.46 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.642e-05/1.083, allocations: 43.98 kB / 1.337 GB, free: 10.42 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002066/1.085, allocations: 0.7985 MB / 1.337 GB, free: 9.621 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001798/1.087, allocations: 0.7517 MB / 1.338 GB, free: 8.789 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00313/1.09, allocations: 1.148 MB / 1.339 GB, free: 7.594 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.467e-06/1.09, allocations: 0 / 1.339 GB, free: 7.594 MB / 1.061 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.003895/1.094, allocations: 1.415 MB / 1.341 GB, free: 6.164 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.898e-05/1.094, allocations: 35.73 kB / 1.341 GB, free: 6.125 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/1.094, allocations: 12.3 kB / 1.341 GB, free: 6.113 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/1.094, allocations: 11.94 kB / 1.341 GB, free: 6.102 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001228/1.095, allocations: 247.7 kB / 1.341 GB, free: 5.859 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.964e-05/1.096, allocations: 11.94 kB / 1.341 GB, free: 5.848 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001598/1.097, allocations: 175.4 kB / 1.341 GB, free: 5.676 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/1.097, allocations: 39.97 kB / 1.341 GB, free: 5.637 MB / 1.061 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.0003121/1.098, allocations: 242 kB / 1.341 GB, free: 5.395 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004112/1.098, allocations: 146.2 kB / 1.342 GB, free: 5.25 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004035/1.102, allocations: 1.485 MB / 1.343 GB, free: 3.742 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003299/1.105, allocations: 1.234 MB / 1.344 GB, free: 2.477 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.726e-06/1.105, allocations: 0 / 1.344 GB, free: 2.477 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00104/1.106, allocations: 342.8 kB / 1.345 GB, free: 2.121 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003848/1.107, allocations: 16 kB / 1.345 GB, free: 2.105 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/1.108, allocations: 119.9 kB / 1.345 GB, free: 1.988 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/1.108, allocations: 52.58 kB / 1.345 GB, free: 1.938 MB / 1.061 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.004381/1.113, allocations: 1.422 MB / 1.346 GB, free: 0.5078 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005673/1.118, allocations: 2.221 MB / 1.348 GB, free: 14.26 MB / 1.076 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001663/1.12, allocations: 0.618 MB / 1.349 GB, free: 13.64 MB / 1.076 GB Notification: Performance of sorting global known variables: time 0.001852/1.122, allocations: 0.9287 MB / 1.35 GB, free: 12.72 MB / 1.076 GB Notification: Performance of Backend: time 4.91e-07/1.122, allocations: 0 / 1.35 GB, free: 12.72 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.006931/1.129, allocations: 2.07 MB / 1.352 GB, free: 10.64 MB / 1.076 GB Notification: Performance of SimCode: time 0.008445/1.137, allocations: 3.25 MB / 1.355 GB, free: 7.34 MB / 1.076 GB Notification: Performance of Templates: time 0.06182/1.199, allocations: 37.54 MB / 1.392 GB, free: 2.145 MB / 1.107 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