Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") translateModel(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank1.level|tank1.medium.T|tank2.level|tank2.medium.T|tank1.aboveLevel.1.|tank1.aboveLevel.2.|tank2.aboveLevel.1.|tank2.aboveLevel.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00259/0.00259, allocations: 188.8 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.572/3.572, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001847/0.001847, allocations: 98.77 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004326/0.0004328, allocations: 8 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1124, allocations: 47.59 MB / 374.6 MB, free: 15.43 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1): time 0.3544/0.4669, allocations: 26.87 MB / 401.4 MB, free: 8.68 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02503/0.492, allocations: 12.68 MB / 414.1 MB, free: 100 kB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002416/0.4945, allocations: 56.84 kB / 414.2 MB, free: 68 kB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002684/0.4973, allocations: 0.5078 MB / 414.7 MB, free: 15.78 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008263/0.5056, allocations: 1.759 MB / 416.4 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01352/0.5191, allocations: 2.877 MB / 419.3 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00571/0.5249, allocations: 2.199 MB / 421.5 MB, free: 11.33 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002172/0.5271, allocations: 0.8189 MB / 422.3 MB, free: 10.82 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004021/0.5311, allocations: 1.175 MB / 423.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00299/0.5342, allocations: 0.9771 MB / 424.5 MB, free: 9.613 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004924/0.5347, allocations: 71.78 kB / 424.5 MB, free: 9.613 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006975/0.5417, allocations: 2.123 MB / 426.7 MB, free: 8.562 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001203/0.543, allocations: 451.3 kB / 427.1 MB, free: 8.277 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000737/0.5437, allocations: 310.4 kB / 427.4 MB, free: 8.117 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006946/0.5507, allocations: 2.592 MB / 430 MB, free: 5.672 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.5508, allocations: 0 / 430 MB, free: 5.672 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.395e-06/0.5508, allocations: 0 / 430 MB, free: 5.672 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.917e-05/0.5508, allocations: 0 / 430 MB, free: 5.672 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006557/0.5574, allocations: 1.823 MB / 431.8 MB, free: 3.797 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.631e-05/0.5575, allocations: 11.97 kB / 431.8 MB, free: 3.785 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001043/0.5585, allocations: 178.2 kB / 432 MB, free: 3.609 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002704/0.5612, allocations: 0.91 MB / 432.9 MB, free: 2.656 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001276/0.5614, allocations: 85.89 kB / 433 MB, free: 2.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003436/0.5618, allocations: 95.98 kB / 433.1 MB, free: 2.477 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00458/0.5664, allocations: 1.613 MB / 434.7 MB, free: 0.7812 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.951e-05/0.5665, allocations: 3.938 kB / 434.7 MB, free: 0.7773 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002304/0.5667, allocations: 51.97 kB / 434.8 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000249/0.567, allocations: 105.9 kB / 434.9 MB, free: 0.625 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007339/0.5743, allocations: 1.635 MB / 436.5 MB, free: 14.99 MB / 314.7 MB 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.02187/0.5963, allocations: 6.734 MB / 443.2 MB, free: 7.859 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004503/0.6009, allocations: 0.9225 MB / 444.2 MB, free: 6.93 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01357/0.6145, allocations: 2.852 MB / 447 MB, free: 3.828 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.37e-05/0.6147, allocations: 47.22 kB / 447.1 MB, free: 3.773 MB / 314.7 MB Notification: Performance of pre-optimization done (n=80): time 7.144e-06/0.6147, allocations: 0 / 447.1 MB, free: 3.773 MB / 314.7 MB Notification: Performance of matching and sorting (n=90): time 0.02759/0.6423, allocations: 3.713 MB / 450.8 MB, free: 15.95 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001949/0.6426, allocations: 196.9 kB / 451 MB, free: 15.71 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008734/0.6513, allocations: 1.291 MB / 452.3 MB, free: 14.4 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004869/0.6519, allocations: 49.7 kB / 452.3 MB, free: 14.35 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001305/0.6532, allocations: 0.6295 MB / 452.9 MB, free: 13.71 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009821/0.6543, allocations: 319.5 kB / 453.2 MB, free: 13.39 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002916/0.6546, allocations: 24 kB / 453.3 MB, free: 13.37 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0003689/0.655, allocations: 366.8 kB / 453.6 MB, free: 13 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003226/0.6583, allocations: 0.5621 MB / 454.2 MB, free: 12.44 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004261/0.6626, allocations: 0.9771 MB / 455.2 MB, free: 11.29 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003765/0.6665, allocations: 0.6744 MB / 455.8 MB, free: 10.62 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.699e-05/0.6666, allocations: 4 kB / 455.8 MB, free: 10.61 MB / 330.7 MB Notification: Performance of matching and sorting (n=180) (initialization): time 0.01129/0.6779, allocations: 1.792 MB / 457.6 MB, free: 8.801 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.003401/0.6814, allocations: 4.622 MB / 462.3 MB, free: 3.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-05/0.6816, allocations: 12 kB / 462.3 MB, free: 3.809 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01542/0.697, allocations: 0.7828 MB / 463.1 MB, free: 3.016 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00359/0.7007, allocations: 287.5 kB / 463.3 MB, free: 2.734 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005465/0.7062, allocations: 2.16 MB / 465.5 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003879/0.7102, allocations: 96.03 kB / 465.6 MB, free: 412 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006289/0.7109, allocations: 64.08 kB / 465.7 MB, free: 348 kB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.7109, allocations: 11.94 kB / 465.7 MB, free: 336 kB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009502/0.7205, allocations: 1.662 MB / 467.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.258e-05/0.7206, allocations: 17.92 kB / 467.3 MB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01324/0.7339, allocations: 0.6076 MB / 467.9 MB, free: 14.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003488/0.7374, allocations: 291.5 kB / 468.2 MB, free: 13.74 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004218/0.7417, allocations: 1.989 MB / 470.2 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00274/0.7445, allocations: 96 kB / 470.3 MB, free: 11.58 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006027/0.7452, allocations: 67.98 kB / 470.4 MB, free: 11.51 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.002251/0.7475, allocations: 473 kB / 470.8 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007498/0.7483, allocations: 146.2 kB / 471 MB, free: 10.89 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00941/0.7578, allocations: 1.533 MB / 472.5 MB, free: 9.348 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.726e-05/0.7579, allocations: 8 kB / 472.5 MB, free: 9.34 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.78e-05/0.7579, allocations: 3.953 kB / 472.5 MB, free: 9.336 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.003e-05/0.758, allocations: 7.984 kB / 472.5 MB, free: 9.328 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01429/0.7723, allocations: 2.826 MB / 475.4 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.624e-05/0.7724, allocations: 4 kB / 475.4 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002539/0.7749, allocations: 147.8 kB / 475.5 MB, free: 6.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00854/0.7835, allocations: 0.6426 MB / 476.2 MB, free: 5.617 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003496/0.784, allocations: 23.98 kB / 476.2 MB, free: 5.594 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004993/0.789, allocations: 2.114 MB / 478.3 MB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.695e-06/0.7891, allocations: 4.062 kB / 478.3 MB, free: 3.398 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01059/0.7997, allocations: 2.136 MB / 480.4 MB, free: 1.188 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001052/0.8008, allocations: 255.1 kB / 480.7 MB, free: 0.918 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007741/0.8016, allocations: 24 kB / 480.7 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002/0.8037, allocations: 75.88 kB / 480.8 MB, free: 0.8203 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004454/0.8042, allocations: 92.86 kB / 480.9 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000202/0.8044, allocations: 43.97 kB / 480.9 MB, free: 0.6875 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002189/0.8066, allocations: 0.8888 MB / 481.8 MB, free: 15.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.51e-07/0.8066, allocations: 4 kB / 481.8 MB, free: 15.79 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005199/0.8118, allocations: 1.12 MB / 482.9 MB, free: 14.67 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.level,tank1.medium.T,tank2.level,tank2.medium.T) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003498/0.8154, allocations: 0.8199 MB / 483.7 MB, free: 13.84 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008402/0.8238, allocations: 2.224 MB / 486 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-05/0.8239, allocations: 3.859 kB / 486 MB, free: 11.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002709/0.8266, allocations: 0.6828 MB / 486.7 MB, free: 10.94 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005238/0.8319, allocations: 0.5784 MB / 487.2 MB, free: 10.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/0.8422, allocations: 3.209 MB / 490.4 MB, free: 7.102 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001763/0.844, allocations: 1.279 MB / 491.7 MB, free: 5.793 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001189/0.8453, allocations: 123.4 kB / 491.8 MB, free: 5.672 MB / 362.7 MB Notification: Performance of SimCode: time 1.483e-06/0.8453, allocations: 4 kB / 491.8 MB, free: 5.668 MB / 362.7 MB Notification: Performance of Templates: time 0.1861/1.031, allocations: 43.96 MB / 0.5232 GB, free: 9.605 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & ./Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)