Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_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.001297/0.001297, allocations: 107.8 kB / 16.36 MB, free: 6.285 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.001328/0.001328, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.342/1.342, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8054/0.8054, allocations: 132.2 MB / 423.3 MB, free: 6.625 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 63.91 kB / 0.5032 GB, free: 10.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3998/0.4011, allocations: 80.19 MB / 0.5815 GB, free: 27.57 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.04523/0.4464, allocations: 53.26 MB / 0.6335 GB, free: 8.855 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.02394/0.4704, allocations: 15.19 MB / 0.6483 GB, free: 9.621 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003982/0.4744, allocations: 91.44 kB / 0.6484 GB, free: 9.531 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004191/0.4786, allocations: 1.114 MB / 0.6495 GB, free: 8.414 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008212/0.4868, allocations: 2.337 MB / 0.6518 GB, free: 6.07 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006742/0.4936, allocations: 2.265 MB / 0.654 GB, free: 3.824 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.007648/0.5013, allocations: 4.633 MB / 0.6585 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002985/0.5043, allocations: 1.619 MB / 0.6601 GB, free: 13.53 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00501/0.5093, allocations: 1.908 MB / 0.662 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002764/0.5121, allocations: 1.357 MB / 0.6633 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004401/0.5126, allocations: 168 kB / 0.6635 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004351/0.5169, allocations: 1.837 MB / 0.6652 GB, free: 8.254 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007307/0.5177, allocations: 0.5293 MB / 0.6658 GB, free: 7.723 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.001518/0.5192, allocations: 1.034 MB / 0.6668 GB, free: 6.684 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.005785/0.525, allocations: 3.32 MB / 0.67 GB, free: 3.355 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.525, allocations: 4 kB / 0.67 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.984e-06/0.5251, allocations: 0 / 0.67 GB, free: 3.352 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.553e-05/0.5251, allocations: 0 / 0.67 GB, free: 3.352 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.004694/0.5298, allocations: 2.529 MB / 0.6725 GB, free: 0.7539 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.5299, allocations: 8.031 kB / 0.6725 GB, free: 0.7461 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002113/0.532, allocations: 457.5 kB / 0.6729 GB, free: 304 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003554/0.5355, allocations: 1.671 MB / 0.6746 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.359e-05/0.5357, allocations: 90.2 kB / 0.6747 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000198/0.5359, allocations: 116 kB / 0.6748 GB, free: 14.37 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002656/0.5385, allocations: 1.344 MB / 0.6761 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.221e-05/0.5386, allocations: 8 kB / 0.6761 GB, free: 12.93 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.5387, allocations: 44 kB / 0.6761 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.255e-05/0.5387, allocations: 49.94 kB / 0.6762 GB, free: 12.83 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002494/0.5412, allocations: 1.077 MB / 0.6772 GB, free: 11.75 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.009966/0.5512, allocations: 7.076 MB / 0.6841 GB, free: 4.117 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002276/0.5535, allocations: 1.359 MB / 0.6855 GB, free: 2.645 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008919/0.5544, allocations: 418.8 kB / 0.6859 GB, free: 2.234 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005141/0.5596, allocations: 3.083 MB / 0.6889 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000994/0.5606, allocations: 434.9 kB / 0.6893 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=60): time 2.484e-06/0.5606, allocations: 0 / 0.6893 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of matching and sorting (n=60): time 0.003004/0.5636, allocations: 1.209 MB / 0.6905 GB, free: 13.14 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.5637, allocations: 59.97 kB / 0.6905 GB, free: 13.07 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001999/0.5657, allocations: 1.537 MB / 0.692 GB, free: 11.53 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.106e-05/0.5658, allocations: 41.7 kB / 0.6921 GB, free: 11.48 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007025/0.5665, allocations: 0.8801 MB / 0.6929 GB, free: 10.59 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001956/0.5667, allocations: 216.9 kB / 0.6931 GB, free: 10.38 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003115/0.567, allocations: 210.3 kB / 0.6933 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.5671, allocations: 341.9 kB / 0.6937 GB, free: 9.82 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008773/0.568, allocations: 380.6 kB / 0.694 GB, free: 9.445 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001121/0.5691, allocations: 0.7514 MB / 0.6948 GB, free: 8.523 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001957/0.5711, allocations: 1.113 MB / 0.6958 GB, free: 7.254 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.296e-06/0.5711, allocations: 4 kB / 0.6958 GB, free: 7.25 MB / 0.5294 GB Notification: Performance of matching and sorting (n=122) (initialization): time 0.002687/0.5738, allocations: 1.29 MB / 0.6971 GB, free: 5.945 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 4.512e-05/0.5739, allocations: 37.83 kB / 0.6971 GB, free: 5.902 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/0.5739, allocations: 16.03 kB / 0.6972 GB, free: 5.887 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.216e-05/0.5739, allocations: 19.94 kB / 0.6972 GB, free: 5.867 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001119/0.5751, allocations: 251.6 kB / 0.6974 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.392e-05/0.5752, allocations: 23.92 kB / 0.6974 GB, free: 5.598 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00136/0.5766, allocations: 143.6 kB / 0.6976 GB, free: 5.457 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.175e-05/0.5767, allocations: 55.98 kB / 0.6976 GB, free: 5.402 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001408/0.5781, allocations: 0.6704 MB / 0.6983 GB, free: 4.73 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001095/0.5792, allocations: 0.7358 MB / 0.699 GB, free: 3.82 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001898/0.5811, allocations: 1.082 MB / 0.7001 GB, free: 2.578 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 8.045e-06/0.5811, allocations: 4 kB / 0.7001 GB, free: 2.574 MB / 0.5294 GB Notification: Performance of matching and sorting (n=122) (initialization_lambda0): time 0.002591/0.5837, allocations: 1.258 MB / 0.7013 GB, free: 1.301 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.707e-05/0.5838, allocations: 45.62 kB / 0.7013 GB, free: 1.25 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.27e-05/0.5838, allocations: 12 kB / 0.7013 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/0.5838, allocations: 16 kB / 0.7014 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009223/0.5848, allocations: 256.2 kB / 0.7016 GB, free: 0.9727 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.915e-05/0.5848, allocations: 19.94 kB / 0.7016 GB, free: 0.9531 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001032/0.5858, allocations: 116 kB / 0.7017 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.468e-05/0.5859, allocations: 51.98 kB / 0.7018 GB, free: 0.7891 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 (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.000279/0.5862, allocations: 247.9 kB / 0.702 GB, free: 0.5391 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002204/0.5864, allocations: 169.9 kB / 0.7022 GB, free: 380 kB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002595/0.589, allocations: 1.105 MB / 0.7033 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.5891, allocations: 12 kB / 0.7033 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.5891, allocations: 0 / 0.7033 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001827/0.5909, allocations: 0.9548 MB / 0.7042 GB, free: 14.24 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004337/0.5953, allocations: 2.413 MB / 0.7066 GB, free: 11.75 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.997e-06/0.5953, allocations: 7.938 kB / 0.7066 GB, free: 11.75 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007152/0.596, allocations: 139.8 kB / 0.7067 GB, free: 11.61 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001626/0.5962, allocations: 36.91 kB / 0.7067 GB, free: 11.57 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.672e-05/0.5962, allocations: 19.98 kB / 0.7068 GB, free: 11.55 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001017/0.5973, allocations: 1.411 MB / 0.7081 GB, free: 10 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/0.5973, allocations: 3.984 kB / 0.7081 GB, free: 10 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003027/0.6003, allocations: 1.535 MB / 0.7096 GB, free: 8.438 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005943/0.6009, allocations: 350.5 kB / 0.71 GB, free: 8.074 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001749/0.6011, allocations: 19.98 kB / 0.71 GB, free: 8.055 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007948/0.6019, allocations: 63.88 kB / 0.7101 GB, free: 7.992 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001181/0.602, allocations: 48.5 kB / 0.7101 GB, free: 7.945 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.919e-05/0.6021, allocations: 31.97 kB / 0.7101 GB, free: 7.914 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00145/0.6036, allocations: 1.089 MB / 0.7112 GB, free: 6.801 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.91e-07/0.6036, allocations: 0 / 0.7112 GB, free: 6.801 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.002136/0.6057, allocations: 0.8615 MB / 0.712 GB, free: 5.938 MB / 0.545 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 (70): * Single equations (assignments): 61 * 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.001627/0.6074, allocations: 0.7343 MB / 0.7128 GB, free: 5.367 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.003344/0.6107, allocations: 1.578 MB / 0.7143 GB, free: 3.77 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.6107, allocations: 4.5 kB / 0.7143 GB, free: 3.766 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.001116/0.6119, allocations: 0.537 MB / 0.7148 GB, free: 3.219 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002821/0.6147, allocations: 0.7628 MB / 0.7156 GB, free: 2.484 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004847/0.6195, allocations: 3.027 MB / 0.7185 GB, free: 15.42 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008837/0.6205, allocations: 1.364 MB / 0.7199 GB, free: 14.02 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.001444/0.6219, allocations: 420.9 kB / 0.7203 GB, free: 13.61 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003212/0.6222, allocations: 139.4 kB / 0.7204 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of SimCode: time 9.42e-07/0.6222, allocations: 0 / 0.7204 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of Templates: time 0.3151/0.9374, allocations: 31.45 MB / 0.7511 GB, free: 155.8 MB / 0.5762 GB make -j1 -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)