Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.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/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001319/0.00132, allocations: 109 kB / 16.41 MB, free: 6.496 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.001312/0.001312, allocations: 191 kB / 17.34 MB, free: 5.766 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.427/1.427, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8256/0.8256, allocations: 135.1 MB / 426.3 MB, free: 4.129 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 62.55 kB / 0.5863 GB, free: 21.73 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1938/0.1951, allocations: 80.92 MB / 0.6653 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06873/0.2639, allocations: 66.98 MB / 0.7307 GB, free: 2.707 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02658/0.2905, allocations: 16.73 MB / 0.7471 GB, free: 1.93 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004791/0.2954, allocations: 91.5 kB / 0.7472 GB, free: 1.84 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.004454/0.2999, allocations: 1.173 MB / 0.7483 GB, free: 0.6602 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.537/0.837, allocations: 2.643 MB / 0.7509 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.007152/0.8442, allocations: 2.345 MB / 0.7532 GB, free: 12.46 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0103/0.8545, allocations: 5.356 MB / 0.7584 GB, free: 12.45 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004641/0.8592, allocations: 1.905 MB / 0.7603 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007915/0.8671, allocations: 2.149 MB / 0.7624 GB, free: 12.15 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005095/0.8722, allocations: 1.492 MB / 0.7638 GB, free: 11.87 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.001027/0.8733, allocations: 193.3 kB / 0.764 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007471/0.8808, allocations: 1.971 MB / 0.7659 GB, free: 11.86 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001405/0.8822, allocations: 0.5525 MB / 0.7665 GB, free: 11.78 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.003458/0.8857, allocations: 1.139 MB / 0.7676 GB, free: 11.45 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.009515/0.8952, allocations: 3.643 MB / 0.7711 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 7.213e-06/0.8953, allocations: 0 / 0.7711 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.804e-06/0.8953, allocations: 5.406 kB / 0.7711 GB, free: 10.96 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.518e-05/0.8954, allocations: 0 / 0.7711 GB, free: 10.96 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.006612/0.902, allocations: 2.666 MB / 0.7737 GB, free: 9.602 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.902, allocations: 14.58 kB / 0.7738 GB, free: 9.598 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001894/0.9039, allocations: 377.9 kB / 0.7741 GB, free: 9.469 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004382/0.9083, allocations: 1.825 MB / 0.7759 GB, free: 8.965 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.9085, allocations: 103.2 kB / 0.776 GB, free: 8.961 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002727/0.9088, allocations: 132.8 kB / 0.7761 GB, free: 8.957 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003034/0.9118, allocations: 1.424 MB / 0.7775 GB, free: 8.711 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.883e-05/0.9119, allocations: 8.312 kB / 0.7775 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001397/0.912, allocations: 54.47 kB / 0.7776 GB, free: 8.707 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.147e-05/0.9121, allocations: 46.16 kB / 0.7776 GB, free: 8.703 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002617/0.9147, allocations: 1.092 MB / 0.7787 GB, free: 8.68 MB / 0.5762 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.0105/0.9252, allocations: 7.36 MB / 0.7859 GB, free: 4.48 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002026/0.9273, allocations: 1.282 MB / 0.7871 GB, free: 3.883 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009298/0.9282, allocations: 454.3 kB / 0.7876 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005001/0.9332, allocations: 2.647 MB / 0.7901 GB, free: 2.488 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001043/0.9343, allocations: 484.3 kB / 0.7906 GB, free: 2.398 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=63): time 2.735e-06/0.9343, allocations: 0 / 0.7906 GB, free: 2.398 MB / 0.5762 GB Notification: Performance of matching and sorting (n=63): time 0.003045/0.9374, allocations: 1.206 MB / 0.7918 GB, free: 2.016 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.47e-05/0.9374, allocations: 114.8 kB / 0.7919 GB, free: 1.891 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002131/0.9396, allocations: 1.481 MB / 0.7933 GB, free: 1.215 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001102/0.9397, allocations: 41.86 kB / 0.7934 GB, free: 1.172 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007151/0.9404, allocations: 0.8929 MB / 0.7943 GB, free: 400 kB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002265/0.9407, allocations: 230 kB / 0.7945 GB, free: 200 kB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003046/0.941, allocations: 206.8 kB / 0.7947 GB, free: 76 kB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001788/0.9412, allocations: 344.9 kB / 0.795 GB, free: 15.74 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009155/0.9421, allocations: 375 kB / 0.7954 GB, free: 15.56 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0012/0.9433, allocations: 0.7295 MB / 0.7961 GB, free: 14.91 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002099/0.9454, allocations: 1.089 MB / 0.7971 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.875e-06/0.9454, allocations: 2.625 kB / 0.7971 GB, free: 14.14 MB / 0.5919 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.00312/0.9485, allocations: 1.266 MB / 0.7984 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 5.159e-05/0.9486, allocations: 36.98 kB / 0.7984 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.896e-05/0.9486, allocations: 10.41 kB / 0.7984 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.93e-05/0.9487, allocations: 14.06 kB / 0.7984 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001101/0.9498, allocations: 252.9 kB / 0.7987 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.254e-05/0.9498, allocations: 18.91 kB / 0.7987 GB, free: 13.47 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001614/0.9514, allocations: 136.6 kB / 0.7988 GB, free: 13.39 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000154/0.9516, allocations: 52.86 kB / 0.7989 GB, free: 13.38 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001658/0.9533, allocations: 0.6803 MB / 0.7995 GB, free: 12.98 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001562/0.9549, allocations: 0.71 MB / 0.8002 GB, free: 12.35 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002853/0.9577, allocations: 1.057 MB / 0.8013 GB, free: 11.58 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.045e-05/0.9578, allocations: 6.188 kB / 0.8013 GB, free: 11.58 MB / 0.5919 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.004251/0.962, allocations: 1.234 MB / 0.8025 GB, free: 11.01 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.83e-05/0.9621, allocations: 48.55 kB / 0.8025 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/0.9621, allocations: 11.28 kB / 0.8025 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.41e-05/0.9622, allocations: 13.5 kB / 0.8025 GB, free: 10.97 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001367/0.9636, allocations: 242.6 kB / 0.8028 GB, free: 10.93 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.561e-05/0.9636, allocations: 24.2 kB / 0.8028 GB, free: 10.92 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00226/0.9659, allocations: 114.1 kB / 0.8029 GB, free: 10.86 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001416/0.966, allocations: 46.61 kB / 0.8029 GB, free: 10.85 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * 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 (120): * Single equations (assignments): 118 * Array equations: 1 * Algorithm blocks: 1 * 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.0005059/0.9666, allocations: 251.5 kB / 0.8032 GB, free: 10.63 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005584/0.9671, allocations: 167.8 kB / 0.8033 GB, free: 10.54 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003784/0.9709, allocations: 1.062 MB / 0.8044 GB, free: 9.965 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.924e-05/0.971, allocations: 11.2 kB / 0.8044 GB, free: 9.961 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.299e-05/0.971, allocations: 2.156 kB / 0.8044 GB, free: 9.961 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002462/0.9735, allocations: 0.7774 MB / 0.8052 GB, free: 9.555 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008385/0.9819, allocations: 2.69 MB / 0.8078 GB, free: 7.723 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.627e-05/0.9819, allocations: 6.375 kB / 0.8078 GB, free: 7.719 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001414/0.9834, allocations: 157.8 kB / 0.8079 GB, free: 7.684 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002828/0.9837, allocations: 29.25 kB / 0.808 GB, free: 7.664 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001044/0.9838, allocations: 21.64 kB / 0.808 GB, free: 7.652 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001895/0.9857, allocations: 1.423 MB / 0.8094 GB, free: 6.199 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.9857, allocations: 0 / 0.8094 GB, free: 6.199 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00645/0.9922, allocations: 1.57 MB / 0.8109 GB, free: 5.297 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001882/0.9941, allocations: 358.9 kB / 0.8113 GB, free: 4.992 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008642/0.995, allocations: 21.28 kB / 0.8113 GB, free: 4.98 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002225/0.9973, allocations: 58.64 kB / 0.8113 GB, free: 4.949 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002287/0.9975, allocations: 58.11 kB / 0.8114 GB, free: 4.918 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001762/0.9977, allocations: 39.81 kB / 0.8114 GB, free: 4.902 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.003678/1.001, allocations: 1.074 MB / 0.8125 GB, free: 4.293 MB / 0.5919 GB Notification: Performance of sort global known variables: time 4.9e-07/1.001, allocations: 0 / 0.8125 GB, free: 4.293 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.006062/1.008, allocations: 0.9308 MB / 0.8134 GB, free: 3.707 MB / 0.5919 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.s[1],mov.filter.s[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 (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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002728/1.01, allocations: 0.5408 MB / 0.8139 GB, free: 3.203 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.006743/1.017, allocations: 1.563 MB / 0.8154 GB, free: 1.688 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 8.426e-06/1.017, allocations: 0 / 0.8154 GB, free: 1.688 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.002275/1.019, allocations: 0.5389 MB / 0.816 GB, free: 1.156 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008784/1.028, allocations: 0.8992 MB / 0.8168 GB, free: 276 kB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01158/1.04, allocations: 3.186 MB / 0.82 GB, free: 13.06 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002269/1.042, allocations: 1.388 MB / 0.8213 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001086/1.043, allocations: 143.4 kB / 0.8214 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of SimCode: time 1.784e-06/1.043, allocations: 0 / 0.8214 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of Templates: time 0.06486/1.108, allocations: 35.62 MB / 0.8562 GB, free: 8.211 MB / 0.6387 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)