Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.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.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") translateModel(IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006018/0.006018, allocations: 101.8 kB / 15.73 MB, free: 6.035 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.001396/0.001396, allocations: 192.7 kB / 16.67 MB, free: 5.973 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.448/1.448, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8082/0.8082, allocations: 132.2 MB / 422.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 63.91 kB / 0.5813 GB, free: 7.52 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4604/0.4617, allocations: 80.2 MB / 0.6597 GB, free: 10.32 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger): time 0.0277/0.4894, allocations: 28.56 MB / 0.6876 GB, free: 3.699 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01181/0.5013, allocations: 7.884 MB / 0.6953 GB, free: 13.28 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001481/0.5028, allocations: 39.38 kB / 0.6953 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.001184/0.504, allocations: 425.9 kB / 0.6957 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.002866/0.5069, allocations: 1.058 MB / 0.6967 GB, free: 12.05 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.00282/0.5098, allocations: 1.078 MB / 0.6978 GB, free: 11.25 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.00526/0.515, allocations: 4.924 MB / 0.7026 GB, free: 8.332 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002932/0.518, allocations: 2.293 MB / 0.7048 GB, free: 6.996 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004512/0.5225, allocations: 1.821 MB / 0.7066 GB, free: 5.984 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002698/0.5252, allocations: 1.459 MB / 0.708 GB, free: 4.527 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0004131/0.5256, allocations: 232 kB / 0.7083 GB, free: 4.301 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003053/0.5287, allocations: 1.311 MB / 0.7095 GB, free: 2.988 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000588/0.5293, allocations: 0.5492 MB / 0.7101 GB, free: 2.438 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001672/0.531, allocations: 1.159 MB / 0.7112 GB, free: 1.273 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.004512/0.5355, allocations: 3.695 MB / 0.7148 GB, free: 13.57 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.69e-06/0.5355, allocations: 0 / 0.7148 GB, free: 13.57 MB / 0.545 GB Notification: Performance of FrontEnd: time 3.276e-06/0.5355, allocations: 4 kB / 0.7148 GB, free: 13.56 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.239e-05/0.5356, allocations: 3.938 kB / 0.7148 GB, free: 13.56 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 348 * Number of variables: 348 Notification: Performance of Generate backend data structure: time 0.005101/0.5407, allocations: 2.553 MB / 0.7173 GB, free: 10.95 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.5408, allocations: 8.031 kB / 0.7173 GB, free: 10.94 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007693/0.5415, allocations: 234.4 kB / 0.7175 GB, free: 10.71 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002962/0.5445, allocations: 1.807 MB / 0.7193 GB, free: 8.848 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.109e-05/0.5446, allocations: 114.7 kB / 0.7194 GB, free: 8.734 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000246/0.5449, allocations: 152 kB / 0.7196 GB, free: 8.586 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002993/0.5479, allocations: 1.994 MB / 0.7215 GB, free: 6.527 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.692e-05/0.5479, allocations: 3.938 kB / 0.7215 GB, free: 6.523 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001336/0.548, allocations: 60 kB / 0.7216 GB, free: 6.465 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-05/0.5481, allocations: 43.98 kB / 0.7216 GB, free: 6.422 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002562/0.5507, allocations: 1.794 MB / 0.7234 GB, free: 4.621 MB / 0.545 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.01054/0.5612, allocations: 7.594 MB / 0.7308 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001801/0.563, allocations: 1.445 MB / 0.7322 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000818/0.5639, allocations: 0.6614 MB / 0.7328 GB, free: 10.59 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00596/0.5698, allocations: 3.858 MB / 0.7366 GB, free: 6.41 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.5699, allocations: 47.56 kB / 0.7367 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=88): time 2.675e-06/0.5699, allocations: 0 / 0.7367 GB, free: 6.355 MB / 0.5606 GB Notification: Performance of matching and sorting (n=88): time 0.002347/0.5723, allocations: 1.506 MB / 0.7381 GB, free: 4.844 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.954e-05/0.5723, allocations: 60.41 kB / 0.7382 GB, free: 4.773 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002115/0.5744, allocations: 1.653 MB / 0.7398 GB, free: 3.109 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.727e-05/0.5745, allocations: 49.7 kB / 0.7398 GB, free: 3.055 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005847/0.5751, allocations: 0.7497 MB / 0.7406 GB, free: 2.297 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002672/0.5754, allocations: 323.4 kB / 0.7409 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003998/0.5758, allocations: 295.4 kB / 0.7412 GB, free: 1.684 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001465/0.576, allocations: 365.8 kB / 0.7415 GB, free: 1.32 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009437/0.5769, allocations: 0.6956 MB / 0.7422 GB, free: 0.6211 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/0.5781, allocations: 1.02 MB / 0.7432 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001977/0.5801, allocations: 1.616 MB / 0.7448 GB, free: 13.73 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.168e-06/0.5801, allocations: 8.062 kB / 0.7448 GB, free: 13.72 MB / 0.5762 GB Notification: Performance of matching and sorting (n=175) (initialization): time 0.002937/0.5831, allocations: 1.951 MB / 0.7467 GB, free: 11.76 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.319e-05/0.5831, allocations: 8 kB / 0.7467 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.839e-05/0.5831, allocations: 8 kB / 0.7467 GB, free: 11.75 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.799e-05/0.5832, allocations: 16 kB / 0.7467 GB, free: 11.73 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/0.5844, allocations: 335.5 kB / 0.747 GB, free: 11.4 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.39e-05/0.5844, allocations: 23.92 kB / 0.7471 GB, free: 11.38 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.5856, allocations: 210.5 kB / 0.7473 GB, free: 11.17 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.5857, allocations: 55.98 kB / 0.7473 GB, free: 11.12 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001777/0.5875, allocations: 1.289 MB / 0.7486 GB, free: 9.824 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001152/0.5887, allocations: 1.016 MB / 0.7496 GB, free: 8.684 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001955/0.5907, allocations: 1.62 MB / 0.7511 GB, free: 6.941 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.981e-06/0.5907, allocations: 7.938 kB / 0.7511 GB, free: 6.934 MB / 0.5762 GB Notification: Performance of matching and sorting (n=175) (initialization_lambda0): time 0.002901/0.5936, allocations: 1.944 MB / 0.753 GB, free: 4.98 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.5936, allocations: 8 kB / 0.7531 GB, free: 4.973 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.779e-06/0.5936, allocations: 8 kB / 0.7531 GB, free: 4.965 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.634e-05/0.5936, allocations: 16 kB / 0.7531 GB, free: 4.949 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001218/0.5949, allocations: 335.5 kB / 0.7534 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.224e-05/0.5949, allocations: 23.92 kB / 0.7534 GB, free: 4.598 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.596, allocations: 146.9 kB / 0.7536 GB, free: 4.453 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.5961, allocations: 63.98 kB / 0.7536 GB, free: 4.391 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (175): * Single equations (assignments): 175 * Array equations: 0 * Algorithm blocks: 0 * 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.0003195/0.5964, allocations: 259.9 kB / 0.7539 GB, free: 4.129 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002919/0.5967, allocations: 150.1 kB / 0.754 GB, free: 3.98 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002019/0.5988, allocations: 1.286 MB / 0.7553 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.52e-05/0.5988, allocations: 12 kB / 0.7553 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.5988, allocations: 0 / 0.7553 GB, free: 2.676 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001415/0.6002, allocations: 1.281 MB / 0.7565 GB, free: 1.309 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0041/0.6043, allocations: 2.963 MB / 0.7594 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.6043, allocations: 0 / 0.7594 GB, free: 14.27 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007891/0.6051, allocations: 183.8 kB / 0.7596 GB, free: 14.09 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.448e-06/0.6052, allocations: 8 kB / 0.7596 GB, free: 14.08 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.403e-05/0.6052, allocations: 27.98 kB / 0.7596 GB, free: 14.05 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.135e-06/0.6053, allocations: 8.125 kB / 0.7596 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.6053, allocations: 4 kB / 0.7596 GB, free: 14.04 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002512/0.6078, allocations: 1.913 MB / 0.7615 GB, free: 12.09 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007051/0.6085, allocations: 402.9 kB / 0.7619 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001864/0.6087, allocations: 31.84 kB / 0.7619 GB, free: 11.65 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007709/0.6095, allocations: 47.94 kB / 0.762 GB, free: 11.6 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.942e-05/0.6096, allocations: 48.94 kB / 0.762 GB, free: 11.55 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.372e-05/0.6097, allocations: 35.97 kB / 0.7621 GB, free: 11.52 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.001689/0.6114, allocations: 1.234 MB / 0.7633 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.7e-07/0.6114, allocations: 0 / 0.7633 GB, free: 10.29 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002255/0.6136, allocations: 0.9202 MB / 0.7642 GB, free: 9.367 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (indTanHex.vol[1].dynBal.U,indTanHex.vol[2].dynBal.U,indTanHex.vol[3].dynBal.U,indTanHex.cap[1].T,indTanHex.cap[2].T,indTanHex.cap[3].T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008898/0.6145, allocations: 373.5 kB / 0.7645 GB, free: 9 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.003469/0.618, allocations: 2.333 MB / 0.7668 GB, free: 6.676 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.618, allocations: 0 / 0.7668 GB, free: 6.676 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007056/0.6187, allocations: 0.5214 MB / 0.7673 GB, free: 6.152 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003638/0.6224, allocations: 0.9165 MB / 0.7682 GB, free: 5.301 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005208/0.6276, allocations: 3.67 MB / 0.7718 GB, free: 1.586 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001142/0.6288, allocations: 1.678 MB / 0.7734 GB, free: 15.88 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.002345/0.6311, allocations: 0.9151 MB / 0.7743 GB, free: 14.98 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000353/0.6315, allocations: 139.3 kB / 0.7744 GB, free: 14.84 MB / 0.6075 GB Notification: Performance of SimCode: time 5.61e-07/0.6315, allocations: 0 / 0.7744 GB, free: 14.84 MB / 0.6075 GB Notification: Performance of Templates: time 0.06077/0.6923, allocations: 36.1 MB / 0.8097 GB, free: 11.12 MB / 0.6387 GB make -j1 -f IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.makefile (rm -f IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; mkfifo IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe >> ../files/IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.sim & ./IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.Storage.BaseClasses.Examples.IndirectTankHeatExchanger.pipe 2>&1)