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.001621/0.001621, allocations: 205.2 kB / 18.11 MB, free: 3.613 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 226.5 MB / 245.4 MB, free: 8.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009598/0.0009599, allocations: 103.8 kB / 297.5 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.4463/0.4463, allocations: 44.82 MB / 394.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003473/0.0003475, allocations: 11.98 kB / 467.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.485/0.4854, allocations: 62.96 MB / 0.5184 GB, free: 37.34 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7435/1.229, allocations: 337.5 MB / 0.848 GB, free: 13.91 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002792/1.229, allocations: 94.5 kB / 0.8481 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.6187/1.848, allocations: 145.5 MB / 0.9902 GB, free: 104.2 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.533e-06/1.848, allocations: 0 / 0.9902 GB, free: 104.2 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.33e-05/1.848, allocations: 23.98 kB / 0.9902 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.004053/1.852, allocations: 1.288 MB / 0.9915 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.591e-05/1.852, allocations: 8.031 kB / 0.9915 GB, free: 102.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000694/1.853, allocations: 107.8 kB / 0.9916 GB, free: 102.7 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001697/1.855, allocations: 0.7042 MB / 0.9923 GB, free: 102 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001138/1.855, allocations: 108.7 kB / 0.9924 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002105/1.855, allocations: 55.98 kB / 0.9924 GB, free: 101.8 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001699/1.857, allocations: 1.032 MB / 0.9934 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/1.857, allocations: 4 kB / 0.9934 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001083/1.857, allocations: 31.98 kB / 0.9935 GB, free: 100.7 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.629e-05/1.857, allocations: 49.28 kB / 0.9935 GB, free: 100.6 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/1.858, allocations: 0.9146 MB / 0.9944 GB, free: 99.71 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005464/1.864, allocations: 3.978 MB / 0.9983 GB, free: 95.55 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009353/1.865, allocations: 0.6589 MB / 0.9989 GB, free: 94.89 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005093/1.865, allocations: 410.2 kB / 0.9993 GB, free: 94.48 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003036/1.868, allocations: 2.357 MB / 1.002 GB, free: 91.88 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006713/1.869, allocations: 0.4992 MB / 1.002 GB, free: 91.35 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 2.875e-06/1.869, allocations: 0 / 1.002 GB, free: 91.35 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.005676/1.875, allocations: 2.725 MB / 1.005 GB, free: 88.51 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.492e-05/1.875, allocations: 243.8 kB / 1.005 GB, free: 88.22 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009579/1.876, allocations: 0.8367 MB / 1.006 GB, free: 87.37 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.96e-05/1.876, allocations: 33.7 kB / 1.006 GB, free: 87.33 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002741/1.876, allocations: 431.7 kB / 1.006 GB, free: 86.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001678/1.876, allocations: 173.5 kB / 1.006 GB, free: 86.73 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.58e-05/1.876, allocations: 16 kB / 1.006 GB, free: 86.71 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.168e-05/1.876, allocations: 341.9 kB / 1.007 GB, free: 86.38 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005374/1.877, allocations: 369.8 kB / 1.007 GB, free: 86.01 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006269/1.878, allocations: 0.6096 MB / 1.008 GB, free: 85.29 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/1.879, allocations: 0.9701 MB / 1.009 GB, free: 84.22 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/1.879, allocations: 4 kB / 1.009 GB, free: 84.21 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001935/1.881, allocations: 1.294 MB / 1.01 GB, free: 82.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001421/1.881, allocations: 302.8 kB / 1.01 GB, free: 82.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.37e-05/1.881, allocations: 7.984 kB / 1.01 GB, free: 82.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008547/1.882, allocations: 345.3 kB / 1.011 GB, free: 82.16 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005475/1.882, allocations: 151.7 kB / 1.011 GB, free: 82.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/1.883, allocations: 1.444 MB / 1.012 GB, free: 80.52 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008012/1.884, allocations: 56.03 kB / 1.012 GB, free: 80.46 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001226/1.884, allocations: 43.98 kB / 1.012 GB, free: 80.42 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 8.496e-06/1.884, allocations: 4 kB / 1.012 GB, free: 80.41 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001747/1.886, allocations: 1.199 MB / 1.013 GB, free: 79.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/1.886, allocations: 4 kB / 1.013 GB, free: 79.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006623/1.887, allocations: 325.8 kB / 1.014 GB, free: 78.87 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005141/1.887, allocations: 151.7 kB / 1.014 GB, free: 78.72 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008997/1.888, allocations: 1.425 MB / 1.015 GB, free: 77.25 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007165/1.889, allocations: 47.91 kB / 1.015 GB, free: 77.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.854e-05/1.889, allocations: 43.92 kB / 1.015 GB, free: 77.16 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.0005104/1.889, allocations: 400.5 kB / 1.016 GB, free: 76.75 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001346/1.89, allocations: 90.88 kB / 1.016 GB, free: 76.66 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001898/1.892, allocations: 1.129 MB / 1.017 GB, free: 75.52 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.743e-06/1.892, allocations: 4 kB / 1.017 GB, free: 75.51 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.049e-06/1.892, allocations: 0 / 1.017 GB, free: 75.51 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/1.892, allocations: 7.938 kB / 1.017 GB, free: 75.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002606/1.894, allocations: 1.993 MB / 1.019 GB, free: 73.44 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/1.894, allocations: 0 / 1.019 GB, free: 73.44 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000366/1.895, allocations: 84.02 kB / 1.019 GB, free: 73.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007189/1.895, allocations: 345.4 kB / 1.019 GB, free: 73.01 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.705e-05/1.895, allocations: 19.98 kB / 1.019 GB, free: 72.99 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009505/1.896, allocations: 1.429 MB / 1.021 GB, free: 71.51 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/1.896, allocations: 7.875 kB / 1.021 GB, free: 71.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001969/1.898, allocations: 1.622 MB / 1.022 GB, free: 69.86 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004026/1.899, allocations: 271.8 kB / 1.023 GB, free: 69.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/1.899, allocations: 16.12 kB / 1.023 GB, free: 69.55 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005824/1.899, allocations: 39.95 kB / 1.023 GB, free: 69.52 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/1.9, allocations: 56.3 kB / 1.023 GB, free: 69.46 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.43e-05/1.9, allocations: 31.98 kB / 1.023 GB, free: 69.43 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.000651/1.9, allocations: 0.5771 MB / 1.023 GB, free: 68.86 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.8e-07/1.9, allocations: 0 / 1.023 GB, free: 68.86 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002121/1.902, allocations: 0.6947 MB / 1.024 GB, free: 68.16 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.002189/1.905, allocations: 0.6627 MB / 1.025 GB, free: 67.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002754/1.907, allocations: 1.542 MB / 1.026 GB, free: 65.94 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/1.907, allocations: 0 / 1.026 GB, free: 65.94 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008966/1.908, allocations: 0.49 MB / 1.027 GB, free: 65.43 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001643/1.91, allocations: 343.2 kB / 1.027 GB, free: 65.1 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002933/1.913, allocations: 1.977 MB / 1.029 GB, free: 63.1 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004731/1.913, allocations: 1.017 MB / 1.03 GB, free: 62.05 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001078/1.915, allocations: 310.5 kB / 1.03 GB, free: 61.74 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001858/1.915, allocations: 71.42 kB / 1.03 GB, free: 61.67 MB / 0.5261 GB Notification: Performance of SimCode: time 9.31e-07/1.915, allocations: 4 kB / 1.03 GB, free: 61.66 MB / 0.5261 GB Notification: Performance of Templates: time 0.03146/1.946, allocations: 22.31 MB / 1.052 GB, free: 39.48 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)