Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") translateModel(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.005828/0.005828, allocations: 100.6 kB / 15.73 MB, free: 6.035 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.001229/0.001229, allocations: 194.1 kB / 16.67 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.51/1.51, allocations: 205.1 MB / 222.5 MB, free: 4.473 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.588/1.588, allocations: 251.7 MB / 0.5094 GB, free: 3.027 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 67.91 kB / 0.7258 GB, free: 9.016 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.29/0.2918, allocations: 104.7 MB / 0.828 GB, free: 212 kB / 0.6387 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.03314/0.325, allocations: 28.59 MB / 0.856 GB, free: 3.504 MB / 0.67 GB Notification: Performance of NFInst.instExpressions: time 0.01417/0.3392, allocations: 7.826 MB / 0.8636 GB, free: 11.66 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002478/0.3418, allocations: 39.75 kB / 0.8636 GB, free: 11.62 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.002594/0.3445, allocations: 417.2 kB / 0.864 GB, free: 11.21 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.004564/0.3491, allocations: 1.049 MB / 0.8651 GB, free: 10.16 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.004141/0.3533, allocations: 1.057 MB / 0.8661 GB, free: 9.105 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.007863/0.3612, allocations: 4.878 MB / 0.8708 GB, free: 4.215 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004064/0.3653, allocations: 2.281 MB / 0.8731 GB, free: 1.898 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005538/0.3708, allocations: 1.804 MB / 0.8748 GB, free: 100 kB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003776/0.3747, allocations: 1.451 MB / 0.8763 GB, free: 14.64 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.001023/0.3757, allocations: 228 kB / 0.8765 GB, free: 14.41 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004263/0.38, allocations: 1.318 MB / 0.8778 GB, free: 13.1 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.001267/0.3813, allocations: 0.5413 MB / 0.8783 GB, free: 12.55 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.003236/0.3845, allocations: 1.147 MB / 0.8794 GB, free: 11.4 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.007531/0.3921, allocations: 3.638 MB / 0.883 GB, free: 7.754 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 9.718e-06/0.3921, allocations: 4 kB / 0.883 GB, free: 7.75 MB / 0.7012 GB Notification: Performance of FrontEnd: time 2.254e-06/0.3921, allocations: 0 / 0.883 GB, free: 7.75 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 0.0001787/0.3923, allocations: 0 / 0.883 GB, free: 7.75 MB / 0.7012 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.008615/0.4009, allocations: 2.538 MB / 0.8854 GB, free: 5.156 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 5.41e-05/0.401, allocations: 8.031 kB / 0.8855 GB, free: 5.148 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001564/0.4026, allocations: 230.5 kB / 0.8857 GB, free: 4.922 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004206/0.4068, allocations: 1.753 MB / 0.8874 GB, free: 3.113 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001488/0.407, allocations: 122.6 kB / 0.8875 GB, free: 2.992 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005608/0.4076, allocations: 155.9 kB / 0.8877 GB, free: 2.84 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00459/0.4122, allocations: 1.986 MB / 0.8896 GB, free: 0.7891 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.111e-05/0.4122, allocations: 4 kB / 0.8896 GB, free: 0.7852 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001447/0.4124, allocations: 56 kB / 0.8896 GB, free: 0.7305 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.613e-05/0.4125, allocations: 36 kB / 0.8897 GB, free: 0.6953 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003078/0.4156, allocations: 1.798 MB / 0.8914 GB, free: 14.89 MB / 0.7169 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.01265/0.4282, allocations: 7.582 MB / 0.8988 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001936/0.4302, allocations: 1.436 MB / 0.9002 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008685/0.4311, allocations: 0.6603 MB / 0.9009 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006627/0.4377, allocations: 3.839 MB / 0.9046 GB, free: 0.7148 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.217e-05/0.4378, allocations: 43.56 kB / 0.9047 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=88): time 5.219e-06/0.4378, allocations: 0 / 0.9047 GB, free: 0.6641 MB / 0.7169 GB Notification: Performance of matching and sorting (n=88): time 0.002678/0.4405, allocations: 1.514 MB / 0.9062 GB, free: 15.14 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.132e-05/0.4405, allocations: 64.41 kB / 0.9062 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002275/0.4428, allocations: 1.636 MB / 0.9078 GB, free: 13.42 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 9.502e-05/0.4429, allocations: 45.7 kB / 0.9079 GB, free: 13.37 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006761/0.4436, allocations: 0.7457 MB / 0.9086 GB, free: 12.61 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003355/0.444, allocations: 311.5 kB / 0.9089 GB, free: 12.3 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004301/0.4444, allocations: 291.4 kB / 0.9092 GB, free: 12.02 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001754/0.4446, allocations: 365.9 kB / 0.9095 GB, free: 11.65 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001005/0.4456, allocations: 0.6878 MB / 0.9102 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00127/0.4469, allocations: 1.028 MB / 0.9112 GB, free: 9.801 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002067/0.449, allocations: 1.62 MB / 0.9128 GB, free: 8.055 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.02e-05/0.449, allocations: 7.938 kB / 0.9128 GB, free: 8.047 MB / 0.7325 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.003306/0.4523, allocations: 1.944 MB / 0.9147 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.387e-05/0.4523, allocations: 8 kB / 0.9147 GB, free: 6.086 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.4523, allocations: 8 kB / 0.9147 GB, free: 6.078 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.952e-05/0.4524, allocations: 24.02 kB / 0.9147 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.4537, allocations: 327.5 kB / 0.915 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.999e-05/0.4537, allocations: 23.92 kB / 0.915 GB, free: 5.711 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001418/0.4551, allocations: 206 kB / 0.9152 GB, free: 5.508 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001133/0.4552, allocations: 63.98 kB / 0.9153 GB, free: 5.445 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002035/0.4573, allocations: 1.273 MB / 0.9165 GB, free: 4.168 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00118/0.4585, allocations: 1.02 MB / 0.9175 GB, free: 3.023 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002066/0.4606, allocations: 1.624 MB / 0.9191 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.909e-06/0.4606, allocations: 0 / 0.9191 GB, free: 1.277 MB / 0.7325 GB Notification: Performance of matching and sorting (n=175) (initialization_lambda0): time 0.6066/1.067, allocations: 1.946 MB / 0.921 GB, free: 87.79 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/1.067, allocations: 9.578 kB / 0.921 GB, free: 87.79 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.954e-05/1.067, allocations: 9.906 kB / 0.9211 GB, free: 87.79 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.391e-05/1.067, allocations: 15.19 kB / 0.9211 GB, free: 87.79 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001408/1.069, allocations: 336.6 kB / 0.9214 GB, free: 87.79 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.926e-05/1.069, allocations: 21.36 kB / 0.9214 GB, free: 87.79 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001469/1.07, allocations: 145.1 kB / 0.9215 GB, free: 87.79 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/1.07, allocations: 66.25 kB / 0.9216 GB, free: 87.79 MB / 0.7325 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.0003257/1.071, allocations: 260 kB / 0.9219 GB, free: 87.61 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003831/1.071, allocations: 146.1 kB / 0.922 GB, free: 87.61 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00289/1.074, allocations: 1.272 MB / 0.9232 GB, free: 87.54 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.193e-05/1.074, allocations: 12.22 kB / 0.9232 GB, free: 87.54 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.548e-06/1.074, allocations: 7.391 kB / 0.9233 GB, free: 87.54 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001923/1.076, allocations: 1.287 MB / 0.9245 GB, free: 87.07 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005644/1.082, allocations: 2.937 MB / 0.9274 GB, free: 85.89 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.859e-06/1.082, allocations: 4.094 kB / 0.9274 GB, free: 85.89 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008928/1.083, allocations: 185.2 kB / 0.9276 GB, free: 85.88 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.269e-05/1.083, allocations: 4.531 kB / 0.9276 GB, free: 85.88 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.714e-05/1.083, allocations: 31 kB / 0.9276 GB, free: 85.87 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.06e-05/1.083, allocations: 3.969 kB / 0.9276 GB, free: 85.87 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.083, allocations: 2 kB / 0.9276 GB, free: 85.87 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003099/1.086, allocations: 1.916 MB / 0.9295 GB, free: 85.12 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008234/1.087, allocations: 398.6 kB / 0.9299 GB, free: 84.87 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002287/1.087, allocations: 24.64 kB / 0.9299 GB, free: 84.86 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008174/1.088, allocations: 48.42 kB / 0.9299 GB, free: 84.84 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001373/1.088, allocations: 53.42 kB / 0.93 GB, free: 84.84 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001091/1.088, allocations: 34.72 kB / 0.93 GB, free: 84.83 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.002299/1.09, allocations: 1.224 MB / 0.9312 GB, free: 84.39 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.2e-07/1.09, allocations: 1.156 kB / 0.9312 GB, free: 84.39 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.003261/1.094, allocations: 0.9095 MB / 0.9321 GB, free: 84.26 MB / 0.7325 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.0009323/1.094, allocations: 378.5 kB / 0.9325 GB, free: 84.13 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.003945/1.098, allocations: 2.327 MB / 0.9347 GB, free: 83.41 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.862e-06/1.098, allocations: 3.469 kB / 0.9347 GB, free: 83.41 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007906/1.099, allocations: 0.5205 MB / 0.9352 GB, free: 83.25 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004164/1.103, allocations: 0.9209 MB / 0.9361 GB, free: 83.04 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005677/1.109, allocations: 3.646 MB / 0.9397 GB, free: 81.39 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001575/1.111, allocations: 1.663 MB / 0.9413 GB, free: 80.49 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002886/1.114, allocations: 0.9137 MB / 0.9422 GB, free: 80.39 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004001/1.114, allocations: 129 kB / 0.9423 GB, free: 80.38 MB / 0.7325 GB Notification: Performance of SimCode: time 8.32e-07/1.114, allocations: 0 / 0.9423 GB, free: 80.38 MB / 0.7325 GB Notification: Performance of Templates: time 0.05231/1.166, allocations: 35.87 MB / 0.9774 GB, free: 57.39 MB / 0.7325 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)