Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|indTanHex.vol.1..T|indTanHex.vol.2..T|indTanHex.vol.3..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") translateModel(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|indTanHex.vol.1..T|indTanHex.vol.2..T|indTanHex.vol.3..T",fileNamePrefix="Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001811/0.001811, allocations: 106.7 kB / 16.41 MB, free: 6.465 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.002155/0.002156, allocations: 187 kB / 17.34 MB, free: 5.723 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.478/1.478, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.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.342/2.342, allocations: 390.3 MB / 0.6655 GB, free: 0.5938 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001684/0.001684, allocations: 63.91 kB / 0.9515 GB, free: 7.613 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.886/0.8877, allocations: 140.4 MB / 1.089 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.03466/0.9224, allocations: 28.6 MB / 1.117 GB, free: 1.023 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01439/0.9368, allocations: 7.898 MB / 1.124 GB, free: 11.39 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002815/0.9397, allocations: 38.34 kB / 1.124 GB, free: 11.38 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001751/0.9415, allocations: 418.6 kB / 1.125 GB, free: 11.12 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.004243/0.9457, allocations: 1.062 MB / 1.126 GB, free: 10.48 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003887/0.9496, allocations: 1.075 MB / 1.127 GB, free: 9.91 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.007833/0.9575, allocations: 4.928 MB / 1.132 GB, free: 7.551 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003713/0.9612, allocations: 2.286 MB / 1.134 GB, free: 6.582 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005243/0.9665, allocations: 1.825 MB / 1.136 GB, free: 5.773 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003059/0.9696, allocations: 1.451 MB / 1.137 GB, free: 5.109 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.0005219/0.9701, allocations: 233.9 kB / 1.137 GB, free: 5.105 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003912/0.974, allocations: 1.313 MB / 1.139 GB, free: 4.738 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0007715/0.9748, allocations: 0.5598 MB / 1.139 GB, free: 4.387 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.002289/0.9771, allocations: 1.156 MB / 1.14 GB, free: 3.684 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.007459/0.9846, allocations: 3.681 MB / 1.144 GB, free: 2.406 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 6.773e-06/0.9846, allocations: 0 / 1.144 GB, free: 2.406 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.054e-06/0.9846, allocations: 0 / 1.144 GB, free: 2.406 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.643e-05/0.9847, allocations: 0 / 1.144 GB, free: 2.406 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.007363/0.9921, allocations: 2.57 MB / 1.146 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.9922, allocations: 10.59 kB / 1.146 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001076/0.9933, allocations: 234 kB / 1.147 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003771/0.9971, allocations: 1.797 MB / 1.148 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/0.9972, allocations: 110.4 kB / 1.148 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002961/0.9975, allocations: 153.1 kB / 1.149 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004123/1.002, allocations: 2 MB / 1.15 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.22e-05/1.002, allocations: 6.203 kB / 1.15 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001663/1.002, allocations: 58.19 kB / 1.151 GB, free: 14.94 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.072e-05/1.002, allocations: 42.17 kB / 1.151 GB, free: 14.93 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003558/1.005, allocations: 1.797 MB / 1.152 GB, free: 14.35 MB / 0.9044 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.01425/1.02, allocations: 7.604 MB / 1.16 GB, free: 9.102 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002119/1.022, allocations: 1.453 MB / 1.161 GB, free: 8.273 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009912/1.023, allocations: 0.6584 MB / 1.162 GB, free: 7.938 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007372/1.03, allocations: 3.846 MB / 1.166 GB, free: 4.719 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.823e-05/1.03, allocations: 47.94 kB / 1.166 GB, free: 4.668 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=88): time 3.065e-06/1.03, allocations: 0 / 1.166 GB, free: 4.668 MB / 0.9044 GB Notification: Performance of matching and sorting (n=88): time 0.002863/1.033, allocations: 1.512 MB / 1.167 GB, free: 3.898 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.507e-05/1.033, allocations: 61.44 kB / 1.167 GB, free: 3.836 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002692/1.036, allocations: 1.644 MB / 1.169 GB, free: 2.953 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.0001103/1.036, allocations: 52.11 kB / 1.169 GB, free: 2.902 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006965/1.037, allocations: 0.7534 MB / 1.17 GB, free: 2.242 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.00034/1.037, allocations: 317.4 kB / 1.17 GB, free: 1.969 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004572/1.038, allocations: 288.6 kB / 1.17 GB, free: 1.812 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001587/1.038, allocations: 371.1 kB / 1.17 GB, free: 1.461 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001057/1.039, allocations: 0.6942 MB / 1.171 GB, free: 1.094 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/1.04, allocations: 1.017 MB / 1.172 GB, free: 340 kB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002203/1.042, allocations: 1.623 MB / 1.174 GB, free: 15.25 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.474e-06/1.042, allocations: 3.531 kB / 1.174 GB, free: 15.25 MB / 0.92 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003514/1.046, allocations: 1.955 MB / 1.176 GB, free: 14.25 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 3.062e-05/1.046, allocations: 9.031 kB / 1.176 GB, free: 14.25 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.77e-05/1.046, allocations: 11.81 kB / 1.176 GB, free: 14.24 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.899e-05/1.046, allocations: 16.12 kB / 1.176 GB, free: 14.24 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/1.047, allocations: 339.9 kB / 1.176 GB, free: 14.16 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.955e-05/1.047, allocations: 19.41 kB / 1.176 GB, free: 14.15 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001554/1.049, allocations: 195.7 kB / 1.176 GB, free: 14.02 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001384/1.049, allocations: 62.45 kB / 1.176 GB, free: 14 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002238/1.051, allocations: 1.284 MB / 1.178 GB, free: 13.27 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001322/1.053, allocations: 1.025 MB / 1.179 GB, free: 12.5 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002367/1.055, allocations: 1.621 MB / 1.18 GB, free: 11.42 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.305e-05/1.055, allocations: 2.438 kB / 1.18 GB, free: 11.42 MB / 0.92 GB Notification: Performance of matching and sorting (n=175) (initialization_lambda0): time 0.003687/1.059, allocations: 1.951 MB / 1.182 GB, free: 10.42 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.334e-05/1.059, allocations: 7.781 kB / 1.182 GB, free: 10.42 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.704e-05/1.059, allocations: 10.12 kB / 1.182 GB, free: 10.42 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.139e-05/1.059, allocations: 19.09 kB / 1.182 GB, free: 10.42 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001321/1.06, allocations: 336.1 kB / 1.182 GB, free: 10.34 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.81e-05/1.06, allocations: 19.16 kB / 1.182 GB, free: 10.33 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001379/1.062, allocations: 153 kB / 1.183 GB, free: 10.23 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001367/1.062, allocations: 57.61 kB / 1.183 GB, free: 10.22 MB / 0.92 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * 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.0004537/1.062, allocations: 262.3 kB / 1.183 GB, free: 9.973 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003833/1.063, allocations: 150.2 kB / 1.183 GB, free: 9.895 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002319/1.065, allocations: 1.285 MB / 1.184 GB, free: 9.164 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.76e-05/1.065, allocations: 9.625 kB / 1.184 GB, free: 9.164 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.163e-06/1.065, allocations: 0 / 1.184 GB, free: 9.164 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001541/1.067, allocations: 1.286 MB / 1.186 GB, free: 8.258 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004799/1.071, allocations: 2.957 MB / 1.188 GB, free: 6.324 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/1.071, allocations: 0 / 1.188 GB, free: 6.324 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000779/1.072, allocations: 195.7 kB / 1.189 GB, free: 6.133 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.476e-06/1.072, allocations: 4 kB / 1.189 GB, free: 6.129 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.156e-05/1.072, allocations: 20 kB / 1.189 GB, free: 6.109 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.708e-06/1.072, allocations: 11.92 kB / 1.189 GB, free: 6.098 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/1.072, allocations: 0 / 1.189 GB, free: 6.098 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00254/1.075, allocations: 1.917 MB / 1.19 GB, free: 4.148 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007834/1.076, allocations: 398.9 kB / 1.191 GB, free: 3.738 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002156/1.076, allocations: 31.83 kB / 1.191 GB, free: 3.707 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007538/1.077, allocations: 47.89 kB / 1.191 GB, free: 3.66 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001131/1.077, allocations: 52.92 kB / 1.191 GB, free: 3.609 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.527e-05/1.077, allocations: 35.98 kB / 1.191 GB, free: 3.574 MB / 0.92 GB Notification: Performance of sorting global known variables: time 0.001734/1.079, allocations: 1.242 MB / 1.192 GB, free: 2.336 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.6e-07/1.079, allocations: 0 / 1.192 GB, free: 2.336 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.002933/1.081, allocations: 0.9124 MB / 1.193 GB, free: 1.422 MB / 0.92 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * 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.0009195/1.082, allocations: 373.6 kB / 1.193 GB, free: 1.059 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.003551/1.086, allocations: 2.332 MB / 1.196 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/1.086, allocations: 0 / 1.196 GB, free: 14.73 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0006798/1.087, allocations: 0.5263 MB / 1.196 GB, free: 14.2 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003869/1.091, allocations: 0.9133 MB / 1.197 GB, free: 13.31 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00563/1.096, allocations: 3.641 MB / 1.201 GB, free: 9.625 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001151/1.097, allocations: 1.637 MB / 1.202 GB, free: 7.957 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006751/1.098, allocations: 151.4 kB / 1.202 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of SimCode: time 8.72e-07/1.098, allocations: 3.938 kB / 1.202 GB, free: 7.805 MB / 0.9356 GB Notification: Performance of Templates: time 0.0495/1.148, allocations: 32.82 MB / 1.235 GB, free: 7.195 MB / 0.9669 GB make -j1 -f Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Storage_BaseClasses_Examples_IndirectTankHeatExchanger.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches