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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.00114/0.00114, allocations: 99.58 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001466/0.001467, allocations: 181.5 kB / 16.92 MB, free: 6.918 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.412/1.412, allocations: 223.3 MB / 241 MB, free: 5.246 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.677/2.677, allocations: 437.8 MB / 0.7128 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004048/0.0004051, allocations: 12 kB / 0.8735 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7254/0.7259, allocations: 153.8 MB / 1.024 GB, free: 15.84 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Chillers.Examples.ElectricEIR_HeatRecovery): time 0.06932/0.7952, allocations: 59.15 MB / 1.081 GB, free: 4.496 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.02072/0.816, allocations: 13.12 MB / 1.094 GB, free: 7.348 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003215/0.8193, allocations: 63.56 kB / 1.094 GB, free: 7.285 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0031/0.8224, allocations: 0.8099 MB / 1.095 GB, free: 6.473 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.007491/0.8299, allocations: 2.139 MB / 1.097 GB, free: 4.324 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.004579/0.8345, allocations: 1.427 MB / 1.099 GB, free: 2.91 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.007834/0.8424, allocations: 5.571 MB / 1.104 GB, free: 13.32 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002561/0.845, allocations: 1.103 MB / 1.105 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003588/0.8486, allocations: 1.322 MB / 1.106 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002548/0.8512, allocations: 1.166 MB / 1.108 GB, free: 9.684 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0005143/0.8517, allocations: 64 kB / 1.108 GB, free: 9.621 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00387/0.8556, allocations: 1.368 MB / 1.109 GB, free: 8.25 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0007216/0.8563, allocations: 338.4 kB / 1.109 GB, free: 7.918 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.001947/0.8583, allocations: 0.837 MB / 1.11 GB, free: 7.07 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.003714/0.862, allocations: 2.053 MB / 1.112 GB, free: 5.012 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.551e-06/0.862, allocations: 0 / 1.112 GB, free: 5.012 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.044e-06/0.8621, allocations: 0 / 1.112 GB, free: 5.012 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 9.267e-05/0.8622, allocations: 0 / 1.112 GB, free: 5.012 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.004637/0.8668, allocations: 1.898 MB / 1.114 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.8669, allocations: 8.031 kB / 1.114 GB, free: 3.043 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004003/0.8709, allocations: 0.5839 MB / 1.115 GB, free: 2.457 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003075/0.874, allocations: 1.406 MB / 1.116 GB, free: 0.9961 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002235/0.8742, allocations: 153.4 kB / 1.116 GB, free: 0.8359 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002787/0.8745, allocations: 100 kB / 1.116 GB, free: 0.7383 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003485/0.878, allocations: 1.358 MB / 1.117 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.422e-05/0.878, allocations: 7.938 kB / 1.117 GB, free: 15.34 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001303/0.8782, allocations: 44 kB / 1.117 GB, free: 15.29 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.471e-05/0.8782, allocations: 24 kB / 1.118 GB, free: 15.27 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004068/0.8823, allocations: 1.405 MB / 1.119 GB, free: 13.87 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.008527/0.8908, allocations: 5.485 MB / 1.124 GB, free: 8.027 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005735/0.8966, allocations: 1.499 MB / 1.126 GB, free: 6.484 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001748/0.8984, allocations: 0.6208 MB / 1.126 GB, free: 5.863 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001019/0.8994, allocations: 1.232 MB / 1.128 GB, free: 4.355 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001979/0.9014, allocations: 0.6873 MB / 1.128 GB, free: 3.648 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=71): time 5.29e-06/0.9014, allocations: 3.984 kB / 1.128 GB, free: 3.645 MB / 0.8731 GB Notification: Performance of matching and sorting (n=71): time 0.02227/0.9237, allocations: 3.796 MB / 1.132 GB, free: 15.82 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.424e-05/0.9238, allocations: 64 kB / 1.132 GB, free: 15.74 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002506/0.9263, allocations: 1.275 MB / 1.133 GB, free: 14.46 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 0.0002139/0.9266, allocations: 45.7 kB / 1.133 GB, free: 14.41 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007335/0.9273, allocations: 0.6658 MB / 1.134 GB, free: 13.73 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004173/0.9277, allocations: 244.6 kB / 1.134 GB, free: 13.49 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.9279, allocations: 65.69 kB / 1.134 GB, free: 13.42 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001652/0.9281, allocations: 341.9 kB / 1.135 GB, free: 13.08 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001772/0.9299, allocations: 0.5524 MB / 1.135 GB, free: 12.53 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001907/0.9318, allocations: 0.7712 MB / 1.136 GB, free: 11.67 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003387/0.9352, allocations: 1.203 MB / 1.137 GB, free: 10.42 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.9352, allocations: 0 / 1.137 GB, free: 10.42 MB / 0.8887 GB Notification: Performance of matching and sorting (n=99) (initialization): time 0.01057/0.9458, allocations: 2.176 MB / 1.139 GB, free: 8.23 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001876/0.946, allocations: 208.2 kB / 1.139 GB, free: 7.973 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.798e-05/0.9461, allocations: 8 kB / 1.139 GB, free: 7.965 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001755/0.9478, allocations: 496.5 kB / 1.14 GB, free: 7.477 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001035/0.9489, allocations: 207.7 kB / 1.14 GB, free: 7.273 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0166/0.9655, allocations: 3.812 MB / 1.144 GB, free: 3.328 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002011/0.9675, allocations: 243 kB / 1.144 GB, free: 3.09 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001896/0.9677, allocations: 39.98 kB / 1.144 GB, free: 3.051 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/0.9678, allocations: 4 kB / 1.144 GB, free: 3.047 MB / 0.8887 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01006/0.9778, allocations: 2.016 MB / 1.146 GB, free: 1.016 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.9779, allocations: 4 kB / 1.146 GB, free: 1.012 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001678/0.9796, allocations: 0.489 MB / 1.146 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009743/0.9806, allocations: 207.7 kB / 1.147 GB, free: 324 kB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01647/0.9971, allocations: 3.799 MB / 1.15 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001952/0.999, allocations: 227.3 kB / 1.151 GB, free: 12.16 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001844/0.9992, allocations: 43.97 kB / 1.151 GB, free: 12.12 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.0008573/1, allocations: 417.5 kB / 1.151 GB, free: 11.7 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003934/1.001, allocations: 150.2 kB / 1.151 GB, free: 11.55 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01042/1.011, allocations: 2.223 MB / 1.153 GB, free: 9.301 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.627e-05/1.011, allocations: 11.94 kB / 1.153 GB, free: 9.289 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/1.011, allocations: 7.984 kB / 1.153 GB, free: 9.281 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009738/1.021, allocations: 1.992 MB / 1.155 GB, free: 7.254 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01357/1.034, allocations: 3.983 MB / 1.159 GB, free: 3.109 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.805e-05/1.034, allocations: 4 kB / 1.159 GB, free: 3.105 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008004/1.035, allocations: 176.3 kB / 1.159 GB, free: 2.934 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001661/1.037, allocations: 484.5 kB / 1.16 GB, free: 2.457 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001018/1.037, allocations: 31.97 kB / 1.16 GB, free: 2.426 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01688/1.054, allocations: 3.802 MB / 1.164 GB, free: 14.49 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/1.054, allocations: 4 kB / 1.164 GB, free: 14.48 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01289/1.067, allocations: 3.003 MB / 1.166 GB, free: 11.4 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009871/1.068, allocations: 374.8 kB / 1.167 GB, free: 11.02 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003702/1.068, allocations: 23.98 kB / 1.167 GB, free: 10.99 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001754/1.07, allocations: 179.7 kB / 1.167 GB, free: 10.82 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001857/1.07, allocations: 76.34 kB / 1.167 GB, free: 10.74 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/1.07, allocations: 39.97 kB / 1.167 GB, free: 10.7 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001698/1.072, allocations: 0.909 MB / 1.168 GB, free: 9.797 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.5e-07/1.072, allocations: 0 / 1.168 GB, free: 9.797 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.00294/1.075, allocations: 0.8539 MB / 1.169 GB, free: 8.941 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.001386/1.076, allocations: 0.5172 MB / 1.169 GB, free: 8.43 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.008759/1.085, allocations: 2.606 MB / 1.172 GB, free: 5.773 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.143e-05/1.085, allocations: 192 / 1.172 GB, free: 5.773 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.003364/1.089, allocations: 0.967 MB / 1.173 GB, free: 4.797 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005624/1.094, allocations: 0.7626 MB / 1.174 GB, free: 4.043 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007631/1.102, allocations: 3.523 MB / 1.177 GB, free: 436 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001079/1.103, allocations: 1.238 MB / 1.178 GB, free: 15.16 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005527/1.104, allocations: 131.4 kB / 1.178 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of SimCode: time 8.41e-07/1.104, allocations: 0 / 1.178 GB, free: 15.03 MB / 0.9356 GB Notification: Performance of Templates: time 0.04873/1.152, allocations: 34.1 MB / 1.212 GB, free: 13.13 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/jenkins1/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