Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 3.044/3.044, allocations: 287.3 MB / 302.3 MB, free: 8.336 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001606/0.001607, allocations: 186.9 kB / 370.8 MB, free: 10.85 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.101/2.101, allocations: 205.4 MB / 0.6295 GB, free: 10.57 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001102/0.001102, allocations: 98.34 kB / 0.7428 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006593/0.0006596, allocations: 16.06 kB / 0.8656 GB, free: 141.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2137/0.2144, allocations: 115.3 MB / 0.9782 GB, free: 28.39 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.08487/0.2993, allocations: 56.26 MB / 1.033 GB, free: 3.996 MB / 0.6511 GB Notification: Performance of NFInst.instExpressions: time 0.04007/0.3394, allocations: 17.01 MB / 1.05 GB, free: 2.957 MB / 0.6667 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003384/0.3428, allocations: 75.44 kB / 1.05 GB, free: 2.883 MB / 0.6667 GB Notification: Performance of NFTyping.typeComponents: time 0.005196/0.3481, allocations: 0.999 MB / 1.051 GB, free: 1.879 MB / 0.6667 GB Notification: Performance of NFTyping.typeBindings: time 0.0121/0.3602, allocations: 2.656 MB / 1.053 GB, free: 15.22 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0143/0.3745, allocations: 3.135 MB / 1.056 GB, free: 12.12 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.009078/0.3836, allocations: 3.154 MB / 1.06 GB, free: 8.965 MB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004796/0.3885, allocations: 1.372 MB / 1.061 GB, free: 7.57 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007944/0.3965, allocations: 1.467 MB / 1.062 GB, free: 6.098 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004222/0.4008, allocations: 0.9681 MB / 1.063 GB, free: 5.125 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.001057/0.4019, allocations: 76 kB / 1.063 GB, free: 5.051 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.008782/0.4107, allocations: 1.447 MB / 1.065 GB, free: 3.602 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.00166/0.4124, allocations: 410.4 kB / 1.065 GB, free: 3.199 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.001868/0.4144, allocations: 440.6 kB / 1.066 GB, free: 2.762 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.009553/0.424, allocations: 2.681 MB / 1.068 GB, free: 76 kB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 6.112e-06/0.4241, allocations: 0 / 1.068 GB, free: 76 kB / 0.6823 GB Notification: Performance of FrontEnd: time 3.567e-06/0.4241, allocations: 0 / 1.068 GB, free: 76 kB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001235/0.4242, allocations: 0 / 1.068 GB, free: 76 kB / 0.6823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.6641/1.088, allocations: 2.34 MB / 1.07 GB, free: 90.51 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.114e-05/1.088, allocations: 8.719 kB / 1.07 GB, free: 90.51 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002935/1.091, allocations: 392.6 kB / 1.071 GB, free: 90.39 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006031/1.097, allocations: 1.651 MB / 1.072 GB, free: 89.65 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007921/1.098, allocations: 167.3 kB / 1.073 GB, free: 89.61 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004887/1.099, allocations: 141 kB / 1.073 GB, free: 89.56 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00517/1.104, allocations: 1.451 MB / 1.074 GB, free: 88.86 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.622e-05/1.104, allocations: 5.281 kB / 1.074 GB, free: 88.86 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002111/1.104, allocations: 54.12 kB / 1.074 GB, free: 88.82 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.489e-05/1.104, allocations: 36.72 kB / 1.074 GB, free: 88.82 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005012/1.109, allocations: 1.12 MB / 1.075 GB, free: 88.44 MB / 0.6823 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.0164/1.126, allocations: 7.436 MB / 1.083 GB, free: 82.91 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004219/1.13, allocations: 1.361 MB / 1.084 GB, free: 82.03 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007657/1.138, allocations: 2.611 MB / 1.086 GB, free: 80.09 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001978/1.14, allocations: 469.4 kB / 1.087 GB, free: 79.92 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001275/1.141, allocations: 90.62 kB / 1.087 GB, free: 79.88 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=65): time 6.122e-06/1.141, allocations: 4.75 kB / 1.087 GB, free: 79.88 MB / 0.6823 GB Notification: Performance of matching and sorting (n=65): time 0.006324/1.148, allocations: 1.28 MB / 1.088 GB, free: 79.36 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.059e-05/1.148, allocations: 139.2 kB / 1.088 GB, free: 79.21 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0039/1.152, allocations: 1.562 MB / 1.09 GB, free: 78.6 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002799/1.152, allocations: 45.23 kB / 1.09 GB, free: 78.56 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001059/1.153, allocations: 0.8997 MB / 1.091 GB, free: 77.86 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004026/1.154, allocations: 235.5 kB / 1.091 GB, free: 77.68 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.869e-05/1.154, allocations: 19.41 kB / 1.091 GB, free: 77.67 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.000121/1.154, allocations: 344.5 kB / 1.091 GB, free: 77.35 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001682/1.155, allocations: 387.4 kB / 1.092 GB, free: 77.23 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002027/1.158, allocations: 0.7593 MB / 1.093 GB, free: 76.65 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002059/1.16, allocations: 0.4939 MB / 1.093 GB, free: 76.43 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-05/1.16, allocations: 2.625 kB / 1.093 GB, free: 76.43 MB / 0.6823 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.0051/1.165, allocations: 1.32 MB / 1.094 GB, free: 75.89 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.000828/1.166, allocations: 3.831 MB / 1.098 GB, free: 71.77 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.81e-05/1.166, allocations: 11.41 kB / 1.098 GB, free: 71.77 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.411e-05/1.166, allocations: 16.09 kB / 1.098 GB, free: 71.77 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002171/1.168, allocations: 266.3 kB / 1.098 GB, free: 71.74 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.068e-05/1.168, allocations: 20.33 kB / 1.098 GB, free: 71.73 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002849/1.171, allocations: 148.1 kB / 1.098 GB, free: 71.7 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002653/1.171, allocations: 55.98 kB / 1.099 GB, free: 71.7 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.657e-05/1.171, allocations: 4.312 kB / 1.099 GB, free: 71.7 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004351/1.176, allocations: 1.146 MB / 1.1 GB, free: 71.26 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.853e-05/1.176, allocations: 14.47 kB / 1.1 GB, free: 71.26 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.087e-05/1.176, allocations: 16.31 kB / 1.1 GB, free: 71.26 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002024/1.178, allocations: 262.7 kB / 1.1 GB, free: 71.23 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.992e-05/1.178, allocations: 20.28 kB / 1.1 GB, free: 71.23 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002716/1.181, allocations: 147.9 kB / 1.1 GB, free: 71.19 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002629/1.181, allocations: 53.3 kB / 1.1 GB, free: 71.18 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 120 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001428/1.182, allocations: 0.4922 MB / 1.101 GB, free: 70.82 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006175/1.183, allocations: 173.7 kB / 1.101 GB, free: 70.73 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004521/1.188, allocations: 1.121 MB / 1.102 GB, free: 70.31 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.688e-05/1.188, allocations: 16.61 kB / 1.102 GB, free: 70.31 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.243e-05/1.188, allocations: 1.594 kB / 1.102 GB, free: 70.31 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003394/1.191, allocations: 0.8298 MB / 1.103 GB, free: 69.98 MB / 0.6823 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 postOpt removeSimpleEquations (simulation): time 0.009339/1.2, allocations: 2.635 MB / 1.105 GB, free: 68.72 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.246e-05/1.2, allocations: 1.406 kB / 1.105 GB, free: 68.72 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001543/1.202, allocations: 164 kB / 1.105 GB, free: 68.71 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003499/1.202, allocations: 38.47 kB / 1.105 GB, free: 68.69 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001746/1.203, allocations: 26.64 kB / 1.105 GB, free: 68.68 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001369/1.204, allocations: 1.394 MB / 1.107 GB, free: 67.32 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.66e-06/1.204, allocations: 4.75 kB / 1.107 GB, free: 67.32 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006227/1.21, allocations: 1.771 MB / 1.109 GB, free: 66.34 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001552/1.212, allocations: 385.3 kB / 1.109 GB, free: 66.07 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007248/1.213, allocations: 21.39 kB / 1.109 GB, free: 66.06 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002734/1.215, allocations: 128.8 kB / 1.109 GB, free: 66.03 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003146/1.216, allocations: 66.72 kB / 1.109 GB, free: 66.02 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001763/1.216, allocations: 39.55 kB / 1.109 GB, free: 66.01 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.003058/1.219, allocations: 1.123 MB / 1.11 GB, free: 65.54 MB / 0.6823 GB Notification: Performance of sort global known variables: time 6.41e-07/1.219, allocations: 0 / 1.11 GB, free: 65.54 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.005517/1.225, allocations: 1.01 MB / 1.111 GB, free: 65.33 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002059/1.227, allocations: 0.5734 MB / 1.112 GB, free: 65.11 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.006289/1.233, allocations: 1.709 MB / 1.114 GB, free: 64.25 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 1.156e-05/1.233, allocations: 1.281 kB / 1.114 GB, free: 64.25 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.002179/1.235, allocations: 0.5742 MB / 1.114 GB, free: 63.93 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007675/1.243, allocations: 0.8504 MB / 1.115 GB, free: 63.51 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009957/1.253, allocations: 3.907 MB / 1.119 GB, free: 60.91 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001374/1.255, allocations: 1.444 MB / 1.12 GB, free: 59.84 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.003392/1.258, allocations: 433.5 kB / 1.121 GB, free: 59.63 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009687/1.259, allocations: 160.2 kB / 1.121 GB, free: 59.59 MB / 0.6823 GB Notification: Performance of SimCode: time 9.12e-07/1.259, allocations: 0 / 1.121 GB, free: 59.59 MB / 0.6823 GB Notification: Performance of Templates: time 0.08753/1.347, allocations: 34.89 MB / 1.155 GB, free: 29.71 MB / 0.6823 GB make -j1 -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)