Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_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_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_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001356/0.001355, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.347/1.347, allocations: 227.2 MB / 245 MB, free: 5.891 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008961/0.0008965, allocations: 101.9 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3674/0.3674, allocations: 45.22 MB / 394.7 MB, free: 31.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00026/0.00026, allocations: 11.94 kB / 468.4 MB, free: 7.707 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.321, allocations: 63.25 MB / 0.5192 GB, free: 37.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5654/0.8865, allocations: 337.5 MB / 0.8488 GB, free: 10.78 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002391/0.8868, allocations: 91.94 kB / 0.8489 GB, free: 10.73 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.58/1.467, allocations: 146.3 MB / 0.9918 GB, free: 99.03 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.152e-06/1.467, allocations: 0 / 0.9918 GB, free: 99.03 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001021/1.467, allocations: 23.94 kB / 0.9918 GB, free: 99.01 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.004017/1.471, allocations: 1.292 MB / 0.9931 GB, free: 97.66 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/1.471, allocations: 8.031 kB / 0.9931 GB, free: 97.65 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007439/1.472, allocations: 106.9 kB / 0.9932 GB, free: 97.54 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001899/1.474, allocations: 0.679 MB / 0.9939 GB, free: 96.82 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00013/1.474, allocations: 116.7 kB / 0.994 GB, free: 96.7 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002435/1.474, allocations: 55.94 kB / 0.994 GB, free: 96.64 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001788/1.476, allocations: 1.036 MB / 0.995 GB, free: 95.56 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.533e-05/1.476, allocations: 0 / 0.995 GB, free: 95.56 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001216/1.476, allocations: 24 kB / 0.9951 GB, free: 95.54 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.902e-05/1.476, allocations: 49.28 kB / 0.9951 GB, free: 95.48 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001439/1.478, allocations: 0.9184 MB / 0.996 GB, free: 94.56 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005987/1.484, allocations: 4.013 MB / 0.9999 GB, free: 90.36 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008978/1.485, allocations: 0.6606 MB / 1.001 GB, free: 89.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003005/1.488, allocations: 2.365 MB / 1.003 GB, free: 87.08 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006295/1.488, allocations: 0.4992 MB / 1.003 GB, free: 86.55 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 2.986e-06/1.488, allocations: 4 kB / 1.003 GB, free: 86.55 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.005344/1.494, allocations: 2.794 MB / 1.006 GB, free: 83.62 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.336e-05/1.494, allocations: 243.8 kB / 1.006 GB, free: 83.33 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009678/1.495, allocations: 0.7384 MB / 1.007 GB, free: 82.58 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 7.603e-05/1.495, allocations: 37.7 kB / 1.007 GB, free: 82.54 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.000256/1.495, allocations: 423.8 kB / 1.008 GB, free: 82.12 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001432/1.495, allocations: 173.5 kB / 1.008 GB, free: 81.95 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.707e-05/1.495, allocations: 20 kB / 1.008 GB, free: 81.93 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.038e-05/1.495, allocations: 341.8 kB / 1.008 GB, free: 81.59 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005212/1.496, allocations: 377.8 kB / 1.008 GB, free: 81.22 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006071/1.496, allocations: 0.6018 MB / 1.009 GB, free: 80.51 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006044/1.497, allocations: 467.6 kB / 1.009 GB, free: 80.05 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/1.497, allocations: 0 / 1.009 GB, free: 80.05 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001906/1.499, allocations: 1.282 MB / 1.011 GB, free: 78.74 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005023/1.499, allocations: 2.473 MB / 1.013 GB, free: 76.07 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.596e-05/1.499, allocations: 8 kB / 1.013 GB, free: 76.07 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009036/1.5, allocations: 345.3 kB / 1.013 GB, free: 75.72 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005783/1.501, allocations: 143.8 kB / 1.014 GB, free: 75.58 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00105/1.502, allocations: 1.444 MB / 1.015 GB, free: 74.09 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000856/1.503, allocations: 51.91 kB / 1.015 GB, free: 74.04 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000106/1.503, allocations: 43.98 kB / 1.015 GB, free: 73.99 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/1.503, allocations: 8.125 kB / 1.015 GB, free: 73.98 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001766/1.505, allocations: 1.203 MB / 1.016 GB, free: 72.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/1.505, allocations: 8 kB / 1.016 GB, free: 72.76 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007551/1.506, allocations: 325.8 kB / 1.017 GB, free: 72.43 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005537/1.506, allocations: 151.7 kB / 1.017 GB, free: 72.29 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009194/1.507, allocations: 1.425 MB / 1.018 GB, free: 70.81 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007753/1.508, allocations: 51.81 kB / 1.018 GB, free: 70.76 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.756e-05/1.508, allocations: 44.11 kB / 1.018 GB, free: 70.71 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.000538/1.509, allocations: 390.5 kB / 1.019 GB, free: 70.32 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/1.509, allocations: 86.97 kB / 1.019 GB, free: 70.23 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002001/1.511, allocations: 1.144 MB / 1.02 GB, free: 69.06 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.703e-06/1.511, allocations: 7.938 kB / 1.02 GB, free: 69.05 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/1.511, allocations: 0 / 1.02 GB, free: 69.05 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/1.511, allocations: 7.984 kB / 1.02 GB, free: 69.04 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002821/1.514, allocations: 1.985 MB / 1.022 GB, free: 66.99 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/1.514, allocations: 3.984 kB / 1.022 GB, free: 66.99 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004059/1.514, allocations: 75.91 kB / 1.022 GB, free: 66.91 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000794/1.515, allocations: 337.5 kB / 1.022 GB, free: 66.58 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.336e-05/1.515, allocations: 27.92 kB / 1.022 GB, free: 66.55 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009961/1.516, allocations: 1.429 MB / 1.024 GB, free: 65.07 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.516, allocations: 0 / 1.024 GB, free: 65.07 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002052/1.518, allocations: 1.628 MB / 1.025 GB, free: 63.41 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005312/1.519, allocations: 267.9 kB / 1.025 GB, free: 63.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002018/1.519, allocations: 12 kB / 1.025 GB, free: 63.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006908/1.519, allocations: 48.02 kB / 1.025 GB, free: 63.07 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001352/1.52, allocations: 52.36 kB / 1.025 GB, free: 63.02 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.91e-05/1.52, allocations: 27.98 kB / 1.026 GB, free: 62.99 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0007294/1.52, allocations: 0.5771 MB / 1.026 GB, free: 62.42 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.6e-07/1.52, allocations: 0 / 1.026 GB, free: 62.42 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00231/1.523, allocations: 0.6947 MB / 1.027 GB, free: 61.73 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.001982/1.525, allocations: 0.6566 MB / 1.027 GB, free: 61.07 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002833/1.528, allocations: 1.541 MB / 1.029 GB, free: 59.51 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.23e-06/1.528, allocations: 0 / 1.029 GB, free: 59.51 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0009331/1.529, allocations: 0.49 MB / 1.029 GB, free: 59 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001607/1.53, allocations: 338 kB / 1.03 GB, free: 58.68 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003277/1.533, allocations: 1.984 MB / 1.032 GB, free: 56.67 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004511/1.534, allocations: 1.025 MB / 1.033 GB, free: 55.62 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001064/1.535, allocations: 322.5 kB / 1.033 GB, free: 55.3 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001954/1.535, allocations: 71.42 kB / 1.033 GB, free: 55.23 MB / 0.5261 GB Notification: Performance of SimCode: time 6.11e-07/1.535, allocations: 0 / 1.033 GB, free: 55.23 MB / 0.5261 GB Notification: Performance of Templates: time 0.03195/1.567, allocations: 21.69 MB / 1.054 GB, free: 33.64 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & ./ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)