Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) 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(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|tank.level|tank.medium.T|timeTable.a|timeTable.b|timeTable.last|timeTable.nextEvent",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001441/0.001441, allocations: 186 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.9/1.9, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.00112/0.00112, allocations: 97.98 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.5729/0.5729, allocations: 43.56 MB / 362.7 MB, free: 52.07 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004638/0.0004637, allocations: 16 kB / 431.4 MB, free: 6.156 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1218/0.1223, allocations: 58.84 MB / 490.2 MB, free: 11.24 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.137/1.259, allocations: 335.7 MB / 0.8066 GB, free: 36.4 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002982/1.259, allocations: 89.2 kB / 0.8066 GB, free: 36.36 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8564/2.116, allocations: 143.5 MB / 0.9468 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.134e-06/2.116, allocations: 0 / 0.9468 GB, free: 111.6 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 8.026e-05/2.116, allocations: 22.84 kB / 0.9468 GB, free: 111.6 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 153 * Number of variables: 153 Notification: Performance of Generate backend data structure: time 0.00381/2.12, allocations: 1.291 MB / 0.9481 GB, free: 110.6 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/2.12, allocations: 7.875 kB / 0.9481 GB, free: 110.6 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005757/2.12, allocations: 105 kB / 0.9482 GB, free: 110.6 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001783/2.122, allocations: 0.678 MB / 0.9488 GB, free: 109.9 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/2.122, allocations: 112.5 kB / 0.9489 GB, free: 109.8 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001685/2.123, allocations: 56.53 kB / 0.949 GB, free: 109.7 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002274/2.125, allocations: 1.034 MB / 0.95 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.91e-05/2.125, allocations: 0 / 0.95 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001386/2.125, allocations: 31.55 kB / 0.95 GB, free: 108.6 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.543e-05/2.125, allocations: 57.22 kB / 0.9501 GB, free: 108.5 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002238/2.127, allocations: 0.9184 MB / 0.951 GB, free: 107.6 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008532/2.136, allocations: 4.01 MB / 0.9549 GB, free: 103.5 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001716/2.138, allocations: 0.6538 MB / 0.9555 GB, free: 102.8 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004291/2.142, allocations: 2.365 MB / 0.9578 GB, free: 100.2 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001045/2.143, allocations: 0.5069 MB / 0.9583 GB, free: 99.67 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=48): time 2.785e-06/2.143, allocations: 0 / 0.9583 GB, free: 99.67 MB / 0.4948 GB Notification: Performance of matching and sorting (n=53): time 0.008496/2.152, allocations: 2.798 MB / 0.9611 GB, free: 96.74 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.48e-05/2.152, allocations: 239.8 kB / 0.9613 GB, free: 96.45 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/2.153, allocations: 0.7385 MB / 0.962 GB, free: 95.71 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001017/2.153, allocations: 37.7 kB / 0.9621 GB, free: 95.66 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002995/2.153, allocations: 441.9 kB / 0.9625 GB, free: 95.23 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001889/2.154, allocations: 172.9 kB / 0.9626 GB, free: 95.07 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.678e-05/2.154, allocations: 16 kB / 0.9627 GB, free: 95.05 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 8.917e-05/2.154, allocations: 346.8 kB / 0.963 GB, free: 94.7 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009321/2.155, allocations: 369.8 kB / 0.9633 GB, free: 94.34 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001072/2.156, allocations: 0.6057 MB / 0.9639 GB, free: 93.62 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/2.157, allocations: 459.6 kB / 0.9644 GB, free: 93.17 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.42e-06/2.157, allocations: 11.94 kB / 0.9644 GB, free: 93.16 MB / 0.4948 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003204/2.16, allocations: 1.232 MB / 0.9656 GB, free: 91.91 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004998/2.161, allocations: 2.479 MB / 0.968 GB, free: 89.23 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/2.161, allocations: 4 kB / 0.968 GB, free: 89.23 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001367/2.162, allocations: 345.3 kB / 0.9683 GB, free: 88.88 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/2.163, allocations: 147.8 kB / 0.9685 GB, free: 88.74 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001635/2.165, allocations: 1.448 MB / 0.9699 GB, free: 87.24 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001351/2.166, allocations: 47.88 kB / 0.9699 GB, free: 87.19 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/2.167, allocations: 36 kB / 0.97 GB, free: 87.16 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.14e-05/2.167, allocations: 4 kB / 0.97 GB, free: 87.15 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003059/2.17, allocations: 1.2 MB / 0.9712 GB, free: 85.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/2.17, allocations: 8.047 kB / 0.9712 GB, free: 85.93 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001114/2.171, allocations: 321.7 kB / 0.9715 GB, free: 85.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/2.172, allocations: 155.7 kB / 0.9716 GB, free: 85.46 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001461/2.173, allocations: 1.413 MB / 0.973 GB, free: 84 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009349/2.174, allocations: 51.84 kB / 0.973 GB, free: 83.95 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/2.174, allocations: 47.94 kB / 0.9731 GB, free: 83.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,2 4} Notification: Performance of prepare postOptimizeDAE: time 0.00073/2.175, allocations: 398.5 kB / 0.9735 GB, free: 83.49 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002477/2.175, allocations: 90.88 kB / 0.9736 GB, free: 83.4 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003318/2.179, allocations: 1.125 MB / 0.9747 GB, free: 82.25 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/2.179, allocations: 7.953 kB / 0.9747 GB, free: 82.25 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/2.179, allocations: 0 / 0.9747 GB, free: 82.25 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/2.179, allocations: 7.984 kB / 0.9747 GB, free: 82.24 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00465/2.183, allocations: 1.987 MB / 0.9766 GB, free: 80.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.134e-06/2.184, allocations: 3.938 kB / 0.9766 GB, free: 80.2 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007388/2.184, allocations: 83.89 kB / 0.9767 GB, free: 80.11 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001306/2.186, allocations: 337.4 kB / 0.977 GB, free: 79.78 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001366/2.186, allocations: 15.98 kB / 0.977 GB, free: 79.76 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001698/2.187, allocations: 1.432 MB / 0.9784 GB, free: 78.28 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/2.187, allocations: 0 / 0.9784 GB, free: 78.28 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003904/2.191, allocations: 1.626 MB / 0.98 GB, free: 76.62 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000768/2.192, allocations: 267.9 kB / 0.9803 GB, free: 76.34 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002279/2.192, allocations: 20.12 kB / 0.9803 GB, free: 76.32 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001075/2.194, allocations: 43.88 kB / 0.9803 GB, free: 76.28 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002069/2.194, allocations: 52.36 kB / 0.9804 GB, free: 76.23 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001037/2.194, allocations: 31.97 kB / 0.9804 GB, free: 76.2 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001093/2.195, allocations: 0.5732 MB / 0.981 GB, free: 75.62 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.81e-07/2.195, allocations: 0 / 0.981 GB, free: 75.62 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002837/2.198, allocations: 0.6947 MB / 0.9817 GB, free: 74.93 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 1,3 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.002247/2.2, allocations: 0.6342 MB / 0.9823 GB, free: 74.34 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004707/2.205, allocations: 1.538 MB / 0.9838 GB, free: 72.78 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 9.017e-06/2.205, allocations: 4.062 kB / 0.9838 GB, free: 72.78 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.001618/2.207, allocations: 0.49 MB / 0.9843 GB, free: 72.28 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00271/2.209, allocations: 319.8 kB / 0.9846 GB, free: 71.96 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004463/2.214, allocations: 2.032 MB / 0.9865 GB, free: 69.9 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005666/2.214, allocations: 1.029 MB / 0.9876 GB, free: 68.84 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004736/2.215, allocations: 87.34 kB / 0.9876 GB, free: 68.76 MB / 0.4948 GB Notification: Performance of SimCode: time 1.062e-06/2.215, allocations: 0 / 0.9876 GB, free: 68.76 MB / 0.4948 GB Notification: Performance of Templates: time 0.04107/2.256, allocations: 23.01 MB / 1.01 GB, free: 45.77 MB / 0.4948 GB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)