Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.00106/0.00106, allocations: 110.7 kB / 16.37 MB, free: 6.004 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.001051/0.001051, allocations: 195.8 kB / 17.31 MB, free: 5.613 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.303/1.303, 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/package.mo): time 0.7803/0.7803, allocations: 132.2 MB / 423.4 MB, free: 6.598 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001246/0.001246, allocations: 67.89 kB / 0.5032 GB, free: 10.96 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3166/0.3179, allocations: 80.18 MB / 0.5815 GB, free: 27.57 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.05405/0.372, allocations: 66.99 MB / 0.6469 GB, free: 11.07 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02145/0.3935, allocations: 16.74 MB / 0.6633 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002297/0.3958, allocations: 99.5 kB / 0.6634 GB, free: 10.19 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002623/0.3985, allocations: 1.165 MB / 0.6645 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005501/0.404, allocations: 2.658 MB / 0.6671 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.004914/0.409, allocations: 2.353 MB / 0.6694 GB, free: 4.023 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00558/0.4145, allocations: 5.34 MB / 0.6746 GB, free: 14.66 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002171/0.4167, allocations: 1.911 MB / 0.6765 GB, free: 12.7 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00351/0.4202, allocations: 2.092 MB / 0.6785 GB, free: 10.61 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001576/0.4218, allocations: 1.489 MB / 0.68 GB, free: 9.117 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.0002517/0.4221, allocations: 192 kB / 0.6801 GB, free: 8.93 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00325/0.4254, allocations: 1.973 MB / 0.6821 GB, free: 6.953 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.000505/0.4259, allocations: 0.5528 MB / 0.6826 GB, free: 6.398 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001079/0.427, allocations: 1.139 MB / 0.6837 GB, free: 5.254 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.003974/0.4309, allocations: 3.634 MB / 0.6873 GB, free: 1.609 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.431, allocations: 4 kB / 0.6873 GB, free: 1.605 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.633e-06/0.431, allocations: 4 kB / 0.6873 GB, free: 1.602 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.807e-05/0.431, allocations: 0 / 0.6873 GB, free: 1.602 MB / 0.5137 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.004115/0.4351, allocations: 2.675 MB / 0.6899 GB, free: 14.85 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.4352, allocations: 8.031 kB / 0.6899 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001326/0.4365, allocations: 373.8 kB / 0.6903 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00317/0.4397, allocations: 1.823 MB / 0.692 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.078e-05/0.4398, allocations: 98.42 kB / 0.6921 GB, free: 12.5 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001802/0.44, allocations: 135.9 kB / 0.6923 GB, free: 12.37 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002326/0.4423, allocations: 1.424 MB / 0.6937 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.059e-05/0.4423, allocations: 4 kB / 0.6937 GB, free: 10.86 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001079/0.4425, allocations: 52 kB / 0.6937 GB, free: 10.8 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.567e-05/0.4425, allocations: 46.25 kB / 0.6938 GB, free: 10.76 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002236/0.4448, allocations: 1.094 MB / 0.6948 GB, free: 9.656 MB / 0.5294 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.008058/0.4528, allocations: 7.362 MB / 0.702 GB, free: 1.73 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001885/0.4547, allocations: 1.287 MB / 0.7033 GB, free: 336 kB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009405/0.4557, allocations: 449.3 kB / 0.7037 GB, free: 15.89 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00431/0.46, allocations: 2.638 MB / 0.7063 GB, free: 13.02 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009677/0.461, allocations: 486.5 kB / 0.7067 GB, free: 12.53 MB / 0.545 GB Notification: Performance of pre-optimization done (n=63): time 1.884e-06/0.461, allocations: 0 / 0.7067 GB, free: 12.53 MB / 0.545 GB Notification: Performance of matching and sorting (n=63): time 0.002668/0.4637, allocations: 1.206 MB / 0.7079 GB, free: 11.29 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.195e-05/0.4637, allocations: 111.4 kB / 0.708 GB, free: 11.16 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00167/0.4654, allocations: 1.484 MB / 0.7095 GB, free: 9.676 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 7.268e-05/0.4655, allocations: 45.7 kB / 0.7095 GB, free: 9.625 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006347/0.4661, allocations: 0.8879 MB / 0.7104 GB, free: 8.727 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001806/0.4663, allocations: 224.8 kB / 0.7106 GB, free: 8.504 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002867/0.4666, allocations: 214.3 kB / 0.7108 GB, free: 8.285 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.4667, allocations: 341.9 kB / 0.7111 GB, free: 7.945 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008316/0.4676, allocations: 376.6 kB / 0.7115 GB, free: 7.574 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001031/0.4686, allocations: 0.732 MB / 0.7122 GB, free: 6.68 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001796/0.4704, allocations: 1.09 MB / 0.7133 GB, free: 5.445 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.4704, allocations: 4 kB / 0.7133 GB, free: 5.441 MB / 0.545 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002379/0.4728, allocations: 1.266 MB / 0.7145 GB, free: 4.16 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.717e-05/0.4729, allocations: 33.7 kB / 0.7145 GB, free: 4.121 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.417e-05/0.4729, allocations: 12 kB / 0.7145 GB, free: 4.109 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.4729, allocations: 12.62 kB / 0.7146 GB, free: 4.098 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009229/0.4739, allocations: 251.6 kB / 0.7148 GB, free: 3.852 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.948e-05/0.4739, allocations: 19.94 kB / 0.7148 GB, free: 3.832 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009292/0.4748, allocations: 131.6 kB / 0.7149 GB, free: 3.703 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.979e-05/0.4749, allocations: 51.98 kB / 0.715 GB, free: 3.652 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001232/0.4762, allocations: 0.6821 MB / 0.7157 GB, free: 2.969 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001016/0.4772, allocations: 0.7125 MB / 0.7164 GB, free: 2.098 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00174/0.4789, allocations: 1.055 MB / 0.7174 GB, free: 0.8984 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.257e-06/0.479, allocations: 11.88 kB / 0.7174 GB, free: 0.8867 MB / 0.545 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.002312/0.4813, allocations: 1.235 MB / 0.7186 GB, free: 15.63 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.4813, allocations: 45.64 kB / 0.7186 GB, free: 15.58 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.749e-06/0.4813, allocations: 8 kB / 0.7187 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.4814, allocations: 16 kB / 0.7187 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008877/0.4822, allocations: 243.6 kB / 0.7189 GB, free: 15.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.992e-05/0.4823, allocations: 23.92 kB / 0.7189 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000905/0.4832, allocations: 111.9 kB / 0.719 GB, free: 15.19 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.042e-05/0.4833, allocations: 51.98 kB / 0.7191 GB, free: 15.14 MB / 0.5606 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.0002286/0.4835, allocations: 258.6 kB / 0.7193 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002188/0.4837, allocations: 165.9 kB / 0.7195 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002244/0.486, allocations: 1.054 MB / 0.7205 GB, free: 13.65 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.486, allocations: 11.98 kB / 0.7205 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.486, allocations: 0 / 0.7205 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001621/0.4877, allocations: 0.7769 MB / 0.7213 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004127/0.4918, allocations: 2.688 MB / 0.7239 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.4918, allocations: 0 / 0.7239 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007241/0.4925, allocations: 160 kB / 0.7241 GB, free: 9.914 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001461/0.4927, allocations: 28.84 kB / 0.7241 GB, free: 9.883 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.565e-05/0.4928, allocations: 19.98 kB / 0.7241 GB, free: 9.863 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009833/0.4938, allocations: 1.431 MB / 0.7255 GB, free: 8.293 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.4938, allocations: 4 kB / 0.7255 GB, free: 8.289 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002851/0.4966, allocations: 1.566 MB / 0.727 GB, free: 6.684 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005528/0.4972, allocations: 358.5 kB / 0.7274 GB, free: 6.312 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001856/0.4974, allocations: 20 kB / 0.7274 GB, free: 6.293 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008554/0.4982, allocations: 51.94 kB / 0.7274 GB, free: 6.242 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.4984, allocations: 60.42 kB / 0.7275 GB, free: 6.18 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.346e-05/0.4985, allocations: 39.97 kB / 0.7275 GB, free: 6.141 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001328/0.4998, allocations: 1.07 MB / 0.7286 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4998, allocations: 0 / 0.7286 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.002086/0.5019, allocations: 0.9392 MB / 0.7295 GB, free: 4.105 MB / 0.5606 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.00109/0.503, allocations: 0.5284 MB / 0.73 GB, free: 3.582 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002983/0.506, allocations: 1.569 MB / 0.7316 GB, free: 1.992 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.506, allocations: 8.422 kB / 0.7316 GB, free: 1.984 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001066/0.5071, allocations: 0.5567 MB / 0.7321 GB, free: 1.414 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003156/0.5103, allocations: 0.8992 MB / 0.733 GB, free: 0.5508 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004519/0.5148, allocations: 3.11 MB / 0.736 GB, free: 13.38 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009263/0.5157, allocations: 1.401 MB / 0.7374 GB, free: 11.94 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.00129/0.517, allocations: 413.2 kB / 0.7378 GB, free: 11.54 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000302/0.5173, allocations: 139.4 kB / 0.7379 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of SimCode: time 4.61e-07/0.5173, allocations: 0 / 0.7379 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of Templates: time 0.2916/0.809, allocations: 34.54 MB / 0.7716 GB, free: 146.3 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)