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.001143/0.001143, allocations: 106.7 kB / 16.41 MB, free: 6.508 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.001081/0.001081, allocations: 187 kB / 17.34 MB, free: 5.742 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.325/1.325, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7675/0.7675, allocations: 132.2 MB / 423.4 MB, free: 6.605 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001231/0.001231, allocations: 63.48 kB / 0.582 GB, free: 23.82 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1418/0.1431, allocations: 80.21 MB / 0.6604 GB, free: 10.25 MB / 0.4981 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Blocks/Math.mo:543:5-544:48:writable] Warning: Parameter mov.gaiSpe.k has no value, and is fixed during initialization (fixed=true), using available start value (start=1) as default value. Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06903/0.2121, allocations: 66.98 MB / 0.7258 GB, free: 7.035 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02511/0.2373, allocations: 16.74 MB / 0.7421 GB, free: 6.246 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003997/0.2413, allocations: 91.5 kB / 0.7422 GB, free: 6.156 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.004128/0.2455, allocations: 1.173 MB / 0.7434 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.008706/0.2543, allocations: 2.65 MB / 0.7459 GB, free: 2.316 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.3897/0.644, allocations: 2.344 MB / 0.7482 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008707/0.6527, allocations: 5.35 MB / 0.7535 GB, free: 14.71 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003799/0.6566, allocations: 1.91 MB / 0.7553 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006548/0.6632, allocations: 2.141 MB / 0.7574 GB, free: 14.49 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003953/0.6671, allocations: 1.49 MB / 0.7589 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0006572/0.6678, allocations: 189.5 kB / 0.759 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005399/0.6732, allocations: 1.974 MB / 0.761 GB, free: 14.21 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001092/0.6743, allocations: 0.5523 MB / 0.7615 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002339/0.6767, allocations: 1.141 MB / 0.7626 GB, free: 13.79 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.008209/0.6849, allocations: 3.639 MB / 0.7662 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.64e-06/0.685, allocations: 0.9688 kB / 0.7662 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.864e-06/0.685, allocations: 3.656 kB / 0.7662 GB, free: 13.41 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001025/0.6851, allocations: 0 / 0.7662 GB, free: 13.41 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.006589/0.6917, allocations: 2.678 MB / 0.7688 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.333e-05/0.6917, allocations: 9.312 kB / 0.7688 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001791/0.6935, allocations: 377.9 kB / 0.7692 GB, free: 11.92 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004086/0.6976, allocations: 1.807 MB / 0.7709 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.691e-05/0.6978, allocations: 103.5 kB / 0.771 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002755/0.698, allocations: 136.2 kB / 0.7712 GB, free: 11.42 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002967/0.701, allocations: 1.43 MB / 0.7726 GB, free: 11.17 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.613e-05/0.7011, allocations: 1.031 kB / 0.7726 GB, free: 11.17 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001311/0.7012, allocations: 49.28 kB / 0.7726 GB, free: 11.17 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-05/0.7013, allocations: 50.61 kB / 0.7727 GB, free: 11.16 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002494/0.7038, allocations: 1.094 MB / 0.7737 GB, free: 11.14 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.009518/0.7133, allocations: 7.354 MB / 0.7809 GB, free: 6.934 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001978/0.7153, allocations: 1.3 MB / 0.7822 GB, free: 6.324 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009101/0.7162, allocations: 446.1 kB / 0.7826 GB, free: 6.312 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004544/0.7208, allocations: 2.632 MB / 0.7852 GB, free: 4.949 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001022/0.7219, allocations: 493.2 kB / 0.7856 GB, free: 4.863 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=63): time 2.214e-06/0.7219, allocations: 0 / 0.7856 GB, free: 4.863 MB / 0.5762 GB Notification: Performance of matching and sorting (n=63): time 0.003194/0.7251, allocations: 1.2 MB / 0.7868 GB, free: 4.613 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.771e-05/0.7251, allocations: 115.5 kB / 0.7869 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002744/0.7279, allocations: 1.487 MB / 0.7884 GB, free: 4.309 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0001279/0.728, allocations: 43.36 kB / 0.7884 GB, free: 4.277 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006964/0.7287, allocations: 0.8944 MB / 0.7893 GB, free: 3.953 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002216/0.729, allocations: 223 kB / 0.7895 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002932/0.7293, allocations: 206.6 kB / 0.7897 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.971e-05/0.7293, allocations: 342.8 kB / 0.79 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008803/0.7302, allocations: 375.1 kB / 0.7904 GB, free: 3.473 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009914/0.7312, allocations: 0.732 MB / 0.7911 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001793/0.733, allocations: 1.083 MB / 0.7922 GB, free: 2.621 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.013e-05/0.7331, allocations: 3.875 kB / 0.7922 GB, free: 2.621 MB / 0.5762 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002689/0.7358, allocations: 1.273 MB / 0.7934 GB, free: 2.453 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 5.003e-05/0.7358, allocations: 37.89 kB / 0.7934 GB, free: 2.422 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.437e-05/0.7358, allocations: 10.3 kB / 0.7934 GB, free: 2.422 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.987e-05/0.7359, allocations: 15.88 kB / 0.7935 GB, free: 2.422 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009375/0.7368, allocations: 251.6 kB / 0.7937 GB, free: 2.414 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.607e-05/0.7369, allocations: 23.58 kB / 0.7937 GB, free: 2.414 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001408/0.7383, allocations: 131.6 kB / 0.7939 GB, free: 2.359 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/0.7384, allocations: 52.8 kB / 0.7939 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001407/0.7398, allocations: 0.6834 MB / 0.7946 GB, free: 2.023 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0009693/0.7408, allocations: 0.7093 MB / 0.7953 GB, free: 1.453 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001717/0.7425, allocations: 1.061 MB / 0.7963 GB, free: 0.7695 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.334e-06/0.7426, allocations: 5.438 kB / 0.7963 GB, free: 0.7695 MB / 0.5762 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.00247/0.745, allocations: 1.238 MB / 0.7975 GB, free: 332 kB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.917e-05/0.7451, allocations: 45.67 kB / 0.7976 GB, free: 292 kB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.7451, allocations: 8.844 kB / 0.7976 GB, free: 292 kB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.7451, allocations: 21.31 kB / 0.7976 GB, free: 292 kB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008687/0.746, allocations: 241.7 kB / 0.7978 GB, free: 284 kB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.047e-05/0.746, allocations: 22.48 kB / 0.7978 GB, free: 284 kB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001339/0.7474, allocations: 115.8 kB / 0.7979 GB, free: 232 kB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.669e-05/0.7475, allocations: 50.03 kB / 0.798 GB, free: 224 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.0003035/0.7478, allocations: 247.1 kB / 0.7982 GB, free: 4 kB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000481/0.7483, allocations: 172.3 kB / 0.7984 GB, free: 15.92 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002562/0.7508, allocations: 1.051 MB / 0.7994 GB, free: 15.54 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.172e-05/0.7509, allocations: 14.77 kB / 0.7994 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.658e-06/0.7509, allocations: 2.906 kB / 0.7994 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001668/0.7526, allocations: 0.7718 MB / 0.8002 GB, free: 15.23 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005217/0.7578, allocations: 2.695 MB / 0.8028 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.267e-06/0.7578, allocations: 7.281 kB / 0.8028 GB, free: 13.53 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007422/0.7586, allocations: 156.2 kB / 0.803 GB, free: 13.49 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001827/0.7588, allocations: 28.34 kB / 0.803 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.594e-05/0.7588, allocations: 21.95 kB / 0.803 GB, free: 13.46 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001166/0.76, allocations: 1.422 MB / 0.8044 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.76, allocations: 11.62 kB / 0.8044 GB, free: 12.01 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003262/0.7633, allocations: 1.564 MB / 0.806 GB, free: 11.11 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008979/0.7642, allocations: 355.2 kB / 0.8063 GB, free: 10.81 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004629/0.7647, allocations: 20.41 kB / 0.8063 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001109/0.7658, allocations: 57.84 kB / 0.8064 GB, free: 10.77 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001428/0.766, allocations: 69.73 kB / 0.8064 GB, free: 10.73 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.16e-05/0.766, allocations: 35.09 kB / 0.8065 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001734/0.7678, allocations: 1.067 MB / 0.8075 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.8e-07/0.7678, allocations: 0 / 0.8075 GB, free: 10.11 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.003307/0.7711, allocations: 0.9364 MB / 0.8084 GB, free: 9.902 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.001706/0.7728, allocations: 0.5334 MB / 0.8089 GB, free: 9.652 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003471/0.7763, allocations: 1.568 MB / 0.8105 GB, free: 8.953 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.841e-06/0.7763, allocations: 384 / 0.8105 GB, free: 8.953 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001204/0.7775, allocations: 0.5464 MB / 0.811 GB, free: 8.48 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004638/0.7822, allocations: 0.8967 MB / 0.8119 GB, free: 7.621 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006166/0.7884, allocations: 3.181 MB / 0.815 GB, free: 4.41 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001068/0.7895, allocations: 1.387 MB / 0.8163 GB, free: 2.996 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005624/0.7901, allocations: 151.4 kB / 0.8165 GB, free: 2.848 MB / 0.5919 GB Notification: Performance of SimCode: time 5.62e-07/0.7901, allocations: 0 / 0.8165 GB, free: 2.848 MB / 0.5919 GB Notification: Performance of Templates: time 0.05239/0.8425, allocations: 35.32 MB / 0.851 GB, free: 15.87 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)