Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_HeatRecovery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP_h|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery") translateModel(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chi.TSet|chi.TEvaEnt|chi.TEvaLvg|chi.TConEnt|chi.TConLvg|chi.COP_h|chi.PLR1|chi.PLR2|chi.CR",fileNamePrefix="Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009343/0.0009343, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009314/0.009314, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.476/1.476, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.732/2.732, allocations: 437.8 MB / 0.7121 GB, free: 6.988 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003697/0.0003697, allocations: 12 kB / 0.8728 GB, free: 3.32 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8605/0.8609, allocations: 153.8 MB / 1.023 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery): time 0.07125/0.9322, allocations: 59.14 MB / 1.081 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02057/0.9528, allocations: 13.11 MB / 1.094 GB, free: 7.406 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00306/0.9559, allocations: 63.56 kB / 1.094 GB, free: 7.344 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.003097/0.959, allocations: 0.8138 MB / 1.094 GB, free: 6.527 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.008148/0.9672, allocations: 2.145 MB / 1.097 GB, free: 4.375 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.005549/0.9728, allocations: 1.434 MB / 1.098 GB, free: 2.953 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.009617/0.9824, allocations: 5.566 MB / 1.103 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002813/0.9853, allocations: 1.103 MB / 1.104 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004004/0.9893, allocations: 1.322 MB / 1.106 GB, free: 10.9 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00269/0.992, allocations: 1.174 MB / 1.107 GB, free: 9.723 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0005253/0.9926, allocations: 60 kB / 1.107 GB, free: 9.664 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004369/0.9969, allocations: 1.368 MB / 1.108 GB, free: 8.293 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0007496/0.9977, allocations: 342.4 kB / 1.109 GB, free: 7.957 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.002147/0.9999, allocations: 0.837 MB / 1.109 GB, free: 7.109 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.005711/1.006, allocations: 2.667 MB / 1.112 GB, free: 4.434 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 8.747e-06/1.006, allocations: 8 kB / 1.112 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.224e-06/1.006, allocations: 0 / 1.112 GB, free: 4.426 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.061e-05/1.006, allocations: 0 / 1.112 GB, free: 4.426 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 236 * Number of variables: 236 Notification: Performance of Generate backend data structure: time 0.004605/1.01, allocations: 1.894 MB / 1.114 GB, free: 2.469 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.179e-05/1.01, allocations: 12.02 kB / 1.114 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003814/1.014, allocations: 0.5878 MB / 1.114 GB, free: 1.867 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003322/1.018, allocations: 1.395 MB / 1.116 GB, free: 428 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002193/1.018, allocations: 153.4 kB / 1.116 GB, free: 264 kB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002587/1.018, allocations: 100 kB / 1.116 GB, free: 164 kB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003226/1.021, allocations: 1.366 MB / 1.117 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.729e-05/1.021, allocations: 0 / 1.117 GB, free: 14.76 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001092/1.021, allocations: 40 kB / 1.117 GB, free: 14.72 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.659e-05/1.022, allocations: 24 kB / 1.117 GB, free: 14.7 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003895/1.025, allocations: 1.405 MB / 1.119 GB, free: 13.29 MB / 0.8731 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.007987/1.033, allocations: 5.492 MB / 1.124 GB, free: 7.445 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005646/1.039, allocations: 1.493 MB / 1.126 GB, free: 5.91 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001703/1.041, allocations: 0.6192 MB / 1.126 GB, free: 5.289 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009684/1.042, allocations: 1.239 MB / 1.127 GB, free: 3.773 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001868/1.044, allocations: 0.6796 MB / 1.128 GB, free: 3.074 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=71): time 3.527e-06/1.044, allocations: 0 / 1.128 GB, free: 3.074 MB / 0.8731 GB Notification: Performance of matching and sorting (n=71): time 0.02121/1.065, allocations: 3.796 MB / 1.132 GB, free: 15.25 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/1.065, allocations: 64.06 kB / 1.132 GB, free: 15.17 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001866/1.067, allocations: 1.279 MB / 1.133 GB, free: 13.88 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0001945/1.067, allocations: 45.7 kB / 1.133 GB, free: 13.83 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005944/1.068, allocations: 0.6658 MB / 1.134 GB, free: 13.16 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002587/1.068, allocations: 236.6 kB / 1.134 GB, free: 12.92 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001218/1.068, allocations: 73.69 kB / 1.134 GB, free: 12.84 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001283/1.068, allocations: 337.9 kB / 1.134 GB, free: 12.51 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001595/1.07, allocations: 0.5485 MB / 1.135 GB, free: 11.96 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001749/1.072, allocations: 0.7763 MB / 1.136 GB, free: 11.1 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00316/1.075, allocations: 1.203 MB / 1.137 GB, free: 9.852 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/1.075, allocations: 0 / 1.137 GB, free: 9.852 MB / 0.8887 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.009804/1.085, allocations: 2.184 MB / 1.139 GB, free: 7.652 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001543/1.085, allocations: 216.2 kB / 1.139 GB, free: 7.387 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.248e-06/1.085, allocations: 0 / 1.139 GB, free: 7.387 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001656/1.086, allocations: 492.5 kB / 1.14 GB, free: 6.902 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009541/1.087, allocations: 207.7 kB / 1.14 GB, free: 6.699 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01642/1.104, allocations: 3.81 MB / 1.144 GB, free: 2.754 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002321/1.106, allocations: 242.9 kB / 1.144 GB, free: 2.516 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001597/1.106, allocations: 39.98 kB / 1.144 GB, free: 2.477 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/1.106, allocations: 4 kB / 1.144 GB, free: 2.473 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009667/1.116, allocations: 2.02 MB / 1.146 GB, free: 448 kB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/1.116, allocations: 4 kB / 1.146 GB, free: 444 kB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001613/1.118, allocations: 0.4888 MB / 1.146 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008968/1.119, allocations: 207.7 kB / 1.147 GB, free: 15.74 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01578/1.134, allocations: 3.793 MB / 1.15 GB, free: 11.81 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001966/1.136, allocations: 239.2 kB / 1.151 GB, free: 11.58 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001027/1.137, allocations: 31.98 kB / 1.151 GB, free: 11.55 MB / 0.9044 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 (fal.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 (93): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0008294/1.137, allocations: 418.7 kB / 1.151 GB, free: 11.13 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000256/1.138, allocations: 146.2 kB / 1.151 GB, free: 10.98 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009767/1.147, allocations: 2.231 MB / 1.153 GB, free: 8.727 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.97e-05/1.148, allocations: 11.94 kB / 1.153 GB, free: 8.715 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/1.148, allocations: 0 / 1.153 GB, free: 8.715 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009119/1.157, allocations: 1.996 MB / 1.155 GB, free: 6.684 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01317/1.17, allocations: 3.987 MB / 1.159 GB, free: 2.535 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.388e-05/1.17, allocations: 7.938 kB / 1.159 GB, free: 2.527 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007822/1.171, allocations: 176.3 kB / 1.159 GB, free: 2.355 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001641/1.172, allocations: 488.5 kB / 1.16 GB, free: 1.875 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001017/1.172, allocations: 31.97 kB / 1.16 GB, free: 1.844 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01589/1.188, allocations: 3.791 MB / 1.163 GB, free: 13.92 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.578e-06/1.188, allocations: 7.938 kB / 1.163 GB, free: 13.91 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01181/1.2, allocations: 3.01 MB / 1.166 GB, free: 10.82 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000982/1.201, allocations: 370.8 kB / 1.167 GB, free: 10.44 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/1.201, allocations: 23.98 kB / 1.167 GB, free: 10.41 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001486/1.203, allocations: 175.7 kB / 1.167 GB, free: 10.24 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/1.203, allocations: 76.34 kB / 1.167 GB, free: 10.17 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.248e-05/1.203, allocations: 47.97 kB / 1.167 GB, free: 10.12 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001377/1.205, allocations: 0.9051 MB / 1.168 GB, free: 9.219 MB / 0.92 GB Notification: Performance of sort global known variables: time 3.21e-07/1.205, allocations: 0 / 1.168 GB, free: 9.219 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002404/1.207, allocations: 0.8539 MB / 1.169 GB, free: 8.363 MB / 0.92 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 (70): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001088/1.208, allocations: 0.5145 MB / 1.169 GB, free: 7.855 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.008174/1.216, allocations: 2.61 MB / 1.172 GB, free: 5.195 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.471e-05/1.216, allocations: 0 / 1.172 GB, free: 5.195 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.003208/1.22, allocations: 0.9789 MB / 1.173 GB, free: 4.207 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005129/1.225, allocations: 0.7633 MB / 1.174 GB, free: 3.449 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007174/1.232, allocations: 3.478 MB / 1.177 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000865/1.233, allocations: 1.249 MB / 1.178 GB, free: 14.61 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 0.00159/1.234, allocations: 332.8 kB / 1.178 GB, free: 14.28 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003442/1.235, allocations: 127.4 kB / 1.179 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of SimCode: time 1.012e-06/1.235, allocations: 0 / 1.179 GB, free: 14.15 MB / 0.9356 GB Notification: Performance of Templates: time 0.07449/1.309, allocations: 40.69 MB / 1.218 GB, free: 5.84 MB / 0.9669 GB make -j1 -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.makefile (rm -f Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; mkfifo Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe >> ../files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.sim & ./Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches