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.002688/0.002687, allocations: 170.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 221.5 MB / 230.7 MB, free: 7.559 MB / 186.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.0009739, allocations: 100.4 kB / 281.6 MB, free: 5.305 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.259/0.259, allocations: 44.16 MB / 376.5 MB, free: 3.02 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.641e-05/1.643e-05, allocations: 4.203 kB / 444.6 MB, free: 15.2 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1624/0.1624, allocations: 61.91 MB / 0.4947 GB, free: 1.234 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.166/1.328, allocations: 335.8 MB / 0.8226 GB, free: 53.54 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003004/1.329, allocations: 87.44 kB / 0.8227 GB, free: 53.49 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.7322/2.061, allocations: 144.9 MB / 0.9641 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.345e-06/2.061, allocations: 3.938 kB / 0.9641 GB, free: 129.8 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.0001649/2.061, allocations: 20 kB / 0.9642 GB, free: 129.7 MB / 0.5105 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.005016/2.066, allocations: 1.178 MB / 0.9653 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.936e-05/2.066, allocations: 11.98 kB / 0.9653 GB, free: 128.5 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009504/2.067, allocations: 111.4 kB / 0.9654 GB, free: 128.4 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002075/2.069, allocations: 0.6859 MB / 0.9661 GB, free: 127.7 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/2.07, allocations: 84.7 kB / 0.9662 GB, free: 127.6 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002775/2.07, allocations: 36 kB / 0.9662 GB, free: 127.5 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001557/2.071, allocations: 0.8264 MB / 0.967 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/2.073, allocations: 0.9356 MB / 0.9679 GB, free: 125.7 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.876e-05/2.073, allocations: 0 / 0.9679 GB, free: 125.7 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001267/2.073, allocations: 4 kB / 0.9679 GB, free: 125.7 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.217e-05/2.073, allocations: 49.28 kB / 0.968 GB, free: 125.7 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00657/2.08, allocations: 3.875 MB / 0.9718 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008495/2.081, allocations: 0.6258 MB / 0.9724 GB, free: 121 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004633/2.081, allocations: 386.2 kB / 0.9727 GB, free: 120.7 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003335/2.085, allocations: 2.368 MB / 0.9751 GB, free: 118.1 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006019/2.085, allocations: 495.2 kB / 0.9755 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=48): time 3.096e-06/2.085, allocations: 0 / 0.9755 GB, free: 117.5 MB / 0.5105 GB Notification: Performance of matching and sorting (n=53): time 0.007507/2.093, allocations: 2.531 MB / 0.978 GB, free: 115 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/2.093, allocations: 235.8 kB / 0.9782 GB, free: 114.7 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001123/2.094, allocations: 0.5503 MB / 0.9788 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001267/2.094, allocations: 29.7 kB / 0.9788 GB, free: 114.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005773/2.095, allocations: 439 kB / 0.9792 GB, free: 113.6 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002297/2.095, allocations: 161.7 kB / 0.9794 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.664e-05/2.095, allocations: 3.938 kB / 0.9794 GB, free: 113.5 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.000213/2.095, allocations: 386.8 kB / 0.9797 GB, free: 113.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005723/2.096, allocations: 353.3 kB / 0.9801 GB, free: 112.7 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007306/2.097, allocations: 0.5827 MB / 0.9806 GB, free: 112.1 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002478/2.099, allocations: 0.7123 MB / 0.9813 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-05/2.099, allocations: 0 / 0.9813 GB, free: 111.4 MB / 0.5105 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003661/2.103, allocations: 1.48 MB / 0.9828 GB, free: 109.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007488/2.104, allocations: 2.481 MB / 0.9852 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.521e-05/2.104, allocations: 4 kB / 0.9852 GB, free: 107.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007125/2.105, allocations: 317.4 kB / 0.9855 GB, free: 106.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006044/2.105, allocations: 147.8 kB / 0.9857 GB, free: 106.7 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002013/2.107, allocations: 1.631 MB / 0.9873 GB, free: 105 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009538/2.108, allocations: 31.97 kB / 0.9873 GB, free: 105 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001347/2.108, allocations: 43.98 kB / 0.9873 GB, free: 105 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.464e-05/2.108, allocations: 4 kB / 0.9873 GB, free: 105 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003086/2.111, allocations: 1.354 MB / 0.9886 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.878e-05/2.111, allocations: 15.92 kB / 0.9887 GB, free: 103.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006415/2.112, allocations: 309.8 kB / 0.989 GB, free: 103.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005489/2.113, allocations: 155.9 kB / 0.9891 GB, free: 103.1 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001771/2.114, allocations: 1.585 MB / 0.9907 GB, free: 101.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009935/2.115, allocations: 31.91 kB / 0.9907 GB, free: 101.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/2.116, allocations: 39.98 kB / 0.9907 GB, free: 101.4 MB / 0.5105 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 () * 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.000352/2.116, allocations: 174.4 kB / 0.9909 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000242/2.116, allocations: 83.02 kB / 0.991 GB, free: 101.1 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003066/2.119, allocations: 1.227 MB / 0.9922 GB, free: 99.89 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.548e-06/2.119, allocations: 8 kB / 0.9922 GB, free: 99.88 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.814e-06/2.119, allocations: 0 / 0.9922 GB, free: 99.88 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/2.119, allocations: 0 / 0.9922 GB, free: 99.88 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003966/2.123, allocations: 2.016 MB / 0.9941 GB, free: 97.83 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/2.123, allocations: 0 / 0.9941 GB, free: 97.83 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004073/2.124, allocations: 83.89 kB / 0.9942 GB, free: 97.75 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006474/2.124, allocations: 312.4 kB / 0.9945 GB, free: 97.44 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.161e-05/2.125, allocations: 11.95 kB / 0.9945 GB, free: 97.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001802/2.126, allocations: 1.596 MB / 0.9961 GB, free: 95.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/2.126, allocations: 3.938 kB / 0.9961 GB, free: 95.77 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003193/2.13, allocations: 1.708 MB / 0.9978 GB, free: 94.04 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006248/2.13, allocations: 252 kB / 0.998 GB, free: 93.78 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000291/2.13, allocations: 4 kB / 0.998 GB, free: 93.77 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007372/2.131, allocations: 35.88 kB / 0.998 GB, free: 93.74 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001551/2.131, allocations: 60.36 kB / 0.9981 GB, free: 93.68 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.755e-05/2.131, allocations: 24.05 kB / 0.9981 GB, free: 93.66 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0006439/2.132, allocations: 435.1 kB / 0.9985 GB, free: 93.24 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.5e-07/2.132, allocations: 0 / 0.9985 GB, free: 93.24 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002849/2.135, allocations: 0.6497 MB / 0.9992 GB, free: 92.59 MB / 0.5105 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) * 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,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.002611/2.138, allocations: 0.6272 MB / 0.9998 GB, free: 92 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.002839/2.14, allocations: 1.479 MB / 1.001 GB, free: 90.5 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/2.141, allocations: 0.5625 kB / 1.001 GB, free: 90.5 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0008026/2.141, allocations: 472.9 kB / 1.002 GB, free: 90.02 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001643/2.143, allocations: 266.9 kB / 1.002 GB, free: 89.76 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003163/2.146, allocations: 1.236 MB / 1.003 GB, free: 88.5 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006568/2.147, allocations: 1.03 MB / 1.004 GB, free: 87.44 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001294/2.148, allocations: 325.5 kB / 1.004 GB, free: 87.12 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001862/2.148, allocations: 59.41 kB / 1.005 GB, free: 87.06 MB / 0.5105 GB Notification: Performance of SimCode: time 1.062e-06/2.148, allocations: 3.938 kB / 1.005 GB, free: 87.05 MB / 0.5105 GB Notification: Performance of Templates: time 0.03542/2.184, allocations: 19.9 MB / 1.024 GB, free: 67.28 MB / 0.5105 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)