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.001368/0.001368, allocations: 110 kB / 16.41 MB, free: 6.449 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.001292/0.001292, allocations: 185.5 kB / 17.34 MB, free: 5.738 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.446/1.446, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.887/0.887, allocations: 135.2 MB / 426.4 MB, free: 4.078 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00239/0.00239, allocations: 66.81 kB / 0.5864 GB, free: 21.55 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1751/0.1775, allocations: 80.93 MB / 0.6654 GB, free: 5.68 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.07679/0.2543, allocations: 67.11 MB / 0.731 GB, free: 2.34 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02699/0.2813, allocations: 16.75 MB / 0.7473 GB, free: 1.547 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003321/0.2846, allocations: 95.5 kB / 0.7474 GB, free: 1.453 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003943/0.2886, allocations: 1.196 MB / 0.7486 GB, free: 256 kB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.4094/0.6979, allocations: 2.769 MB / 0.7513 GB, free: 12.22 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.006518/0.7044, allocations: 2.36 MB / 0.7536 GB, free: 12.21 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.01023/0.7147, allocations: 5.348 MB / 0.7588 GB, free: 12.2 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003681/0.7184, allocations: 1.577 MB / 0.7603 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007165/0.7255, allocations: 2.148 MB / 0.7624 GB, free: 12 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004083/0.7296, allocations: 1.49 MB / 0.7639 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0006303/0.7302, allocations: 190.2 kB / 0.7641 GB, free: 11.71 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005615/0.7358, allocations: 1.972 MB / 0.766 GB, free: 11.69 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0008192/0.7367, allocations: 0.5766 MB / 0.7666 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002135/0.7388, allocations: 1.138 MB / 0.7677 GB, free: 11.25 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.007721/0.7465, allocations: 3.664 MB / 0.7713 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.813e-06/0.7465, allocations: 4 kB / 0.7713 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.753e-06/0.7465, allocations: 0 / 0.7713 GB, free: 10.75 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 7.643e-05/0.7466, allocations: 1.781 kB / 0.7713 GB, free: 10.75 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.005646/0.7522, allocations: 2.75 MB / 0.7739 GB, free: 9.324 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.667e-05/0.7523, allocations: 14.64 kB / 0.774 GB, free: 9.32 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001706/0.754, allocations: 386.8 kB / 0.7743 GB, free: 9.184 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00375/0.7578, allocations: 1.834 MB / 0.7761 GB, free: 8.668 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.297e-05/0.7578, allocations: 105.4 kB / 0.7762 GB, free: 8.664 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002173/0.7581, allocations: 132.7 kB / 0.7763 GB, free: 8.66 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002758/0.7608, allocations: 1.424 MB / 0.7777 GB, free: 8.41 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.796e-05/0.7609, allocations: 1.562 kB / 0.7777 GB, free: 8.41 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000126/0.761, allocations: 56.78 kB / 0.7778 GB, free: 8.41 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-05/0.761, allocations: 54.45 kB / 0.7778 GB, free: 8.402 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002561/0.7636, allocations: 1.092 MB / 0.7789 GB, free: 8.379 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.009199/0.7728, allocations: 7.358 MB / 0.7861 GB, free: 4.176 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001907/0.7747, allocations: 1.25 MB / 0.7873 GB, free: 3.566 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009079/0.7756, allocations: 422.4 kB / 0.7877 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004533/0.7802, allocations: 2.63 MB / 0.7903 GB, free: 2.184 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001075/0.7812, allocations: 486.6 kB / 0.7908 GB, free: 2.098 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=63): time 2.114e-06/0.7812, allocations: 3.938 kB / 0.7908 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of matching and sorting (n=63): time 0.002873/0.7841, allocations: 1.216 MB / 0.7919 GB, free: 1.594 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.676e-05/0.7842, allocations: 113.5 kB / 0.7921 GB, free: 1.469 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001849/0.786, allocations: 1.477 MB / 0.7935 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 7.833e-05/0.7861, allocations: 43.17 kB / 0.7935 GB, free: 0.6602 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007276/0.7868, allocations: 0.9246 MB / 0.7944 GB, free: 15.85 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000269/0.7871, allocations: 226.2 kB / 0.7947 GB, free: 15.66 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003366/0.7874, allocations: 211.2 kB / 0.7949 GB, free: 15.53 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001776/0.7876, allocations: 342.7 kB / 0.7952 GB, free: 15.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008829/0.7885, allocations: 371 kB / 0.7955 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00122/0.7897, allocations: 0.7274 MB / 0.7963 GB, free: 14.37 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002059/0.7918, allocations: 1.086 MB / 0.7973 GB, free: 13.6 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.383e-06/0.7918, allocations: 2.562 kB / 0.7973 GB, free: 13.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.00293/0.7947, allocations: 1.284 MB / 0.7986 GB, free: 13 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.772e-05/0.7947, allocations: 36.52 kB / 0.7986 GB, free: 12.97 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.63e-05/0.7948, allocations: 8.875 kB / 0.7986 GB, free: 12.97 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.994e-05/0.7948, allocations: 16.72 kB / 0.7986 GB, free: 12.97 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009249/0.7957, allocations: 246.4 kB / 0.7989 GB, free: 12.93 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.52e-05/0.7957, allocations: 21.3 kB / 0.7989 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001398/0.7971, allocations: 137.6 kB / 0.799 GB, free: 12.84 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.7972, allocations: 54.45 kB / 0.7991 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001693/0.7989, allocations: 0.6817 MB / 0.7997 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001223/0.8001, allocations: 0.7117 MB / 0.8004 GB, free: 11.79 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002004/0.8022, allocations: 1.058 MB / 0.8015 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.431e-06/0.8022, allocations: 2.156 kB / 0.8015 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.002939/0.8051, allocations: 1.243 MB / 0.8027 GB, free: 10.45 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 4.555e-05/0.8051, allocations: 41.14 kB / 0.8027 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.513e-05/0.8052, allocations: 15.3 kB / 0.8027 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.8052, allocations: 21.22 kB / 0.8027 GB, free: 10.41 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008936/0.8061, allocations: 240 kB / 0.803 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.874e-05/0.8061, allocations: 21.73 kB / 0.803 GB, free: 10.36 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/0.8075, allocations: 117.9 kB / 0.8031 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.999e-05/0.8076, allocations: 49.55 kB / 0.8032 GB, free: 10.28 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.0004265/0.808, allocations: 251.5 kB / 0.8034 GB, free: 10.07 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003086/0.8083, allocations: 175.5 kB / 0.8036 GB, free: 9.969 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00264/0.811, allocations: 1.056 MB / 0.8046 GB, free: 9.395 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.73e-05/0.811, allocations: 13.22 kB / 0.8046 GB, free: 9.391 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.288e-06/0.811, allocations: 0 / 0.8046 GB, free: 9.391 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001807/0.8128, allocations: 0.7756 MB / 0.8054 GB, free: 8.984 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005429/0.8182, allocations: 2.695 MB / 0.808 GB, free: 7.148 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.8182, allocations: 6.641 kB / 0.808 GB, free: 7.145 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007321/0.819, allocations: 155.1 kB / 0.8082 GB, free: 7.109 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002143/0.8192, allocations: 28.64 kB / 0.8082 GB, free: 7.09 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-05/0.8192, allocations: 24.73 kB / 0.8082 GB, free: 7.078 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001317/0.8206, allocations: 1.429 MB / 0.8096 GB, free: 5.617 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.983e-06/0.8206, allocations: 6.562 kB / 0.8096 GB, free: 5.613 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003496/0.8241, allocations: 1.571 MB / 0.8111 GB, free: 4.711 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009662/0.825, allocations: 366.6 kB / 0.8115 GB, free: 4.402 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002192/0.8252, allocations: 24.75 kB / 0.8115 GB, free: 4.383 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000864/0.8261, allocations: 51.75 kB / 0.8116 GB, free: 4.359 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001488/0.8263, allocations: 56.64 kB / 0.8116 GB, free: 4.328 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.633e-05/0.8263, allocations: 39.33 kB / 0.8117 GB, free: 4.312 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00169/0.828, allocations: 1.067 MB / 0.8127 GB, free: 3.707 MB / 0.5919 GB Notification: Performance of sort global known variables: time 9e-08/0.828, allocations: 3.094 kB / 0.8127 GB, free: 3.707 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002872/0.8309, allocations: 0.9506 MB / 0.8136 GB, free: 3.297 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.001439/0.8323, allocations: 0.5397 MB / 0.8142 GB, free: 2.797 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003691/0.836, allocations: 1.494 MB / 0.8156 GB, free: 1.352 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.836, allocations: 1.438 kB / 0.8156 GB, free: 1.352 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.8372, allocations: 0.5159 MB / 0.8161 GB, free: 0.8438 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004114/0.8413, allocations: 0.9 MB / 0.817 GB, free: 15.96 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006059/0.8474, allocations: 3.246 MB / 0.8202 GB, free: 12.68 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001195/0.8486, allocations: 1.384 MB / 0.8215 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005467/0.8491, allocations: 150.8 kB / 0.8217 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of SimCode: time 1.433e-06/0.8491, allocations: 0 / 0.8217 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of Templates: time 0.06373/0.9129, allocations: 35.48 MB / 0.8563 GB, free: 7.961 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)