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.001281/0.001281, allocations: 103.6 kB / 16.4 MB, free: 6.426 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.001084/0.001084, allocations: 192.1 kB / 17.34 MB, free: 5.703 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.297/1.297, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7646/0.7646, allocations: 132.2 MB / 423.4 MB, free: 6.602 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00124/0.00124, allocations: 67.83 kB / 0.582 GB, free: 23.61 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.156, allocations: 80.22 MB / 0.6604 GB, free: 10.25 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06687/0.2229, allocations: 66.98 MB / 0.7258 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02375/0.2467, allocations: 16.74 MB / 0.7421 GB, free: 6.25 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003445/0.2501, allocations: 99.44 kB / 0.7422 GB, free: 6.152 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003917/0.2541, allocations: 1.169 MB / 0.7433 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.008141/0.2623, allocations: 2.654 MB / 0.7459 GB, free: 2.312 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3834/0.6457, allocations: 2.34 MB / 0.7482 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008515/0.6542, allocations: 5.348 MB / 0.7534 GB, free: 14.76 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0049/0.6592, allocations: 1.907 MB / 0.7553 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006306/0.6656, allocations: 2.135 MB / 0.7574 GB, free: 14.55 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003992/0.6696, allocations: 1.498 MB / 0.7589 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0007217/0.6703, allocations: 190.6 kB / 0.759 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005209/0.6755, allocations: 1.973 MB / 0.761 GB, free: 14.26 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001106/0.6767, allocations: 0.551 MB / 0.7615 GB, free: 14.18 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.003374/0.6801, allocations: 1.137 MB / 0.7626 GB, free: 13.85 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.008557/0.6886, allocations: 3.651 MB / 0.7662 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.062e-06/0.6887, allocations: 0 / 0.7662 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.927e-06/0.6887, allocations: 1.375 kB / 0.7662 GB, free: 13.46 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.593e-05/0.6888, allocations: 3.938 kB / 0.7662 GB, free: 13.46 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.006005/0.6948, allocations: 2.671 MB / 0.7688 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.6949, allocations: 10.06 kB / 0.7688 GB, free: 12.1 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00164/0.6965, allocations: 372.2 kB / 0.7692 GB, free: 11.97 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003766/0.7003, allocations: 1.819 MB / 0.7709 GB, free: 11.48 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.57e-05/0.7004, allocations: 97.03 kB / 0.771 GB, free: 11.47 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002421/0.7007, allocations: 135.2 kB / 0.7712 GB, free: 11.47 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002719/0.7034, allocations: 1.428 MB / 0.7726 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.263e-05/0.7035, allocations: 5.844 kB / 0.7726 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001246/0.7036, allocations: 51.47 kB / 0.7726 GB, free: 11.22 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.559e-05/0.7037, allocations: 47.59 kB / 0.7727 GB, free: 11.21 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002315/0.706, allocations: 1.092 MB / 0.7737 GB, free: 11.19 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.009108/0.7151, allocations: 7.355 MB / 0.7809 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001882/0.717, allocations: 1.291 MB / 0.7822 GB, free: 6.379 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008797/0.7179, allocations: 451.8 kB / 0.7826 GB, free: 6.367 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004467/0.7224, allocations: 2.632 MB / 0.7852 GB, free: 5.004 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009525/0.7234, allocations: 487.2 kB / 0.7856 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=63): time 2.555e-06/0.7234, allocations: 0 / 0.7856 GB, free: 4.918 MB / 0.5762 GB Notification: Performance of matching and sorting (n=63): time 0.002906/0.7263, allocations: 1.208 MB / 0.7868 GB, free: 4.668 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.933e-05/0.7264, allocations: 109.5 kB / 0.7869 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002097/0.7285, allocations: 1.479 MB / 0.7884 GB, free: 4.367 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001051/0.7286, allocations: 53.78 kB / 0.7884 GB, free: 4.332 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006811/0.7293, allocations: 0.8918 MB / 0.7893 GB, free: 4.008 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002102/0.7295, allocations: 224.1 kB / 0.7895 GB, free: 3.871 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002732/0.7298, allocations: 215 kB / 0.7897 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.328e-05/0.7298, allocations: 338.4 kB / 0.79 GB, free: 3.539 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007702/0.7306, allocations: 375.4 kB / 0.7904 GB, free: 3.527 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009075/0.7315, allocations: 0.7298 MB / 0.7911 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001639/0.7332, allocations: 1.085 MB / 0.7922 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.7332, allocations: 2.625 kB / 0.7922 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002492/0.7357, allocations: 1.273 MB / 0.7934 GB, free: 2.508 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.012e-05/0.7358, allocations: 34.86 kB / 0.7934 GB, free: 2.477 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.382e-05/0.7358, allocations: 13.58 kB / 0.7934 GB, free: 2.473 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.242e-05/0.7358, allocations: 21.94 kB / 0.7935 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009437/0.7368, allocations: 249.7 kB / 0.7937 GB, free: 2.465 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.633e-05/0.7368, allocations: 22.44 kB / 0.7937 GB, free: 2.465 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001436/0.7383, allocations: 133.7 kB / 0.7939 GB, free: 2.41 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.816e-05/0.7384, allocations: 50.78 kB / 0.7939 GB, free: 2.402 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001431/0.7398, allocations: 0.6818 MB / 0.7946 GB, free: 2.074 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0008621/0.7407, allocations: 0.7065 MB / 0.7953 GB, free: 1.508 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001587/0.7423, allocations: 1.06 MB / 0.7963 GB, free: 0.8203 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.47e-06/0.7423, allocations: 2.781 kB / 0.7963 GB, free: 0.8203 MB / 0.5762 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.002427/0.7447, allocations: 1.237 MB / 0.7975 GB, free: 388 kB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.217e-05/0.7448, allocations: 44.39 kB / 0.7975 GB, free: 348 kB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.7448, allocations: 12.56 kB / 0.7976 GB, free: 344 kB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.7448, allocations: 17.03 kB / 0.7976 GB, free: 344 kB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000877/0.7457, allocations: 242.8 kB / 0.7978 GB, free: 336 kB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.85e-05/0.7457, allocations: 24.67 kB / 0.7978 GB, free: 336 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.7471, allocations: 110.4 kB / 0.7979 GB, free: 284 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.495e-05/0.7472, allocations: 50.62 kB / 0.798 GB, free: 276 kB / 0.5762 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.0003069/0.7475, allocations: 248.3 kB / 0.7982 GB, free: 60 kB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003141/0.7478, allocations: 170.8 kB / 0.7984 GB, free: 15.98 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002392/0.7502, allocations: 1.059 MB / 0.7994 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-05/0.7503, allocations: 14.44 kB / 0.7994 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.7503, allocations: 2.719 kB / 0.7994 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001558/0.7518, allocations: 0.7718 MB / 0.8002 GB, free: 15.29 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004791/0.7566, allocations: 2.693 MB / 0.8028 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/0.7567, allocations: 6.75 kB / 0.8028 GB, free: 13.61 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007073/0.7574, allocations: 153.2 kB / 0.803 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001776/0.7576, allocations: 31.41 kB / 0.803 GB, free: 13.55 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.619e-05/0.7576, allocations: 21.7 kB / 0.803 GB, free: 13.54 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001136/0.7588, allocations: 1.432 MB / 0.8044 GB, free: 12.08 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.7588, allocations: 160 / 0.8044 GB, free: 12.08 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003151/0.762, allocations: 1.564 MB / 0.8059 GB, free: 11.19 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008245/0.7628, allocations: 361 kB / 0.8063 GB, free: 10.88 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002575/0.7631, allocations: 23.92 kB / 0.8063 GB, free: 10.87 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009004/0.764, allocations: 60.95 kB / 0.8064 GB, free: 10.84 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001301/0.7641, allocations: 61.86 kB / 0.8064 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.442e-05/0.7642, allocations: 38.03 kB / 0.8065 GB, free: 10.79 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00148/0.7657, allocations: 1.071 MB / 0.8075 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2e-07/0.7657, allocations: 0 / 0.8075 GB, free: 10.18 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002593/0.7683, allocations: 0.9357 MB / 0.8084 GB, free: 9.965 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.001263/0.7696, allocations: 0.5315 MB / 0.8089 GB, free: 9.723 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003153/0.7727, allocations: 1.565 MB / 0.8105 GB, free: 9.023 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.289e-06/0.7728, allocations: 2.375 kB / 0.8105 GB, free: 9.023 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.7738, allocations: 0.5414 MB / 0.811 GB, free: 8.504 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004199/0.7781, allocations: 0.8942 MB / 0.8119 GB, free: 7.648 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006239/0.7843, allocations: 3.189 MB / 0.815 GB, free: 4.434 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001244/0.7856, allocations: 1.388 MB / 0.8163 GB, free: 3.016 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000567/0.7862, allocations: 143.4 kB / 0.8165 GB, free: 2.875 MB / 0.5919 GB Notification: Performance of SimCode: time 1.062e-06/0.7862, allocations: 0 / 0.8165 GB, free: 2.875 MB / 0.5919 GB Notification: Performance of Templates: time 0.05092/0.8371, allocations: 35.6 MB / 0.8512 GB, free: 15.61 MB / 0.6387 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 -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)