Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.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_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001052, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001098/0.001099, allocations: 198.3 kB / 16.79 MB, free: 6.809 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.367/1.367, allocations: 222.9 MB / 240.5 MB, free: 4.574 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.942/0.942, allocations: 135.1 MB / 425.7 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 63.81 kB / 0.5053 GB, free: 5.793 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.193/0.1942, allocations: 80.93 MB / 0.5843 GB, free: 5.027 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.4133/0.6075, allocations: 52.91 MB / 0.636 GB, free: 23.24 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0207/0.6283, allocations: 15.28 MB / 0.6509 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00383/0.6322, allocations: 83.78 kB / 0.651 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.003286/0.6355, allocations: 0.9559 MB / 0.6519 GB, free: 11.89 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.006489/0.642, allocations: 2.146 MB / 0.654 GB, free: 10.66 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005353/0.6474, allocations: 2.013 MB / 0.656 GB, free: 9.555 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.008025/0.6554, allocations: 6.003 MB / 0.6619 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002957/0.6584, allocations: 1.397 MB / 0.6632 GB, free: 6.711 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004858/0.6633, allocations: 1.667 MB / 0.6649 GB, free: 5.984 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003434/0.6667, allocations: 1.375 MB / 0.6662 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004179/0.6672, allocations: 87.97 kB / 0.6663 GB, free: 5.387 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004951/0.6721, allocations: 1.732 MB / 0.668 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007074/0.6729, allocations: 454.2 kB / 0.6684 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001745/0.6746, allocations: 0.9536 MB / 0.6693 GB, free: 4.039 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.005313/0.6799, allocations: 2.474 MB / 0.6718 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.68, allocations: 5.562 kB / 0.6718 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.453e-06/0.68, allocations: 0 / 0.6718 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.18e-05/0.68, allocations: 4 kB / 0.6718 GB, free: 3.223 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.005833/0.6859, allocations: 2.52 MB / 0.6742 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.19e-05/0.6859, allocations: 10.44 kB / 0.6742 GB, free: 1.59 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002442/0.6884, allocations: 456.6 kB / 0.6747 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003674/0.6921, allocations: 1.655 MB / 0.6763 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003659/0.6925, allocations: 146.7 kB / 0.6764 GB, free: 492 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001916/0.6927, allocations: 116.2 kB / 0.6765 GB, free: 456 kB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002979/0.6956, allocations: 1.353 MB / 0.6779 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.114e-05/0.6957, allocations: 1.281 kB / 0.6779 GB, free: 15.79 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001221/0.6958, allocations: 48.19 kB / 0.6779 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.322e-05/0.6959, allocations: 43.75 kB / 0.678 GB, free: 15.75 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002914/0.6988, allocations: 1.094 MB / 0.679 GB, free: 15.38 MB / 0.5137 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.01123/0.71, allocations: 6.956 MB / 0.6858 GB, free: 10.11 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002638/0.7127, allocations: 1.38 MB / 0.6872 GB, free: 9.199 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001017/0.7138, allocations: 429.4 kB / 0.6876 GB, free: 9.059 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006626/0.7204, allocations: 3.094 MB / 0.6906 GB, free: 6.594 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001279/0.7217, allocations: 450 kB / 0.691 GB, free: 6.43 MB / 0.5137 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008934/0.7226, allocations: 85.06 kB / 0.6911 GB, free: 6.383 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=61): time 4.368e-06/0.7226, allocations: 0 / 0.6911 GB, free: 6.383 MB / 0.5137 GB Notification: Performance of matching and sorting (n=61): time 0.003367/0.726, allocations: 1.221 MB / 0.6923 GB, free: 5.871 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.187e-05/0.7261, allocations: 63.62 kB / 0.6924 GB, free: 5.805 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002466/0.7285, allocations: 1.525 MB / 0.6938 GB, free: 5.23 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 9.792e-05/0.7287, allocations: 39.05 kB / 0.6939 GB, free: 5.191 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.00089/0.7296, allocations: 0.884 MB / 0.6947 GB, free: 4.492 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002379/0.7298, allocations: 216.8 kB / 0.695 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003479/0.7302, allocations: 206.7 kB / 0.6951 GB, free: 4.223 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001486/0.7303, allocations: 343.1 kB / 0.6955 GB, free: 3.902 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001046/0.7314, allocations: 384.8 kB / 0.6958 GB, free: 3.777 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/0.7327, allocations: 0.7565 MB / 0.6966 GB, free: 3.094 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002257/0.7349, allocations: 1.13 MB / 0.6977 GB, free: 2.234 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.345e-05/0.735, allocations: 7.344 kB / 0.6977 GB, free: 2.234 MB / 0.5137 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.003287/0.7382, allocations: 1.297 MB / 0.699 GB, free: 1.574 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.219e-05/0.7383, allocations: 40.23 kB / 0.699 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.331e-05/0.7383, allocations: 11.31 kB / 0.699 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.874e-05/0.7384, allocations: 15.47 kB / 0.699 GB, free: 1.539 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/0.7395, allocations: 262.6 kB / 0.6993 GB, free: 1.469 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.298e-05/0.7395, allocations: 24.75 kB / 0.6993 GB, free: 1.461 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001691/0.7412, allocations: 115.8 kB / 0.6994 GB, free: 1.41 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/0.7413, allocations: 57.25 kB / 0.6995 GB, free: 1.395 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00175/0.7431, allocations: 0.6734 MB / 0.7001 GB, free: 1.008 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001219/0.7443, allocations: 0.7379 MB / 0.7008 GB, free: 340 kB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002172/0.7465, allocations: 1.1 MB / 0.7019 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.457e-06/0.7465, allocations: 4.062 kB / 0.7019 GB, free: 15.48 MB / 0.5294 GB Notification: Performance of matching and sorting (n=123) (initialization_lambda0): time 0.002947/0.7495, allocations: 1.277 MB / 0.7032 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.366e-05/0.7495, allocations: 39.7 kB / 0.7032 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.7495, allocations: 10.84 kB / 0.7032 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.7496, allocations: 16.31 kB / 0.7032 GB, free: 14.79 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009916/0.7506, allocations: 258.1 kB / 0.7035 GB, free: 14.73 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.391e-05/0.7506, allocations: 27.95 kB / 0.7035 GB, free: 14.71 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/0.7522, allocations: 120 kB / 0.7036 GB, free: 14.66 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001154/0.7524, allocations: 52.36 kB / 0.7037 GB, free: 14.65 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (121): * Single equations (assignments): 119 * 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.000405/0.7528, allocations: 250.6 kB / 0.7039 GB, free: 14.42 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002832/0.7531, allocations: 170.2 kB / 0.7041 GB, free: 14.32 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002826/0.7559, allocations: 1.124 MB / 0.7052 GB, free: 13.72 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.106e-05/0.7559, allocations: 14.86 kB / 0.7052 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.7559, allocations: 1.375 kB / 0.7052 GB, free: 13.71 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001993/0.7579, allocations: 0.9629 MB / 0.7061 GB, free: 13.1 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 postOpt removeSimpleEquations (simulation): time 0.005049/0.763, allocations: 2.414 MB / 0.7085 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.763, allocations: 3.938 kB / 0.7085 GB, free: 11.51 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007226/0.7637, allocations: 147.3 kB / 0.7086 GB, free: 11.47 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001785/0.7639, allocations: 27.75 kB / 0.7086 GB, free: 11.45 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.06e-05/0.764, allocations: 27.52 kB / 0.7087 GB, free: 11.44 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009985/0.765, allocations: 1.316 MB / 0.71 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.765, allocations: 2.469 kB / 0.71 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003321/0.7684, allocations: 1.562 MB / 0.7115 GB, free: 9.203 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008764/0.7692, allocations: 328.8 kB / 0.7118 GB, free: 8.926 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002567/0.7695, allocations: 20.75 kB / 0.7118 GB, free: 8.91 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009961/0.7705, allocations: 113.3 kB / 0.7119 GB, free: 8.809 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001359/0.7707, allocations: 56.42 kB / 0.712 GB, free: 8.754 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.079e-05/0.7707, allocations: 27.98 kB / 0.712 GB, free: 8.727 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.001574/0.7723, allocations: 1.077 MB / 0.7131 GB, free: 7.625 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.81e-07/0.7723, allocations: 0 / 0.7131 GB, free: 7.625 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.002887/0.7752, allocations: 0.8576 MB / 0.7139 GB, free: 6.766 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.outCon.T) * 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 (71): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.001896/0.7771, allocations: 0.7186 MB / 0.7146 GB, free: 6.207 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.00363/0.7808, allocations: 1.597 MB / 0.7162 GB, free: 4.594 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.7808, allocations: 4 kB / 0.7162 GB, free: 4.59 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001203/0.782, allocations: 0.5351 MB / 0.7167 GB, free: 4.043 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003766/0.7858, allocations: 0.7309 MB / 0.7174 GB, free: 3.32 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006025/0.7918, allocations: 3.753 MB / 0.7211 GB, free: 15.52 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008684/0.7927, allocations: 1.359 MB / 0.7224 GB, free: 14.14 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005204/0.7932, allocations: 147.4 kB / 0.7225 GB, free: 13.99 MB / 0.545 GB Notification: Performance of SimCode: time 1.292e-06/0.7932, allocations: 0 / 0.7225 GB, free: 13.99 MB / 0.545 GB Notification: Performance of Templates: time 0.04816/0.8414, allocations: 32.95 MB / 0.7547 GB, free: 13.27 MB / 0.5762 GB make -j1 -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)