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.001601/0.001601, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.944/1.944, allocations: 205.3 MB / 214.1 MB, free: 14.14 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001069/0.001068, allocations: 93.98 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.818e-05/2.817e-05, allocations: 4 kB / 314.8 MB, free: 9.156 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3328, allocations: 47.56 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9865/1.319, allocations: 323.5 MB / 0.6698 GB, free: 118.9 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003186/1.32, allocations: 94.08 kB / 0.6698 GB, free: 118.9 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.26/2.579, allocations: 280.4 MB / 0.9436 GB, free: 50.05 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.495e-06/2.579, allocations: 4 kB / 0.9437 GB, free: 50.05 MB / 427.1 MB Notification: Performance of Transformations before backend: time 0.00019/2.58, allocations: 43.77 kB / 0.9437 GB, free: 50.01 MB / 427.1 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.007173/2.587, allocations: 1.774 MB / 0.9454 GB, free: 48.2 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/2.587, allocations: 11.97 kB / 0.9454 GB, free: 48.18 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001336/2.588, allocations: 170.1 kB / 0.9456 GB, free: 48.02 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003969/2.592, allocations: 1.028 MB / 0.9466 GB, free: 46.97 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.773e-05/2.592, allocations: 40 kB / 0.9466 GB, free: 46.93 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004728/2.593, allocations: 59.91 kB / 0.9467 GB, free: 46.88 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003985/2.597, allocations: 1.433 MB / 0.9481 GB, free: 45.44 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003987/2.601, allocations: 1.467 MB / 0.9495 GB, free: 43.88 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.806e-05/2.601, allocations: 0 / 0.9495 GB, free: 43.88 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002346/2.601, allocations: 7.938 kB / 0.9495 GB, free: 43.88 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002224/2.602, allocations: 105.9 kB / 0.9496 GB, free: 43.77 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01647/2.618, allocations: 6.299 MB / 0.9558 GB, free: 37.19 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002265/2.62, allocations: 0.8737 MB / 0.9566 GB, free: 36.3 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001375/2.622, allocations: 0.5264 MB / 0.9572 GB, free: 35.78 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00657/2.628, allocations: 2.847 MB / 0.9599 GB, free: 32.71 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.538e-05/2.628, allocations: 43.34 kB / 0.96 GB, free: 32.66 MB / 427.1 MB Notification: Performance of pre-optimization done (n=80): time 3.787e-06/2.628, allocations: 0 / 0.96 GB, free: 32.66 MB / 427.1 MB Notification: Performance of matching and sorting (n=90): time 0.0161/2.645, allocations: 3.136 MB / 0.963 GB, free: 29.46 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.207e-05/2.645, allocations: 192.7 kB / 0.9632 GB, free: 29.23 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001722/2.646, allocations: 0.8643 MB / 0.9641 GB, free: 28.36 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003608/2.647, allocations: 29.7 kB / 0.9641 GB, free: 28.32 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005362/2.647, allocations: 0.6565 MB / 0.9647 GB, free: 27.66 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004632/2.648, allocations: 311.6 kB / 0.965 GB, free: 27.35 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001388/2.648, allocations: 0 / 0.965 GB, free: 27.35 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 0.0001196/2.648, allocations: 362.8 kB / 0.9654 GB, free: 26.98 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001335/2.65, allocations: 0.5271 MB / 0.9659 GB, free: 26.46 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00156/2.651, allocations: 0.9205 MB / 0.9668 GB, free: 25.37 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01733/2.668, allocations: 2.17 MB / 0.9689 GB, free: 23.2 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-05/2.669, allocations: 0 / 0.9689 GB, free: 23.2 MB / 427.1 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.02036/2.689, allocations: 3.149 MB / 0.972 GB, free: 20.04 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008566/2.69, allocations: 4.366 MB / 0.9763 GB, free: 15.33 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.136e-05/2.69, allocations: 12 kB / 0.9763 GB, free: 15.32 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001699/2.692, allocations: 322.3 kB / 0.9766 GB, free: 14.99 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002199/2.694, allocations: 283.5 kB / 0.9768 GB, free: 14.71 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005049/2.699, allocations: 2.465 MB / 0.9792 GB, free: 12.17 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002468/2.701, allocations: 75.84 kB / 0.9793 GB, free: 12.1 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003223/2.702, allocations: 67.97 kB / 0.9794 GB, free: 12.03 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.489e-05/2.702, allocations: 7.953 kB / 0.9794 GB, free: 12.02 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01946/2.721, allocations: 2.918 MB / 0.9822 GB, free: 9.098 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.444e-05/2.721, allocations: 12 kB / 0.9823 GB, free: 9.086 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001352/2.723, allocations: 254.5 kB / 0.9825 GB, free: 8.828 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002358/2.725, allocations: 287 kB / 0.9828 GB, free: 8.551 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004045/2.729, allocations: 2.196 MB / 0.9849 GB, free: 6.277 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001811/2.731, allocations: 75.84 kB / 0.985 GB, free: 6.203 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001825/2.731, allocations: 67.97 kB / 0.9851 GB, free: 6.137 MB / 427.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 160 * 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.0004709/2.732, allocations: 145.3 kB / 0.9852 GB, free: 5.988 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003981/2.732, allocations: 130.6 kB / 0.9853 GB, free: 5.859 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005658/2.738, allocations: 1.532 MB / 0.9868 GB, free: 4.312 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.628e-05/2.738, allocations: 16.08 kB / 0.9868 GB, free: 4.297 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/2.738, allocations: 4 kB / 0.9868 GB, free: 4.293 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/2.738, allocations: 3.984 kB / 0.9868 GB, free: 4.289 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008406/2.746, allocations: 2.718 MB / 0.9895 GB, free: 1.527 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/2.747, allocations: 128 / 0.9895 GB, free: 1.527 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0013/2.748, allocations: 159.7 kB / 0.9896 GB, free: 1.371 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00168/2.75, allocations: 314.3 kB / 0.9899 GB, free: 1.055 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001405/2.75, allocations: 15.92 kB / 0.99 GB, free: 1.039 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3043/3.054, allocations: 2.272 MB / 0.9922 GB, free: 62.42 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.316e-06/3.054, allocations: 1.438 kB / 0.9922 GB, free: 62.42 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006174/3.06, allocations: 2.136 MB / 0.9943 GB, free: 62.16 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007088/3.061, allocations: 224.6 kB / 0.9945 GB, free: 62.06 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004273/3.061, allocations: 10.62 kB / 0.9945 GB, free: 62.06 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001781/3.063, allocations: 62.92 kB / 0.9945 GB, free: 62.06 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003656/3.064, allocations: 93.34 kB / 0.9946 GB, free: 62.06 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001765/3.064, allocations: 49.09 kB / 0.9947 GB, free: 62.06 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.001377/3.065, allocations: 0.6615 MB / 0.9953 GB, free: 61.95 MB / 427.1 MB Notification: Performance of sort global known variables: time 7.21e-07/3.065, allocations: 0 / 0.9953 GB, free: 61.95 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.005808/3.071, allocations: 1.13 MB / 0.9964 GB, free: 61.95 MB / 427.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * 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]) * 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.004072/3.075, allocations: 1.086 MB / 0.9975 GB, free: 61.86 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.006112/3.081, allocations: 2.064 MB / 0.9995 GB, free: 61.82 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/3.081, allocations: 0 / 0.9995 GB, free: 61.82 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001944/3.083, allocations: 0.6436 MB / 1 GB, free: 61.82 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004404/3.088, allocations: 482.4 kB / 1.001 GB, free: 61.82 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00543/3.093, allocations: 2.075 MB / 1.003 GB, free: 61.3 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009073/3.094, allocations: 1.275 MB / 1.004 GB, free: 60.59 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008067/3.095, allocations: 123.9 kB / 1.004 GB, free: 60.58 MB / 427.1 MB Notification: Performance of SimCode: time 1.333e-06/3.095, allocations: 2.25 kB / 1.004 GB, free: 60.58 MB / 427.1 MB Notification: Performance of Templates: time 0.08296/3.178, allocations: 43.32 MB / 1.046 GB, free: 58.73 MB / 427.1 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)