Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.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_latest_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_latest_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.001264/0.001264, allocations: 102.9 kB / 15.06 MB, free: 1.098 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.001521/0.001521, allocations: 173.3 kB / 15.95 MB, free: 212 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.411/1.411, allocations: 223.2 MB / 239.9 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.588/2.588, allocations: 436.5 MB / 0.7104 GB, free: 7.816 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004889/0.0004889, allocations: 12 kB / 0.8708 GB, free: 4.773 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8128/0.8133, allocations: 153.7 MB / 1.021 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery): time 0.05447/0.8678, allocations: 50.77 MB / 1.07 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.01956/0.8874, allocations: 11.37 MB / 1.081 GB, free: 2.812 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003356/0.8908, allocations: 59.56 kB / 1.082 GB, free: 2.754 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.003929/0.8948, allocations: 0.9213 MB / 1.082 GB, free: 1.828 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.009028/0.9039, allocations: 2.289 MB / 1.085 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.005932/0.9098, allocations: 1.717 MB / 1.086 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.005996/0.9158, allocations: 2.583 MB / 1.089 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002247/0.9181, allocations: 1.009 MB / 1.09 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003161/0.9213, allocations: 1.172 MB / 1.091 GB, free: 9.047 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00169/0.923, allocations: 0.801 MB / 1.092 GB, free: 8.242 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.0001817/0.9232, allocations: 60 kB / 1.092 GB, free: 8.184 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003007/0.9262, allocations: 0.9166 MB / 1.093 GB, free: 7.266 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003719/0.9266, allocations: 294.8 kB / 1.093 GB, free: 6.977 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0006277/0.9272, allocations: 356.8 kB / 1.093 GB, free: 6.621 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002796/0.93, allocations: 1.896 MB / 1.095 GB, free: 4.723 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.145e-06/0.93, allocations: 0 / 1.095 GB, free: 4.723 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.034e-06/0.93, allocations: 4 kB / 1.095 GB, free: 4.719 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 2.761e-05/0.9301, allocations: 0 / 1.095 GB, free: 4.719 MB / 0.8419 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.003814/0.9339, allocations: 1.886 MB / 1.097 GB, free: 2.766 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.9339, allocations: 8.031 kB / 1.097 GB, free: 2.758 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003468/0.9374, allocations: 0.5832 MB / 1.098 GB, free: 2.172 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002707/0.9401, allocations: 1.255 MB / 1.099 GB, free: 0.8672 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001693/0.9403, allocations: 149.4 kB / 1.099 GB, free: 0.707 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001647/0.9405, allocations: 107.9 kB / 1.099 GB, free: 0.6016 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003078/0.9436, allocations: 1.358 MB / 1.1 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.9436, allocations: 0 / 1.1 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001204/0.9438, allocations: 36 kB / 1.1 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.691e-05/0.9438, allocations: 32 kB / 1.101 GB, free: 15.14 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003689/0.9475, allocations: 1.394 MB / 1.102 GB, free: 13.75 MB / 0.8575 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.008094/0.9556, allocations: 5.489 MB / 1.107 GB, free: 7.914 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005542/0.9612, allocations: 1.522 MB / 1.109 GB, free: 6.348 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001008/0.9622, allocations: 1.235 MB / 1.11 GB, free: 4.836 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00183/0.964, allocations: 0.6834 MB / 1.111 GB, free: 4.141 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=71): time 3.947e-06/0.9641, allocations: 3.938 kB / 1.111 GB, free: 4.137 MB / 0.8575 GB Notification: Performance of matching and sorting (n=71): time 0.02093/0.985, allocations: 3.788 MB / 1.114 GB, free: 324 kB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.925e-05/0.9852, allocations: 60.06 kB / 1.114 GB, free: 252 kB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002722/0.9879, allocations: 1.275 MB / 1.116 GB, free: 14.96 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 0.000372/0.9883, allocations: 45.7 kB / 1.116 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009306/0.9892, allocations: 0.6503 MB / 1.116 GB, free: 14.25 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005325/0.9898, allocations: 256.5 kB / 1.117 GB, free: 14 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.411e-05/0.9899, allocations: 16 kB / 1.117 GB, free: 13.98 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.000221/0.9901, allocations: 334 kB / 1.117 GB, free: 13.65 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0017/0.9918, allocations: 0.5367 MB / 1.117 GB, free: 13.11 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00176/0.9936, allocations: 0.7673 MB / 1.118 GB, free: 12.26 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001584/0.9952, allocations: 0.5902 MB / 1.119 GB, free: 11.67 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.9952, allocations: 0 / 1.119 GB, free: 11.67 MB / 0.8731 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.009366/1.005, allocations: 2.169 MB / 1.121 GB, free: 9.477 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006817/1.005, allocations: 1.281 MB / 1.122 GB, free: 8.07 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/1.005, allocations: 11.95 kB / 1.122 GB, free: 8.059 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00166/1.007, allocations: 488.5 kB / 1.123 GB, free: 7.578 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/1.008, allocations: 215.7 kB / 1.123 GB, free: 7.367 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01575/1.024, allocations: 3.98 MB / 1.127 GB, free: 3.25 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002355/1.026, allocations: 239.1 kB / 1.127 GB, free: 3.016 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001628/1.026, allocations: 43.98 kB / 1.127 GB, free: 2.973 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/1.026, allocations: 0 / 1.127 GB, free: 2.973 MB / 0.8731 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009098/1.036, allocations: 2.02 MB / 1.129 GB, free: 0.9453 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/1.036, allocations: 0 / 1.129 GB, free: 0.9453 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001533/1.037, allocations: 0.489 MB / 1.129 GB, free: 464 kB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009742/1.038, allocations: 211.7 kB / 1.13 GB, free: 252 kB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01555/1.054, allocations: 3.975 MB / 1.133 GB, free: 12.14 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002099/1.056, allocations: 235.1 kB / 1.134 GB, free: 11.91 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/1.056, allocations: 35.98 kB / 1.134 GB, free: 11.88 MB / 0.8887 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,$whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,chi.on) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0009874/1.057, allocations: 416.9 kB / 1.134 GB, free: 11.46 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003252/1.057, allocations: 146.2 kB / 1.134 GB, free: 11.31 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0094/1.067, allocations: 2.223 MB / 1.136 GB, free: 9.059 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.784e-05/1.067, allocations: 8 kB / 1.136 GB, free: 9.051 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.734e-06/1.067, allocations: 7.953 kB / 1.136 GB, free: 9.043 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008768/1.076, allocations: 1.992 MB / 1.138 GB, free: 7.016 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01267/1.088, allocations: 3.968 MB / 1.142 GB, free: 2.887 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.417e-05/1.088, allocations: 4 kB / 1.142 GB, free: 2.883 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007593/1.089, allocations: 176.2 kB / 1.142 GB, free: 2.711 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00151/1.091, allocations: 496.4 kB / 1.143 GB, free: 2.223 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.572e-05/1.091, allocations: 27.98 kB / 1.143 GB, free: 2.195 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01521/1.106, allocations: 3.959 MB / 1.147 GB, free: 14.11 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/1.106, allocations: 15.94 kB / 1.147 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0112/1.117, allocations: 3.282 MB / 1.15 GB, free: 10.54 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00117/1.118, allocations: 378.8 kB / 1.15 GB, free: 10.15 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002033/1.119, allocations: 16 kB / 1.15 GB, free: 10.14 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001379/1.12, allocations: 179.8 kB / 1.151 GB, free: 9.961 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001904/1.12, allocations: 80.36 kB / 1.151 GB, free: 9.883 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.035e-05/1.12, allocations: 35.97 kB / 1.151 GB, free: 9.848 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.001317/1.122, allocations: 0.9051 MB / 1.152 GB, free: 8.945 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.5e-07/1.122, allocations: 0 / 1.152 GB, free: 8.945 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.002802/1.124, allocations: 0.8656 MB / 1.152 GB, free: 8.078 MB / 0.9044 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001298/1.126, allocations: 0.5188 MB / 1.153 GB, free: 7.566 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.007715/1.134, allocations: 2.594 MB / 1.155 GB, free: 4.926 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 9.578e-06/1.134, allocations: 0 / 1.155 GB, free: 4.926 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.003003/1.137, allocations: 0.9711 MB / 1.156 GB, free: 3.945 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003911/1.141, allocations: 0.7359 MB / 1.157 GB, free: 3.215 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00678/1.147, allocations: 3.371 MB / 1.16 GB, free: 15.76 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000995/1.148, allocations: 1.268 MB / 1.162 GB, free: 14.46 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.001639/1.15, allocations: 342.9 kB / 1.162 GB, free: 14.12 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002904/1.15, allocations: 111.4 kB / 1.162 GB, free: 14.02 MB / 0.92 GB Notification: Performance of SimCode: time 7.82e-07/1.15, allocations: 0 / 1.162 GB, free: 14.02 MB / 0.92 GB Notification: Performance of Templates: time 0.06775/1.218, allocations: 38.9 MB / 1.2 GB, free: 7.48 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.makefile (rm -f Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe >> ../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.sim & ./Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Chillers_Examples_ElectricEIR_HeatRecovery.csv","../files/Buildings_latest_Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches