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.01092/0.01092, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.002341/0.002342, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.398/1.398, allocations: 222.9 MB / 240.4 MB, free: 4.281 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7639/0.7639, allocations: 132.2 MB / 422.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 63.44 kB / 0.5814 GB, free: 0.8203 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1725/0.1737, allocations: 80.2 MB / 0.6597 GB, free: 13.44 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.07025/0.244, allocations: 66.99 MB / 0.7251 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02474/0.2688, allocations: 16.73 MB / 0.7415 GB, free: 9.43 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003281/0.2721, allocations: 95.44 kB / 0.7416 GB, free: 9.336 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003656/0.2758, allocations: 1.192 MB / 0.7427 GB, free: 8.137 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.007655/0.2834, allocations: 2.767 MB / 0.7454 GB, free: 5.359 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.006508/0.29, allocations: 2.359 MB / 0.7477 GB, free: 3.02 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008306/0.2983, allocations: 5.37 MB / 0.753 GB, free: 13.64 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003691/0.302, allocations: 1.907 MB / 0.7548 GB, free: 11.67 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005234/0.3072, allocations: 2.147 MB / 0.7569 GB, free: 9.527 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002717/0.31, allocations: 1.495 MB / 0.7584 GB, free: 8.027 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000636/0.3106, allocations: 188 kB / 0.7586 GB, free: 7.844 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00473/0.3154, allocations: 1.969 MB / 0.7605 GB, free: 5.871 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0009952/0.3164, allocations: 0.5528 MB / 0.761 GB, free: 5.316 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.002435/0.3188, allocations: 1.143 MB / 0.7621 GB, free: 4.168 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.007277/0.3261, allocations: 3.642 MB / 0.7657 GB, free: 0.5156 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.3261, allocations: 0 / 0.7657 GB, free: 0.5156 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.523e-06/0.3261, allocations: 0 / 0.7657 GB, free: 0.5156 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001219/0.3263, allocations: 0 / 0.7657 GB, free: 0.5156 MB / 0.5919 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.00609/0.3324, allocations: 2.683 MB / 0.7683 GB, free: 13.76 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.313e-05/0.3324, allocations: 8.031 kB / 0.7683 GB, free: 13.75 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001695/0.3341, allocations: 369.7 kB / 0.7687 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004002/0.3381, allocations: 1.819 MB / 0.7705 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.727e-05/0.3382, allocations: 98.44 kB / 0.7705 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002752/0.3385, allocations: 128 kB / 0.7707 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002874/0.3414, allocations: 1.432 MB / 0.7721 GB, free: 9.773 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.953e-05/0.3415, allocations: 3.938 kB / 0.7721 GB, free: 9.77 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000141/0.3416, allocations: 59.97 kB / 0.7721 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.212e-05/0.3417, allocations: 46.31 kB / 0.7722 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002587/0.3443, allocations: 1.094 MB / 0.7732 GB, free: 8.562 MB / 0.6075 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.009842/0.3541, allocations: 7.358 MB / 0.7804 GB, free: 0.6367 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002108/0.3562, allocations: 1.295 MB / 0.7817 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000981/0.3572, allocations: 451.5 kB / 0.7821 GB, free: 14.79 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005356/0.3626, allocations: 2.654 MB / 0.7847 GB, free: 11.9 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001027/0.3636, allocations: 478.6 kB / 0.7852 GB, free: 11.41 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=63): time 3.416e-06/0.3637, allocations: 3.938 kB / 0.7852 GB, free: 11.41 MB / 0.6231 GB Notification: Performance of matching and sorting (n=63): time 0.003067/0.3667, allocations: 1.198 MB / 0.7863 GB, free: 10.18 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.315e-05/0.3668, allocations: 111.4 kB / 0.7865 GB, free: 10.05 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002608/0.3694, allocations: 1.484 MB / 0.7879 GB, free: 8.566 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 9.378e-05/0.3696, allocations: 41.7 kB / 0.7879 GB, free: 8.52 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009261/0.3705, allocations: 0.8995 MB / 0.7888 GB, free: 7.609 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002489/0.3707, allocations: 224.8 kB / 0.789 GB, free: 7.387 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003405/0.3711, allocations: 202.4 kB / 0.7892 GB, free: 7.184 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001406/0.3712, allocations: 353.8 kB / 0.7896 GB, free: 6.832 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000855/0.3721, allocations: 372.6 kB / 0.7899 GB, free: 6.465 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001158/0.3733, allocations: 0.7281 MB / 0.7906 GB, free: 5.582 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002023/0.3753, allocations: 1.086 MB / 0.7917 GB, free: 4.352 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.307e-05/0.3753, allocations: 4 kB / 0.7917 GB, free: 4.348 MB / 0.6231 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002736/0.3781, allocations: 1.266 MB / 0.7929 GB, free: 3.066 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.893e-05/0.3781, allocations: 41.7 kB / 0.793 GB, free: 3.02 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.965e-05/0.3782, allocations: 8 kB / 0.793 GB, free: 3.012 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.879e-05/0.3782, allocations: 16 kB / 0.793 GB, free: 2.996 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009569/0.3792, allocations: 248.2 kB / 0.7932 GB, free: 2.754 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.368e-05/0.3792, allocations: 19.94 kB / 0.7933 GB, free: 2.734 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001146/0.3804, allocations: 139.6 kB / 0.7934 GB, free: 2.598 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/0.3805, allocations: 51.98 kB / 0.7934 GB, free: 2.547 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001361/0.3818, allocations: 0.6776 MB / 0.7941 GB, free: 1.867 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001097/0.383, allocations: 0.7047 MB / 0.7948 GB, free: 1 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001898/0.3849, allocations: 1.059 MB / 0.7958 GB, free: 15.8 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.056e-05/0.3849, allocations: 7.938 kB / 0.7958 GB, free: 15.79 MB / 0.6387 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.002643/0.3875, allocations: 1.243 MB / 0.797 GB, free: 14.54 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.889e-05/0.3876, allocations: 41.73 kB / 0.7971 GB, free: 14.49 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.448e-05/0.3876, allocations: 8 kB / 0.7971 GB, free: 14.48 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.3876, allocations: 16 kB / 0.7971 GB, free: 14.46 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009314/0.3886, allocations: 243.6 kB / 0.7973 GB, free: 14.23 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.273e-05/0.3886, allocations: 19.94 kB / 0.7974 GB, free: 14.21 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.3897, allocations: 116 kB / 0.7975 GB, free: 14.09 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001018/0.3898, allocations: 51.98 kB / 0.7975 GB, free: 14.04 MB / 0.6387 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.0002753/0.3901, allocations: 247.8 kB / 0.7977 GB, free: 13.79 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003396/0.3905, allocations: 169.9 kB / 0.7979 GB, free: 13.62 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002469/0.3929, allocations: 1.06 MB / 0.7989 GB, free: 12.55 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.771e-05/0.393, allocations: 12 kB / 0.799 GB, free: 12.54 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.285e-06/0.393, allocations: 0 / 0.799 GB, free: 12.54 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001713/0.3947, allocations: 0.7768 MB / 0.7997 GB, free: 11.75 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004827/0.3995, allocations: 2.685 MB / 0.8023 GB, free: 8.977 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.3996, allocations: 0 / 0.8023 GB, free: 8.977 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007412/0.4003, allocations: 156 kB / 0.8025 GB, free: 8.824 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001838/0.4005, allocations: 28.84 kB / 0.8025 GB, free: 8.793 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.1e-05/0.4006, allocations: 23.98 kB / 0.8025 GB, free: 8.77 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00114/0.4017, allocations: 1.421 MB / 0.8039 GB, free: 7.211 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.4018, allocations: 11.98 kB / 0.8039 GB, free: 7.199 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003108/0.4049, allocations: 1.566 MB / 0.8055 GB, free: 5.586 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006417/0.4055, allocations: 358.5 kB / 0.8058 GB, free: 5.215 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002759/0.4058, allocations: 16 kB / 0.8058 GB, free: 5.199 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009388/0.4068, allocations: 60.06 kB / 0.8059 GB, free: 5.141 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001348/0.4069, allocations: 60.48 kB / 0.8059 GB, free: 5.082 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.419e-05/0.407, allocations: 39.91 kB / 0.806 GB, free: 5.043 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001683/0.4087, allocations: 1.078 MB / 0.807 GB, free: 3.941 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.4e-07/0.4087, allocations: 0 / 0.807 GB, free: 3.941 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.002617/0.4113, allocations: 0.9315 MB / 0.8079 GB, free: 3.008 MB / 0.6387 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.001341/0.4127, allocations: 0.538 MB / 0.8085 GB, free: 2.477 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.003473/0.4162, allocations: 1.57 MB / 0.81 GB, free: 0.8867 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.4162, allocations: 384 / 0.81 GB, free: 0.8867 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001206/0.4174, allocations: 0.5451 MB / 0.8105 GB, free: 332 kB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.3361/0.7535, allocations: 0.8889 MB / 0.8114 GB, free: 145.2 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005649/0.7592, allocations: 3.108 MB / 0.8144 GB, free: 144 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001296/0.7605, allocations: 1.401 MB / 0.8158 GB, free: 143.3 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.00212/0.7627, allocations: 421.7 kB / 0.8162 GB, free: 143.3 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004786/0.7632, allocations: 147.2 kB / 0.8163 GB, free: 143.3 MB / 0.6387 GB Notification: Performance of SimCode: time 1.513e-06/0.7632, allocations: 0 / 0.8163 GB, free: 143.3 MB / 0.6387 GB Notification: Performance of Templates: time 0.05469/0.8179, allocations: 34.75 MB / 0.8503 GB, free: 122.6 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)