Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 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) 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) 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_4.0.0_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_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001243/0.001243, allocations: 177 kB / 17.06 MB, free: 5.094 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.246/1.246, allocations: 223.2 MB / 241 MB, free: 11.84 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000974/0.0009741, allocations: 102.2 kB / 292.2 MB, free: 10.88 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3167/0.3167, allocations: 44.22 MB / 387.5 MB, free: 38.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003124/0.0003124, allocations: 8 kB / 459.9 MB, free: 1.508 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3467/0.347, allocations: 61.9 MB / 0.5096 GB, free: 38.24 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5917/0.9387, allocations: 336.5 MB / 0.8382 GB, free: 9.934 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002917/0.9391, allocations: 91.7 kB / 0.8383 GB, free: 9.883 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.5875/1.527, allocations: 146.5 MB / 0.9813 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.713e-06/1.527, allocations: 0 / 0.9813 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001121/1.527, allocations: 27.98 kB / 0.9814 GB, free: 119.5 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.00437/1.531, allocations: 1.282 MB / 0.9826 GB, free: 118.1 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.656e-05/1.531, allocations: 8.031 kB / 0.9826 GB, free: 118.1 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006971/1.532, allocations: 111.4 kB / 0.9827 GB, free: 118 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001795/1.534, allocations: 0.6867 MB / 0.9834 GB, free: 117.3 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001434/1.534, allocations: 108.7 kB / 0.9835 GB, free: 117.2 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000226/1.534, allocations: 55.98 kB / 0.9836 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00167/1.536, allocations: 1.028 MB / 0.9846 GB, free: 116 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.365e-05/1.536, allocations: 3.938 kB / 0.9846 GB, free: 116 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001136/1.536, allocations: 35.92 kB / 0.9846 GB, free: 116 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.858e-05/1.536, allocations: 53.28 kB / 0.9847 GB, free: 115.9 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001395/1.537, allocations: 0.9107 MB / 0.9855 GB, free: 115 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005695/1.543, allocations: 4.026 MB / 0.9895 GB, free: 110.8 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000862/1.544, allocations: 0.6571 MB / 0.9901 GB, free: 110.2 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002721/1.547, allocations: 2.354 MB / 0.9924 GB, free: 107.6 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006255/1.547, allocations: 0.5031 MB / 0.9929 GB, free: 107 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 2.996e-06/1.547, allocations: 0 / 0.9929 GB, free: 107 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.005137/1.553, allocations: 2.798 MB / 0.9956 GB, free: 104.1 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.25e-05/1.553, allocations: 243.8 kB / 0.9959 GB, free: 103.8 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008621/1.554, allocations: 0.7385 MB / 0.9966 GB, free: 103.1 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.932e-05/1.554, allocations: 37.7 kB / 0.9966 GB, free: 103 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002684/1.554, allocations: 423.7 kB / 0.997 GB, free: 102.6 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/1.554, allocations: 181.5 kB / 0.9972 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.527e-05/1.554, allocations: 15.94 kB / 0.9972 GB, free: 102.4 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.403e-05/1.554, allocations: 338 kB / 0.9975 GB, free: 102.1 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004886/1.555, allocations: 377.7 kB / 0.9979 GB, free: 101.7 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005836/1.555, allocations: 0.6096 MB / 0.9985 GB, free: 101 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005739/1.556, allocations: 451.7 kB / 0.9989 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/1.556, allocations: 4 kB / 0.9989 GB, free: 100.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001865/1.558, allocations: 1.298 MB / 1 GB, free: 99.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.000541/1.558, allocations: 2.476 MB / 1.003 GB, free: 96.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.837e-05/1.558, allocations: 4 kB / 1.003 GB, free: 96.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008844/1.559, allocations: 341.4 kB / 1.003 GB, free: 96.18 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005578/1.56, allocations: 151.8 kB / 1.003 GB, free: 96.03 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001027/1.561, allocations: 1.436 MB / 1.004 GB, free: 94.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007993/1.562, allocations: 47.97 kB / 1.005 GB, free: 94.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.31e-05/1.562, allocations: 43.98 kB / 1.005 GB, free: 94.45 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.196e-05/1.562, allocations: 4 kB / 1.005 GB, free: 94.45 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001752/1.564, allocations: 1.196 MB / 1.006 GB, free: 93.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.391e-05/1.564, allocations: 8 kB / 1.006 GB, free: 93.24 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006718/1.564, allocations: 329.7 kB / 1.006 GB, free: 92.91 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005228/1.565, allocations: 147.8 kB / 1.006 GB, free: 92.77 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009283/1.566, allocations: 1.433 MB / 1.008 GB, free: 91.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007367/1.566, allocations: 55.81 kB / 1.008 GB, free: 91.23 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.479e-05/1.567, allocations: 43.98 kB / 1.008 GB, free: 91.18 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.000516/1.567, allocations: 395.4 kB / 1.008 GB, free: 90.78 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001528/1.567, allocations: 94.91 kB / 1.008 GB, free: 90.69 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00186/1.569, allocations: 1.132 MB / 1.009 GB, free: 89.54 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.523e-06/1.569, allocations: 8 kB / 1.009 GB, free: 89.53 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/1.569, allocations: 4 kB / 1.009 GB, free: 89.52 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/1.569, allocations: 3.984 kB / 1.009 GB, free: 89.52 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002671/1.572, allocations: 1.989 MB / 1.011 GB, free: 87.46 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/1.572, allocations: 0 / 1.011 GB, free: 87.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003877/1.572, allocations: 79.83 kB / 1.011 GB, free: 87.38 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007603/1.573, allocations: 341.4 kB / 1.012 GB, free: 87.04 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.75e-05/1.573, allocations: 19.98 kB / 1.012 GB, free: 87.02 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001187/1.574, allocations: 1.432 MB / 1.013 GB, free: 85.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/1.574, allocations: 0 / 1.013 GB, free: 85.54 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002194/1.576, allocations: 1.626 MB / 1.015 GB, free: 83.88 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006218/1.577, allocations: 260 kB / 1.015 GB, free: 83.61 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002596/1.577, allocations: 16 kB / 1.015 GB, free: 83.59 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008304/1.578, allocations: 47.83 kB / 1.015 GB, free: 83.55 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/1.578, allocations: 48.34 kB / 1.015 GB, free: 83.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.358e-05/1.578, allocations: 36.05 kB / 1.015 GB, free: 83.46 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0009297/1.579, allocations: 0.5732 MB / 1.016 GB, free: 82.89 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.8e-07/1.579, allocations: 0 / 1.016 GB, free: 82.89 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002719/1.582, allocations: 0.6946 MB / 1.016 GB, free: 82.2 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.001997/1.584, allocations: 0.6543 MB / 1.017 GB, free: 81.54 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002763/1.587, allocations: 1.533 MB / 1.018 GB, free: 79.99 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/1.587, allocations: 0 / 1.018 GB, free: 79.99 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009105/1.588, allocations: 0.49 MB / 1.019 GB, free: 79.49 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001453/1.589, allocations: 325 kB / 1.019 GB, free: 79.18 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0031/1.592, allocations: 1.985 MB / 1.021 GB, free: 77.17 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004574/1.593, allocations: 1.029 MB / 1.022 GB, free: 76.11 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001071/1.594, allocations: 302.6 kB / 1.022 GB, free: 75.81 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000201/1.594, allocations: 71.42 kB / 1.023 GB, free: 75.74 MB / 0.5261 GB Notification: Performance of SimCode: time 7.01e-07/1.594, allocations: 0 / 1.023 GB, free: 75.74 MB / 0.5261 GB Notification: Performance of Templates: time 0.03248/1.627, allocations: 21.65 MB / 1.044 GB, free: 54.25 MB / 0.5261 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & ./ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)