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.006103/0.006103, allocations: 95.86 kB / 15.73 MB, free: 6.484 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.001444/0.001444, allocations: 192 kB / 16.67 MB, free: 6.391 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.851/2.851, allocations: 472.7 MB / 0.7453 GB, free: 4.559 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 59.91 kB / 1.07 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4119/0.4133, allocations: 159.9 MB / 1.226 GB, free: 9.145 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR): time 0.8577/1.271, allocations: 60.61 MB / 1.285 GB, free: 10.8 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.02582/1.297, allocations: 13.24 MB / 1.298 GB, free: 1.309 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003853/1.301, allocations: 70.5 kB / 1.298 GB, free: 1.281 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.003491/1.304, allocations: 0.9568 MB / 1.299 GB, free: 0.7031 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.008918/1.313, allocations: 2.316 MB / 1.301 GB, free: 15.32 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.005659/1.319, allocations: 1.595 MB / 1.303 GB, free: 14.46 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.009727/1.329, allocations: 4.331 MB / 1.307 GB, free: 12.38 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004528/1.333, allocations: 1.334 MB / 1.308 GB, free: 11.77 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005633/1.339, allocations: 1.577 MB / 1.31 GB, free: 11.03 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003458/1.342, allocations: 1.205 MB / 1.311 GB, free: 10.46 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.0005029/1.343, allocations: 146.3 kB / 1.311 GB, free: 10.46 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006024/1.349, allocations: 1.505 MB / 1.312 GB, free: 9.906 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0007825/1.35, allocations: 429.3 kB / 1.313 GB, free: 9.66 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.002273/1.352, allocations: 0.9236 MB / 1.314 GB, free: 9.09 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.008351/1.36, allocations: 2.834 MB / 1.317 GB, free: 8.016 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/1.36, allocations: 0.5156 kB / 1.317 GB, free: 8.016 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.274e-06/1.36, allocations: 0 / 1.317 GB, free: 8.016 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.182e-05/1.361, allocations: 0 / 1.317 GB, free: 8.016 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.005645/1.366, allocations: 2.288 MB / 1.319 GB, free: 6.488 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/1.366, allocations: 10.03 kB / 1.319 GB, free: 6.488 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003752/1.37, allocations: 0.5668 MB / 1.319 GB, free: 6.355 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003093/1.373, allocations: 1.48 MB / 1.321 GB, free: 5.504 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002329/1.373, allocations: 147.5 kB / 1.321 GB, free: 5.402 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001981/1.374, allocations: 96.7 kB / 1.321 GB, free: 5.375 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003578/1.377, allocations: 1.34 MB / 1.322 GB, free: 4.848 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.064e-05/1.377, allocations: 1.188 kB / 1.322 GB, free: 4.848 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/1.377, allocations: 42.03 kB / 1.322 GB, free: 4.82 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.173e-05/1.377, allocations: 23.73 kB / 1.322 GB, free: 4.82 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003999/1.381, allocations: 1.347 MB / 1.324 GB, free: 4.422 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.01049/1.392, allocations: 5.502 MB / 1.329 GB, free: 0.6641 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003011/1.395, allocations: 1.059 MB / 1.33 GB, free: 184 kB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001852/1.397, allocations: 0.6013 MB / 1.331 GB, free: 15.99 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001172/1.398, allocations: 1.235 MB / 1.332 GB, free: 14.57 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001981/1.4, allocations: 0.6632 MB / 1.333 GB, free: 14.36 MB / 1.045 GB Notification: Performance of pre-optimization done (n=70): time 2.926e-06/1.4, allocations: 0 / 1.333 GB, free: 14.36 MB / 1.045 GB Notification: Performance of matching and sorting (n=70): time 0.005842/1.406, allocations: 1.724 MB / 1.334 GB, free: 13.85 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.409e-05/1.406, allocations: 62.97 kB / 1.334 GB, free: 13.78 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002373/1.408, allocations: 1.342 MB / 1.336 GB, free: 13.27 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0001592/1.408, allocations: 45.59 kB / 1.336 GB, free: 13.23 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008034/1.409, allocations: 0.6888 MB / 1.336 GB, free: 12.68 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003159/1.41, allocations: 250 kB / 1.337 GB, free: 12.48 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003412/1.41, allocations: 178.8 kB / 1.337 GB, free: 12.4 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001757/1.41, allocations: 333.3 kB / 1.337 GB, free: 12.09 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001626/1.412, allocations: 0.5363 MB / 1.338 GB, free: 11.93 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001821/1.414, allocations: 0.7596 MB / 1.338 GB, free: 11.54 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003474/1.417, allocations: 1.156 MB / 1.339 GB, free: 11.06 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.881e-06/1.417, allocations: 1.156 kB / 1.339 GB, free: 11.06 MB / 1.045 GB Notification: Performance of matching and sorting (n=98) (initialization): time 0.004457/1.422, allocations: 1.432 MB / 1.341 GB, free: 10.56 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.67e-05/1.422, allocations: 32.77 kB / 1.341 GB, free: 10.53 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.354e-05/1.422, allocations: 6.781 kB / 1.341 GB, free: 10.52 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.495e-05/1.422, allocations: 11.72 kB / 1.341 GB, free: 10.52 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/1.423, allocations: 254.2 kB / 1.341 GB, free: 10.5 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.888e-05/1.423, allocations: 11.41 kB / 1.341 GB, free: 10.5 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001849/1.425, allocations: 187.3 kB / 1.341 GB, free: 10.43 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001021/1.425, allocations: 36.11 kB / 1.341 GB, free: 10.42 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002317/1.427, allocations: 0.8017 MB / 1.342 GB, free: 9.984 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001861/1.429, allocations: 0.7579 MB / 1.343 GB, free: 9.484 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003278/1.432, allocations: 1.149 MB / 1.344 GB, free: 8.855 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.787e-06/1.432, allocations: 1.281 kB / 1.344 GB, free: 8.855 MB / 1.045 GB Notification: Performance of matching and sorting (n=98) (initialization_lambda0): time 0.004353/1.437, allocations: 1.417 MB / 1.345 GB, free: 8.172 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 5.136e-05/1.437, allocations: 37.05 kB / 1.345 GB, free: 8.137 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.878e-06/1.437, allocations: 2.594 kB / 1.345 GB, free: 8.137 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/1.437, allocations: 14.91 kB / 1.345 GB, free: 8.129 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001245/1.438, allocations: 254.8 kB / 1.346 GB, free: 8.055 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.387e-05/1.438, allocations: 6.688 kB / 1.346 GB, free: 8.055 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00187/1.44, allocations: 176.3 kB / 1.346 GB, free: 7.965 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/1.44, allocations: 46 kB / 1.346 GB, free: 7.945 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.0004296/1.441, allocations: 226.8 kB / 1.346 GB, free: 7.73 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000429/1.441, allocations: 164.4 kB / 1.346 GB, free: 7.641 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004454/1.445, allocations: 1.473 MB / 1.348 GB, free: 6.863 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.44e-05/1.446, allocations: 12.28 kB / 1.348 GB, free: 6.859 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/1.446, allocations: 4.766 kB / 1.348 GB, free: 6.855 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00331/1.449, allocations: 1.24 MB / 1.349 GB, free: 6.203 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008452/1.457, allocations: 3.246 MB / 1.352 GB, free: 3.977 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.278e-05/1.457, allocations: 3.656 kB / 1.352 GB, free: 3.977 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001176/1.459, allocations: 219.5 kB / 1.352 GB, free: 3.91 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-05/1.459, allocations: 12.12 kB / 1.352 GB, free: 3.906 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.773e-05/1.459, allocations: 31.38 kB / 1.352 GB, free: 3.887 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.696e-05/1.459, allocations: 15.19 kB / 1.352 GB, free: 3.879 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.334e-06/1.459, allocations: 5.219 kB / 1.352 GB, free: 3.879 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005959/1.465, allocations: 2.246 MB / 1.355 GB, free: 2.625 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001045/1.466, allocations: 367 kB / 1.355 GB, free: 2.312 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000559/1.466, allocations: 17.16 kB / 1.355 GB, free: 2.305 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001765/1.468, allocations: 129.7 kB / 1.355 GB, free: 2.246 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000176/1.468, allocations: 69.64 kB / 1.355 GB, free: 2.207 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001236/1.468, allocations: 38.28 kB / 1.355 GB, free: 2.195 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.002168/1.471, allocations: 0.965 MB / 1.356 GB, free: 1.672 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.91e-07/1.471, allocations: 0 / 1.356 GB, free: 1.672 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.003741/1.474, allocations: 0.8175 MB / 1.357 GB, free: 1.492 MB / 1.045 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.001765/1.476, allocations: 0.5372 MB / 1.357 GB, free: 1.191 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.006101/1.482, allocations: 2.028 MB / 1.359 GB, free: 248 kB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/1.482, allocations: 1.375 kB / 1.359 GB, free: 248 kB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.002167/1.484, allocations: 0.6888 MB / 1.36 GB, free: 15.94 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004939/1.489, allocations: 0.7439 MB / 1.361 GB, free: 15.54 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007628/1.497, allocations: 2.965 MB / 1.364 GB, free: 13.75 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001248/1.498, allocations: 1.257 MB / 1.365 GB, free: 12.79 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.001942/1.5, allocations: 375.8 kB / 1.365 GB, free: 12.6 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005164/1.501, allocations: 126.4 kB / 1.365 GB, free: 12.57 MB / 1.061 GB Notification: Performance of SimCode: time 9.82e-07/1.501, allocations: 0 / 1.365 GB, free: 12.57 MB / 1.061 GB Notification: Performance of Templates: time 0.05346/1.554, allocations: 32.14 MB / 1.397 GB, free: 14.23 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricReformulatedEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches