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 2.917/2.917, allocations: 287.5 MB / 302.4 MB, free: 8.352 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.002166/0.002166, allocations: 185.5 kB / 371 MB, free: 10.88 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.287/2.287, allocations: 205.4 MB / 0.6297 GB, free: 10.61 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.0009759/0.0009756, allocations: 99.81 kB / 0.743 GB, free: 6.609 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005064/0.0005066, allocations: 16.47 kB / 0.8658 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2083/0.2089, allocations: 115.3 MB / 0.9783 GB, free: 28.38 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.09579/0.3047, allocations: 61.82 MB / 1.039 GB, free: 14.39 MB / 0.6667 GB Notification: Performance of NFInst.instExpressions: time 0.04122/0.346, allocations: 18.16 MB / 1.056 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003517/0.3496, allocations: 79.44 kB / 1.057 GB, free: 12.12 MB / 0.6823 GB Notification: Performance of NFTyping.typeComponents: time 0.0044/0.354, allocations: 0.8153 MB / 1.057 GB, free: 11.3 MB / 0.6823 GB Notification: Performance of NFTyping.typeBindings: time 0.01395/0.368, allocations: 2.107 MB / 1.059 GB, free: 9.184 MB / 0.6823 GB Notification: Performance of NFTyping.typeClassSections: time 0.01968/0.3877, allocations: 2.782 MB / 1.062 GB, free: 6.426 MB / 0.6823 GB Notification: Performance of NFFlatten.flatten: time 0.01632/0.4041, allocations: 5.99 MB / 1.068 GB, free: 436 kB / 0.6823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.6726/1.077, allocations: 1.352 MB / 1.069 GB, free: 20.58 MB / 0.6823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005927/1.083, allocations: 1.678 MB / 1.071 GB, free: 20.58 MB / 0.6823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004225/1.087, allocations: 1.374 MB / 1.072 GB, free: 20.58 MB / 0.6823 GB Notification: Performance of NFPackage.collectConstants: time 0.0008833/1.088, allocations: 74.78 kB / 1.072 GB, free: 20.58 MB / 0.6823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006903/1.095, allocations: 1.563 MB / 1.074 GB, free: 20.58 MB / 0.6823 GB Notification: Performance of NFScalarize.scalarize: time 0.001544/1.096, allocations: 434.1 kB / 1.074 GB, free: 20.58 MB / 0.6823 GB Notification: Performance of NFVerifyModel.verify: time 0.001516/1.098, allocations: 444.7 kB / 1.075 GB, free: 20.55 MB / 0.6823 GB Notification: Performance of NFConvertDAE.convert: time 0.007497/1.106, allocations: 2.75 MB / 1.077 GB, free: 20.44 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/1.106, allocations: 1.25 kB / 1.077 GB, free: 20.44 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.575e-06/1.106, allocations: 0 / 1.077 GB, free: 20.44 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0001481/1.106, allocations: 0.875 kB / 1.077 GB, free: 20.44 MB / 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.008858/1.115, allocations: 2.351 MB / 1.08 GB, free: 19.14 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.038e-05/1.115, allocations: 10 kB / 1.08 GB, free: 19.14 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003189/1.118, allocations: 393 kB / 1.08 GB, free: 19.02 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006636/1.125, allocations: 1.732 MB / 1.082 GB, free: 18.59 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000765/1.125, allocations: 165.8 kB / 1.082 GB, free: 18.58 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006276/1.126, allocations: 136.3 kB / 1.082 GB, free: 18.58 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005235/1.131, allocations: 1.472 MB / 1.083 GB, free: 18.32 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.643e-05/1.131, allocations: 7.234 kB / 1.083 GB, free: 18.32 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002231/1.132, allocations: 50.53 kB / 1.084 GB, free: 18.32 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.584e-05/1.132, allocations: 32.62 kB / 1.084 GB, free: 18.32 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004527/1.136, allocations: 1.138 MB / 1.085 GB, free: 18.29 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.01483/1.151, allocations: 7.378 MB / 1.092 GB, free: 14.09 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003685/1.155, allocations: 1.37 MB / 1.093 GB, free: 13.48 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001744/1.157, allocations: 459.4 kB / 1.094 GB, free: 13.46 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.007009/1.164, allocations: 2.607 MB / 1.096 GB, free: 12.08 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001871/1.166, allocations: 0.4987 MB / 1.097 GB, free: 12 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001309/1.167, allocations: 94.59 kB / 1.097 GB, free: 11.96 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=63): time 4.859e-06/1.167, allocations: 3.75 kB / 1.097 GB, free: 11.96 MB / 0.6823 GB Notification: Performance of matching and sorting (n=63): time 0.006174/1.173, allocations: 1.283 MB / 1.098 GB, free: 11.7 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.764e-05/1.173, allocations: 190 kB / 1.098 GB, free: 11.48 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003801/1.177, allocations: 1.509 MB / 1.1 GB, free: 11.3 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.0003209/1.177, allocations: 42.41 kB / 1.1 GB, free: 11.27 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001209/1.179, allocations: 0.8972 MB / 1.101 GB, free: 10.95 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.000456/1.179, allocations: 230.3 kB / 1.101 GB, free: 10.81 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.667e-05/1.179, allocations: 20.75 kB / 1.101 GB, free: 10.81 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001111/1.179, allocations: 350.2 kB / 1.101 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001696/1.181, allocations: 387 kB / 1.102 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001991/1.183, allocations: 0.77 MB / 1.102 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001837/1.185, allocations: 0.5046 MB / 1.103 GB, free: 9.984 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/1.185, allocations: 3.281 kB / 1.103 GB, free: 9.984 MB / 0.6823 GB Notification: Performance of matching and sorting (n=127) (initialization): time 0.005164/1.19, allocations: 1.316 MB / 1.104 GB, free: 9.816 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002799/1.191, allocations: 406.4 kB / 1.104 GB, free: 9.34 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.815e-05/1.191, allocations: 11.12 kB / 1.104 GB, free: 9.34 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.098e-05/1.191, allocations: 16.56 kB / 1.104 GB, free: 9.34 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002013/1.193, allocations: 260 kB / 1.105 GB, free: 9.336 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.466e-05/1.193, allocations: 23.69 kB / 1.105 GB, free: 9.332 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002886/1.196, allocations: 145 kB / 1.105 GB, free: 9.316 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002354/1.196, allocations: 56.33 kB / 1.105 GB, free: 9.312 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.535e-05/1.196, allocations: 3.906 kB / 1.105 GB, free: 9.312 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003972/1.2, allocations: 1.155 MB / 1.106 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.059e-05/1.2, allocations: 10.23 kB / 1.106 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.467e-05/1.2, allocations: 15.66 kB / 1.106 GB, free: 9.258 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001831/1.202, allocations: 257.7 kB / 1.106 GB, free: 9.254 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.361e-05/1.202, allocations: 21 kB / 1.106 GB, free: 9.254 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002559/1.205, allocations: 132 kB / 1.106 GB, free: 9.242 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001724/1.205, allocations: 51.59 kB / 1.107 GB, free: 9.242 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (123): * Single equations (assignments): 119 * 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.001562/1.206, allocations: 0.4892 MB / 1.107 GB, free: 9.043 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005904/1.207, allocations: 177.1 kB / 1.107 GB, free: 8.949 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004237/1.211, allocations: 1.107 MB / 1.108 GB, free: 8.855 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-05/1.211, allocations: 10.72 kB / 1.108 GB, free: 8.855 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.166e-05/1.211, allocations: 1.031 kB / 1.108 GB, free: 8.855 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002885/1.214, allocations: 0.8192 MB / 1.109 GB, free: 8.766 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.007738/1.222, allocations: 2.72 MB / 1.112 GB, free: 8.172 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.055e-05/1.222, allocations: 2.344 kB / 1.112 GB, free: 8.172 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001415/1.223, allocations: 160.5 kB / 1.112 GB, free: 8.168 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002572/1.224, allocations: 33.03 kB / 1.112 GB, free: 8.16 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.854e-05/1.224, allocations: 23.75 kB / 1.112 GB, free: 8.16 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00161/1.225, allocations: 1.376 MB / 1.113 GB, free: 22.89 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.6e-06/1.225, allocations: 8.469 kB / 1.113 GB, free: 22.89 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005916/1.231, allocations: 1.642 MB / 1.115 GB, free: 22.55 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001468/1.233, allocations: 369.2 kB / 1.115 GB, free: 22.35 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005377/1.233, allocations: 19.03 kB / 1.115 GB, free: 22.35 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002498/1.236, allocations: 120 kB / 1.115 GB, free: 22.34 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002991/1.236, allocations: 67.91 kB / 1.115 GB, free: 22.33 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001736/1.236, allocations: 34.39 kB / 1.115 GB, free: 22.33 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.003119/1.24, allocations: 1.084 MB / 1.117 GB, free: 22.19 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.092e-06/1.24, allocations: 1.688 kB / 1.117 GB, free: 22.19 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.006124/1.246, allocations: 0.9942 MB / 1.118 GB, free: 22.04 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (74): * Single equations (assignments): 66 * 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.002198/1.248, allocations: 0.5162 MB / 1.118 GB, free: 21.87 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.006428/1.254, allocations: 1.712 MB / 1.12 GB, free: 21.64 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 9.769e-06/1.255, allocations: 1.188 kB / 1.12 GB, free: 21.64 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.002209/1.257, allocations: 0.5764 MB / 1.12 GB, free: 21.52 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008052/1.265, allocations: 0.8695 MB / 1.121 GB, free: 21.45 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01015/1.275, allocations: 3.913 MB / 1.125 GB, free: 19.51 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002143/1.277, allocations: 1.409 MB / 1.126 GB, free: 18.76 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.00387/1.281, allocations: 429.1 kB / 1.127 GB, free: 18.64 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009654/1.282, allocations: 147.5 kB / 1.127 GB, free: 18.64 MB / 0.698 GB Notification: Performance of SimCode: time 1.774e-06/1.282, allocations: 4 kB / 1.127 GB, free: 18.63 MB / 0.698 GB Notification: Performance of Templates: time 0.1079/1.39, allocations: 33.89 MB / 1.16 GB, free: 13.96 MB / 0.7136 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)