Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001003/0.001003, allocations: 193.3 kB / 16.78 MB, free: 5.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.332/1.332, allocations: 226.5 MB / 244.1 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009416/0.0009416, allocations: 102.5 kB / 296.1 MB, free: 6.883 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3301/0.3301, allocations: 44.82 MB / 393 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002758/0.0002759, allocations: 8 kB / 465.9 MB, free: 12.7 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3869/0.3872, allocations: 62.96 MB / 0.5165 GB, free: 36.98 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6453/1.033, allocations: 337.5 MB / 0.8461 GB, free: 13.92 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002514/1.033, allocations: 97.27 kB / 0.8462 GB, free: 13.87 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.6325/1.665, allocations: 145.5 MB / 0.9883 GB, free: 104.2 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.134e-06/1.665, allocations: 3.938 kB / 0.9883 GB, free: 104.2 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001126/1.666, allocations: 20 kB / 0.9883 GB, free: 104.2 MB / 0.5261 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.004501/1.67, allocations: 1.28 MB / 0.9895 GB, free: 102.9 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.1e-05/1.67, allocations: 8.031 kB / 0.9895 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008691/1.671, allocations: 107.8 kB / 0.9896 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00182/1.673, allocations: 0.7041 MB / 0.9903 GB, free: 102 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/1.673, allocations: 112.6 kB / 0.9904 GB, free: 101.9 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002608/1.673, allocations: 59.98 kB / 0.9905 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001892/1.675, allocations: 1.028 MB / 0.9915 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.767e-05/1.675, allocations: 4 kB / 0.9915 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001259/1.675, allocations: 27.98 kB / 0.9915 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-05/1.675, allocations: 49.28 kB / 0.9916 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001563/1.677, allocations: 0.9145 MB / 0.9925 GB, free: 99.75 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006146/1.683, allocations: 3.983 MB / 0.9964 GB, free: 95.58 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009886/1.684, allocations: 0.6544 MB / 0.997 GB, free: 94.92 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005478/1.685, allocations: 418.1 kB / 0.9974 GB, free: 94.51 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003121/1.688, allocations: 2.354 MB / 0.9997 GB, free: 91.91 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006534/1.689, allocations: 0.4992 MB / 1 GB, free: 91.38 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 3.106e-06/1.689, allocations: 0 / 1 GB, free: 91.38 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.005543/1.694, allocations: 2.733 MB / 1.003 GB, free: 88.54 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.39e-05/1.694, allocations: 239.8 kB / 1.003 GB, free: 88.25 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00103/1.695, allocations: 0.8328 MB / 1.004 GB, free: 87.4 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.862e-05/1.695, allocations: 37.7 kB / 1.004 GB, free: 87.36 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002892/1.696, allocations: 431.7 kB / 1.004 GB, free: 86.93 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/1.696, allocations: 181.5 kB / 1.005 GB, free: 86.75 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.268e-05/1.696, allocations: 16 kB / 1.005 GB, free: 86.73 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.496e-05/1.696, allocations: 334 kB / 1.005 GB, free: 86.4 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005442/1.696, allocations: 369.8 kB / 1.005 GB, free: 86.04 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006476/1.697, allocations: 0.6174 MB / 1.006 GB, free: 85.31 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/1.698, allocations: 0.9623 MB / 1.007 GB, free: 84.25 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.62e-06/1.698, allocations: 4 kB / 1.007 GB, free: 84.24 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.00197/1.7, allocations: 1.294 MB / 1.008 GB, free: 82.93 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001502/1.7, allocations: 308.3 kB / 1.008 GB, free: 82.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/1.7, allocations: 4 kB / 1.008 GB, free: 82.53 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008838/1.701, allocations: 345.3 kB / 1.009 GB, free: 82.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005578/1.702, allocations: 147.7 kB / 1.009 GB, free: 82.04 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/1.703, allocations: 1.436 MB / 1.01 GB, free: 80.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008255/1.704, allocations: 51.91 kB / 1.01 GB, free: 80.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001032/1.704, allocations: 43.98 kB / 1.01 GB, free: 80.46 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.1e-05/1.704, allocations: 10.62 kB / 1.01 GB, free: 80.45 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001802/1.706, allocations: 1.195 MB / 1.011 GB, free: 79.24 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.187e-05/1.706, allocations: 4 kB / 1.011 GB, free: 79.23 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006856/1.706, allocations: 329.7 kB / 1.012 GB, free: 78.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000517/1.707, allocations: 155.7 kB / 1.012 GB, free: 78.75 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009671/1.708, allocations: 1.421 MB / 1.013 GB, free: 77.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007363/1.709, allocations: 44.16 kB / 1.013 GB, free: 77.24 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.039e-05/1.709, allocations: 52.11 kB / 1.013 GB, free: 77.19 MB / 0.5261 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.0005242/1.709, allocations: 396.4 kB / 1.014 GB, free: 76.79 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/1.71, allocations: 94.88 kB / 1.014 GB, free: 76.69 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001932/1.711, allocations: 1.141 MB / 1.015 GB, free: 75.54 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/1.711, allocations: 4 kB / 1.015 GB, free: 75.53 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/1.712, allocations: 0 / 1.015 GB, free: 75.53 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.555e-06/1.712, allocations: 3.938 kB / 1.015 GB, free: 75.53 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002721/1.714, allocations: 1.993 MB / 1.017 GB, free: 73.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/1.714, allocations: 3.984 kB / 1.017 GB, free: 73.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003814/1.715, allocations: 79.91 kB / 1.017 GB, free: 73.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007574/1.715, allocations: 345.4 kB / 1.017 GB, free: 73.04 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.164e-05/1.715, allocations: 23.98 kB / 1.017 GB, free: 73.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001028/1.717, allocations: 1.421 MB / 1.019 GB, free: 71.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/1.717, allocations: 3.938 kB / 1.019 GB, free: 71.54 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002109/1.719, allocations: 1.622 MB / 1.02 GB, free: 69.89 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004245/1.719, allocations: 267.8 kB / 1.021 GB, free: 69.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001829/1.719, allocations: 19.98 kB / 1.021 GB, free: 69.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006744/1.72, allocations: 44.03 kB / 1.021 GB, free: 69.54 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001382/1.72, allocations: 56.3 kB / 1.021 GB, free: 69.49 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.357e-05/1.72, allocations: 27.98 kB / 1.021 GB, free: 69.46 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0007147/1.721, allocations: 0.577 MB / 1.021 GB, free: 68.89 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.8e-07/1.721, allocations: 4 kB / 1.021 GB, free: 68.89 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002497/1.723, allocations: 0.7024 MB / 1.022 GB, free: 68.18 MB / 0.5261 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.002276/1.726, allocations: 0.6525 MB / 1.023 GB, free: 67.53 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002808/1.729, allocations: 1.537 MB / 1.024 GB, free: 65.97 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/1.729, allocations: 0 / 1.024 GB, free: 65.97 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009321/1.729, allocations: 0.49 MB / 1.025 GB, free: 65.46 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001616/1.731, allocations: 332.6 kB / 1.025 GB, free: 65.14 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003148/1.734, allocations: 2.045 MB / 1.027 GB, free: 63.07 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004473/1.735, allocations: 1.009 MB / 1.028 GB, free: 62.03 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002574/1.735, allocations: 79.41 kB / 1.028 GB, free: 61.95 MB / 0.5261 GB Notification: Performance of SimCode: time 6.01e-07/1.735, allocations: 0 / 1.028 GB, free: 61.95 MB / 0.5261 GB Notification: Performance of Templates: time 0.03048/1.766, allocations: 23.31 MB / 1.051 GB, free: 38.7 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)