Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.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.ElectricEIR,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.ElectricEIR") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR,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.ElectricEIR") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008771/0.008771, allocations: 99.64 kB / 15.73 MB, free: 6.023 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.001735/0.001735, allocations: 187.1 kB / 16.67 MB, free: 5.957 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.438/1.438, allocations: 222.9 MB / 240.4 MB, free: 4.188 MB / 190.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.495/2.495, allocations: 390.2 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001253/0.001253, allocations: 62.22 kB / 0.9509 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3308/0.332, allocations: 140.4 MB / 1.088 GB, free: 1.504 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR): time 0.06039/0.3925, allocations: 60.46 MB / 1.147 GB, free: 4.82 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.01698/0.4095, allocations: 13.17 MB / 1.16 GB, free: 7.617 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002532/0.412, allocations: 71.56 kB / 1.16 GB, free: 7.547 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.00253/0.4146, allocations: 0.9625 MB / 1.161 GB, free: 6.578 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.006113/0.4208, allocations: 2.316 MB / 1.163 GB, free: 4.254 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.00411/0.4249, allocations: 1.541 MB / 1.165 GB, free: 2.723 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.005544/0.4304, allocations: 4.286 MB / 1.169 GB, free: 14.43 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002333/0.4328, allocations: 1.333 MB / 1.17 GB, free: 13.06 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004878/0.4377, allocations: 1.61 MB / 1.172 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002325/0.44, allocations: 1.19 MB / 1.173 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0002753/0.4403, allocations: 144 kB / 1.173 GB, free: 10.12 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003732/0.444, allocations: 1.447 MB / 1.174 GB, free: 8.668 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0004729/0.4445, allocations: 406.5 kB / 1.175 GB, free: 8.27 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.001269/0.4458, allocations: 0.9134 MB / 1.176 GB, free: 7.352 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.005352/0.4512, allocations: 2.742 MB / 1.178 GB, free: 4.602 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.4512, allocations: 3.984 kB / 1.178 GB, free: 4.598 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.443e-06/0.4512, allocations: 0 / 1.178 GB, free: 4.598 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 3.555e-05/0.4513, allocations: 0 / 1.178 GB, free: 4.598 MB / 0.9356 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.005838/0.4571, allocations: 2.17 MB / 1.18 GB, free: 2.359 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.52e-05/0.4572, allocations: 12.03 kB / 1.18 GB, free: 2.348 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005239/0.4624, allocations: 0.5995 MB / 1.181 GB, free: 1.746 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003667/0.4661, allocations: 1.427 MB / 1.182 GB, free: 272 kB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000216/0.4663, allocations: 145.4 kB / 1.183 GB, free: 116 kB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002415/0.4666, allocations: 100 kB / 1.183 GB, free: 16 kB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004237/0.4708, allocations: 1.299 MB / 1.184 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.744e-05/0.4709, allocations: 4 kB / 1.184 GB, free: 14.68 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001561/0.4711, allocations: 47.88 kB / 1.184 GB, free: 14.63 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-05/0.4711, allocations: 31.98 kB / 1.184 GB, free: 14.6 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005124/0.4763, allocations: 1.308 MB / 1.185 GB, free: 13.29 MB / 0.9512 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.01048/0.4868, allocations: 5.35 MB / 1.191 GB, free: 7.582 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007717/0.4945, allocations: 1.411 MB / 1.192 GB, free: 6.129 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002194/0.4967, allocations: 0.5919 MB / 1.193 GB, free: 5.531 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001282/0.498, allocations: 1.239 MB / 1.194 GB, free: 4.016 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002542/0.5006, allocations: 0.651 MB / 1.194 GB, free: 3.352 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=69): time 3.827e-06/0.5006, allocations: 0 / 1.194 GB, free: 3.352 MB / 0.9512 GB Notification: Performance of matching and sorting (n=69): time 0.007152/0.5078, allocations: 1.68 MB / 1.196 GB, free: 1.664 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.129e-05/0.5079, allocations: 63.95 kB / 1.196 GB, free: 1.59 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002475/0.5103, allocations: 1.279 MB / 1.197 GB, free: 308 kB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001551/0.5105, allocations: 45.7 kB / 1.197 GB, free: 256 kB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008437/0.5114, allocations: 0.6502 MB / 1.198 GB, free: 15.59 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003254/0.5117, allocations: 240.6 kB / 1.198 GB, free: 15.36 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003781/0.5121, allocations: 170.5 kB / 1.198 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001421/0.5122, allocations: 333.9 kB / 1.199 GB, free: 14.85 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001635/0.5139, allocations: 0.5278 MB / 1.199 GB, free: 14.32 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001893/0.5158, allocations: 0.743 MB / 1.2 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003349/0.5192, allocations: 1.12 MB / 1.201 GB, free: 12.33 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.354e-06/0.5192, allocations: 4 kB / 1.201 GB, free: 12.32 MB / 0.9669 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.004185/0.5234, allocations: 1.395 MB / 1.202 GB, free: 10.92 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.725e-05/0.5234, allocations: 42.02 kB / 1.202 GB, free: 10.87 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.5235, allocations: 3.984 kB / 1.202 GB, free: 10.87 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.236e-05/0.5235, allocations: 11.94 kB / 1.202 GB, free: 10.86 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001272/0.5248, allocations: 243.7 kB / 1.203 GB, free: 10.62 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.341e-05/0.5248, allocations: 11.94 kB / 1.203 GB, free: 10.61 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001747/0.5266, allocations: 187.1 kB / 1.203 GB, free: 10.42 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/0.5267, allocations: 39.98 kB / 1.203 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002112/0.5288, allocations: 0.779 MB / 1.204 GB, free: 9.598 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001762/0.5306, allocations: 0.737 MB / 1.204 GB, free: 8.781 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003045/0.5337, allocations: 1.128 MB / 1.205 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.567e-06/0.5337, allocations: 0 / 1.205 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of matching and sorting (n=96) (initialization_lambda0): time 0.003894/0.5376, allocations: 1.384 MB / 1.207 GB, free: 6.215 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 3.597e-05/0.5376, allocations: 35.88 kB / 1.207 GB, free: 6.176 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.5376, allocations: 4 kB / 1.207 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.093e-05/0.5377, allocations: 8 kB / 1.207 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001208/0.5389, allocations: 251.6 kB / 1.207 GB, free: 5.918 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.903e-05/0.5389, allocations: 7.938 kB / 1.207 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/0.5405, allocations: 183.2 kB / 1.207 GB, free: 5.73 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.164e-05/0.5406, allocations: 35.97 kB / 1.207 GB, free: 5.695 MB / 0.9669 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.0003295/0.541, allocations: 232 kB / 1.208 GB, free: 5.461 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004564/0.5414, allocations: 142.2 kB / 1.208 GB, free: 5.32 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003963/0.5454, allocations: 1.458 MB / 1.209 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-05/0.5454, allocations: 11.98 kB / 1.209 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.5454, allocations: 0 / 1.209 GB, free: 3.828 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003151/0.5486, allocations: 1.226 MB / 1.21 GB, free: 2.57 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006877/0.5555, allocations: 3.175 MB / 1.213 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.418e-06/0.5555, allocations: 4 kB / 1.213 GB, free: 15.23 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001097/0.5566, allocations: 216 kB / 1.214 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.652e-05/0.5566, allocations: 11.94 kB / 1.214 GB, free: 15.01 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.566e-05/0.5567, allocations: 27.98 kB / 1.214 GB, free: 14.98 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.156e-05/0.5568, allocations: 11.94 kB / 1.214 GB, free: 14.97 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/0.5568, allocations: 4 kB / 1.214 GB, free: 14.96 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007468/0.5642, allocations: 2.208 MB / 1.216 GB, free: 12.68 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001329/0.5656, allocations: 339 kB / 1.216 GB, free: 12.33 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006422/0.5663, allocations: 35.86 kB / 1.216 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002301/0.5686, allocations: 123.8 kB / 1.216 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000283/0.5689, allocations: 76.34 kB / 1.216 GB, free: 12.1 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001618/0.5691, allocations: 39.97 kB / 1.216 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.002922/0.572, allocations: 0.9242 MB / 1.217 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of sort global known variables: time 2.3e-07/0.572, allocations: 0 / 1.217 GB, free: 11.14 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.004343/0.5764, allocations: 0.7877 MB / 1.218 GB, free: 10.35 MB / 0.9825 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.001915/0.5783, allocations: 0.5058 MB / 1.219 GB, free: 9.84 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.008076/0.5864, allocations: 1.988 MB / 1.221 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 9.027e-06/0.5864, allocations: 0 / 1.221 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.002749/0.5892, allocations: 0.6834 MB / 1.221 GB, free: 7.152 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005937/0.5952, allocations: 0.7549 MB / 1.222 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007554/0.6027, allocations: 2.649 MB / 1.225 GB, free: 3.672 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001317/0.6041, allocations: 1.23 MB / 1.226 GB, free: 2.414 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.002451/0.6066, allocations: 371.3 kB / 1.226 GB, free: 2.047 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000655/0.6072, allocations: 123.4 kB / 1.226 GB, free: 1.926 MB / 0.9825 GB Notification: Performance of SimCode: time 1.182e-06/0.6073, allocations: 3.938 kB / 1.226 GB, free: 1.922 MB / 0.9825 GB Notification: Performance of Templates: time 0.08661/0.6939, allocations: 32.27 MB / 1.258 GB, free: 2.031 MB / 1.014 GB make -j1 -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.makefile (rm -f Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; mkfifo Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe >> ../files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.sim & ./Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Chillers_Examples_ElectricEIR.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Chillers.Examples.ElectricEIR.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches