Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.599/1.599, allocations: 292.3 MB / 308.1 MB, free: 4.273 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.001193/0.001193, allocations: 180.5 kB / 376.9 MB, free: 1.824 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.565/1.565, allocations: 205 MB / 0.6353 GB, free: 9.793 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001008/0.001008, allocations: 92 kB / 0.748 GB, free: 61.07 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001045/0.001045, allocations: 55.92 kB / 0.8704 GB, free: 13.09 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.2595, allocations: 114.5 MB / 0.9822 GB, free: 10.39 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.5522/0.8118, allocations: 53.06 MB / 1.034 GB, free: 63.21 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.02897/0.8408, allocations: 18.16 MB / 1.052 GB, free: 62.71 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004559/0.8454, allocations: 80.84 kB / 1.052 GB, free: 62.71 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.004579/0.85, allocations: 0.9904 MB / 1.053 GB, free: 62.68 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.009127/0.8591, allocations: 2.137 MB / 1.055 GB, free: 62.2 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0135/0.8726, allocations: 3.04 MB / 1.058 GB, free: 61.99 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.009796/0.8825, allocations: 6.061 MB / 1.064 GB, free: 60.02 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00255/0.885, allocations: 1.402 MB / 1.065 GB, free: 59.49 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00393/0.889, allocations: 1.69 MB / 1.067 GB, free: 58.85 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002345/0.8914, allocations: 1.379 MB / 1.068 GB, free: 58.35 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 0.0002671/0.8916, allocations: 86.22 kB / 1.068 GB, free: 58.35 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004857/0.8965, allocations: 1.853 MB / 1.07 GB, free: 57.83 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0005523/0.8971, allocations: 466.7 kB / 1.07 GB, free: 57.62 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.001377/0.8985, allocations: 0.9619 MB / 1.071 GB, free: 57.05 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.005942/0.9044, allocations: 3.356 MB / 1.075 GB, free: 55.95 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 7.324e-06/0.9045, allocations: 4 kB / 1.075 GB, free: 55.94 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.854e-06/0.9045, allocations: 0 / 1.075 GB, free: 55.94 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.946e-05/0.9045, allocations: 0 / 1.075 GB, free: 55.94 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 282 * Number of variables: 282 Notification: Performance of Generate backend data structure: time 0.004597/0.9091, allocations: 2.555 MB / 1.077 GB, free: 54.31 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.9092, allocations: 13.66 kB / 1.077 GB, free: 54.31 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001943/0.9111, allocations: 465.5 kB / 1.078 GB, free: 54.17 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002923/0.9141, allocations: 1.652 MB / 1.079 GB, free: 53.29 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003471/0.9144, allocations: 144.6 kB / 1.079 GB, free: 53.24 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001644/0.9146, allocations: 121.3 kB / 1.08 GB, free: 53.2 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002406/0.917, allocations: 1.369 MB / 1.081 GB, free: 52.53 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.849e-05/0.9171, allocations: 2.938 kB / 1.081 GB, free: 52.53 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.991e-05/0.9172, allocations: 47.94 kB / 1.081 GB, free: 52.5 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.985e-05/0.9172, allocations: 30.97 kB / 1.081 GB, free: 52.49 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002369/0.9196, allocations: 1.093 MB / 1.082 GB, free: 52.12 MB / 0.7448 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.007704/0.9273, allocations: 6.923 MB / 1.089 GB, free: 46.89 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002262/0.9296, allocations: 1.389 MB / 1.09 GB, free: 45.99 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008853/0.9305, allocations: 412.4 kB / 1.091 GB, free: 45.85 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004064/0.9346, allocations: 3.004 MB / 1.093 GB, free: 43.4 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009782/0.9356, allocations: 446.2 kB / 1.094 GB, free: 43.24 MB / 0.7448 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0004896/0.9361, allocations: 81.72 kB / 1.094 GB, free: 43.2 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=60): time 2.464e-06/0.9361, allocations: 0 / 1.094 GB, free: 43.2 MB / 0.7448 GB Notification: Performance of matching and sorting (n=60): time 0.002971/0.9391, allocations: 1.236 MB / 1.095 GB, free: 42.68 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.981e-05/0.9391, allocations: 117.3 kB / 1.095 GB, free: 42.55 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001801/0.9409, allocations: 1.541 MB / 1.097 GB, free: 41.98 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 6.248e-05/0.941, allocations: 37.27 kB / 1.097 GB, free: 41.95 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000599/0.9416, allocations: 0.9025 MB / 1.098 GB, free: 41.24 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/0.9418, allocations: 207.5 kB / 1.098 GB, free: 41.08 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002876/0.9421, allocations: 214.6 kB / 1.098 GB, free: 40.98 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.531e-05/0.9421, allocations: 353.6 kB / 1.098 GB, free: 40.66 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008733/0.943, allocations: 402.7 kB / 1.099 GB, free: 40.53 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001094/0.9441, allocations: 0.7948 MB / 1.1 GB, free: 39.89 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001869/0.946, allocations: 1.158 MB / 1.101 GB, free: 39.11 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/0.946, allocations: 3.062 kB / 1.101 GB, free: 39.11 MB / 0.7448 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.002617/0.9486, allocations: 1.341 MB / 1.102 GB, free: 38.57 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 4.355e-05/0.9487, allocations: 38.55 kB / 1.102 GB, free: 38.54 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.282e-05/0.9487, allocations: 10.25 kB / 1.102 GB, free: 38.54 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.195e-05/0.9488, allocations: 16.31 kB / 1.102 GB, free: 38.54 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009475/0.9497, allocations: 267.5 kB / 1.102 GB, free: 38.51 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.644e-05/0.9498, allocations: 27.42 kB / 1.102 GB, free: 38.5 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001358/0.9511, allocations: 121.2 kB / 1.103 GB, free: 38.47 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.986e-05/0.9512, allocations: 53.91 kB / 1.103 GB, free: 38.46 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001567/0.9528, allocations: 0.6971 MB / 1.103 GB, free: 38.14 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001026/0.9538, allocations: 0.7737 MB / 1.104 GB, free: 37.51 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001856/0.9557, allocations: 1.133 MB / 1.105 GB, free: 36.73 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.653e-06/0.9557, allocations: 3.734 kB / 1.105 GB, free: 36.73 MB / 0.7448 GB Notification: Performance of matching and sorting (n=127) (initialization_lambda0): time 0.002726/0.9585, allocations: 1.315 MB / 1.106 GB, free: 36.21 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 3.511e-05/0.9585, allocations: 45.19 kB / 1.106 GB, free: 36.17 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.86e-05/0.9585, allocations: 13 kB / 1.106 GB, free: 36.17 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.9586, allocations: 18.19 kB / 1.106 GB, free: 36.17 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009007/0.9595, allocations: 256.4 kB / 1.107 GB, free: 36.14 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.423e-05/0.9595, allocations: 28.08 kB / 1.107 GB, free: 36.14 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001223/0.9607, allocations: 120 kB / 1.107 GB, free: 36.11 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-05/0.9608, allocations: 52.34 kB / 1.107 GB, free: 36.1 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 119 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.0003389/0.9612, allocations: 251.4 kB / 1.107 GB, free: 35.87 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002073/0.9614, allocations: 172.6 kB / 1.107 GB, free: 35.78 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002485/0.9639, allocations: 1.125 MB / 1.108 GB, free: 35.36 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.958e-05/0.9639, allocations: 10.06 kB / 1.108 GB, free: 35.36 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.9639, allocations: 3.781 kB / 1.108 GB, free: 35.36 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001813/0.9657, allocations: 0.9667 MB / 1.109 GB, free: 34.86 MB / 0.7448 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.004135/0.9699, allocations: 2.382 MB / 1.112 GB, free: 33.76 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.121e-06/0.9699, allocations: 3.188 kB / 1.112 GB, free: 33.76 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006737/0.9706, allocations: 141.8 kB / 1.112 GB, free: 33.75 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001859/0.9708, allocations: 36.16 kB / 1.112 GB, free: 33.73 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.42e-05/0.9709, allocations: 22.72 kB / 1.112 GB, free: 33.72 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000909/0.9718, allocations: 1.374 MB / 1.113 GB, free: 32.37 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.9718, allocations: 0.7812 kB / 1.113 GB, free: 32.37 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1355/1.107, allocations: 29.88 MB / 1.142 GB, free: 23.27 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001083/1.108, allocations: 341.2 kB / 1.143 GB, free: 23.02 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005447/1.109, allocations: 13.78 kB / 1.143 GB, free: 23.01 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001318/1.11, allocations: 103.8 kB / 1.143 GB, free: 22.99 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/1.11, allocations: 50.67 kB / 1.143 GB, free: 22.98 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001135/1.111, allocations: 30.28 kB / 1.143 GB, free: 22.98 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.002237/1.113, allocations: 1.096 MB / 1.144 GB, free: 22.54 MB / 0.7448 GB Notification: Performance of sort global known variables: time 4.61e-07/1.113, allocations: 0 / 1.144 GB, free: 22.54 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.00609/1.119, allocations: 1.421 MB / 1.145 GB, free: 22.31 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.outCon.T) * 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 (69): * Single equations (assignments): 60 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002105/1.121, allocations: 0.8089 MB / 1.146 GB, free: 21.97 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.004093/1.125, allocations: 1.697 MB / 1.148 GB, free: 21.32 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/1.125, allocations: 5.312 kB / 1.148 GB, free: 21.31 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.001671/1.127, allocations: 0.5557 MB / 1.148 GB, free: 21.07 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004702/1.132, allocations: 0.7388 MB / 1.149 GB, free: 20.86 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009504/1.141, allocations: 4.307 MB / 1.153 GB, free: 18.21 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002156/1.143, allocations: 1.4 MB / 1.155 GB, free: 17.41 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.003927/1.147, allocations: 464.1 kB / 1.155 GB, free: 17.29 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009081/1.148, allocations: 151.7 kB / 1.155 GB, free: 17.28 MB / 0.7448 GB Notification: Performance of SimCode: time 1.242e-06/1.148, allocations: 0 / 1.155 GB, free: 17.28 MB / 0.7448 GB Notification: Performance of Templates: time 0.09484/1.243, allocations: 40.81 MB / 1.195 GB, free: 7.719 MB / 0.7605 GB make -j1 -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)