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.001367/0.001368, allocations: 179.6 kB / 14.15 MB, free: 1.176 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.43/1.43, allocations: 221.4 MB / 236 MB, free: 2.973 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.0009645/0.0009644, allocations: 95.61 kB / 287 MB, free: 256 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.223/0.223, allocations: 44.15 MB / 382 MB, free: 14.69 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.683e-05/2.686e-05, allocations: 224 / 451.8 MB, free: 9.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1329/0.1329, allocations: 61.92 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9492/1.082, allocations: 336.4 MB / 0.8302 GB, free: 71.56 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002286/1.082, allocations: 86.08 kB / 0.8303 GB, free: 71.52 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.6517/1.734, allocations: 146 MB / 0.9729 GB, free: 143.8 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.513e-06/1.734, allocations: 0 / 0.9729 GB, free: 143.8 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 8.819e-05/1.734, allocations: 21.34 kB / 0.973 GB, free: 143.8 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.002854/1.737, allocations: 1.178 MB / 0.9741 GB, free: 143 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/1.737, allocations: 7.781 kB / 0.9741 GB, free: 143 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004071/1.738, allocations: 116.2 kB / 0.9742 GB, free: 142.9 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001368/1.739, allocations: 0.6851 MB / 0.9749 GB, free: 142.5 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001037/1.739, allocations: 108.8 kB / 0.975 GB, free: 142.4 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/1.739, allocations: 53.91 kB / 0.9751 GB, free: 142.4 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001501/1.741, allocations: 1.014 MB / 0.9761 GB, free: 142 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/1.741, allocations: 3.625 kB / 0.9761 GB, free: 142 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.154e-05/1.741, allocations: 30.34 kB / 0.9761 GB, free: 141.9 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-05/1.741, allocations: 52.69 kB / 0.9761 GB, free: 141.9 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001219/1.742, allocations: 0.8946 MB / 0.977 GB, free: 141.6 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0052/1.747, allocations: 4.017 MB / 0.9809 GB, free: 139.1 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008621/1.748, allocations: 0.6476 MB / 0.9816 GB, free: 138.9 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004772/1.749, allocations: 414.1 kB / 0.982 GB, free: 138.7 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002704/1.751, allocations: 2.421 MB / 0.9843 GB, free: 136.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006259/1.752, allocations: 0.4969 MB / 0.9848 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 2.345e-06/1.752, allocations: 0 / 0.9848 GB, free: 136.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.003579/1.756, allocations: 2.137 MB / 0.9869 GB, free: 135.7 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.206e-05/1.756, allocations: 237.5 kB / 0.9871 GB, free: 135.4 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008881/1.757, allocations: 0.7341 MB / 0.9878 GB, free: 135.1 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 6.239e-05/1.757, allocations: 41.2 kB / 0.9879 GB, free: 135 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002429/1.757, allocations: 426.2 kB / 0.9883 GB, free: 134.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/1.757, allocations: 176.7 kB / 0.9885 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.495e-05/1.757, allocations: 15.75 kB / 0.9885 GB, free: 134.6 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.978e-05/1.757, allocations: 338.7 kB / 0.9888 GB, free: 134.2 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004795/1.758, allocations: 363.4 kB / 0.9891 GB, free: 134.1 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006078/1.758, allocations: 0.6025 MB / 0.9897 GB, free: 133.7 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005648/1.759, allocations: 455.3 kB / 0.9902 GB, free: 133.5 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/1.759, allocations: 6.281 kB / 0.9902 GB, free: 133.5 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001969/1.761, allocations: 1.272 MB / 0.9914 GB, free: 133.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006557/1.762, allocations: 2.474 MB / 0.9938 GB, free: 130.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/1.762, allocations: 11.77 kB / 0.9938 GB, free: 130.4 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009894/1.763, allocations: 336.9 kB / 0.9942 GB, free: 130.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005856/1.763, allocations: 156 kB / 0.9943 GB, free: 130.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001211/1.764, allocations: 1.428 MB / 0.9957 GB, free: 129.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001071/1.766, allocations: 53.45 kB / 0.9957 GB, free: 129.1 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/1.766, allocations: 46.2 kB / 0.9958 GB, free: 129.1 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/1.766, allocations: 3.938 kB / 0.9958 GB, free: 129.1 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002044/1.768, allocations: 1.178 MB / 0.9969 GB, free: 128.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.013e-05/1.768, allocations: 7.875 kB / 0.997 GB, free: 128.7 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000742/1.769, allocations: 328 kB / 0.9973 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000513/1.769, allocations: 145.3 kB / 0.9974 GB, free: 128.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009874/1.77, allocations: 1.427 MB / 0.9988 GB, free: 127.4 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008532/1.771, allocations: 57.41 kB / 0.9989 GB, free: 127.4 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.155e-05/1.771, allocations: 40.69 kB / 0.9989 GB, free: 127.4 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 () * 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.0002911/1.771, allocations: 189.7 kB / 0.9991 GB, free: 127.2 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001459/1.771, allocations: 98.05 kB / 0.9992 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001956/1.773, allocations: 1.124 MB / 1 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/1.773, allocations: 10.8 kB / 1 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/1.773, allocations: 3.812 kB / 1 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/1.773, allocations: 3.75 kB / 1 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002668/1.776, allocations: 1.975 MB / 1.002 GB, free: 125.8 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/1.776, allocations: 0 / 1.002 GB, free: 125.8 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003901/1.777, allocations: 79.42 kB / 1.002 GB, free: 125.8 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007654/1.777, allocations: 331 kB / 1.003 GB, free: 125.8 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.595e-05/1.777, allocations: 23.3 kB / 1.003 GB, free: 125.7 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009777/1.778, allocations: 1.431 MB / 1.004 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/1.778, allocations: 0 / 1.004 GB, free: 124.6 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002063/1.78, allocations: 1.603 MB / 1.006 GB, free: 123.9 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005504/1.781, allocations: 269.5 kB / 1.006 GB, free: 123.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001339/1.781, allocations: 15.78 kB / 1.006 GB, free: 123.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006111/1.782, allocations: 45.75 kB / 1.006 GB, free: 123.7 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001331/1.782, allocations: 53.64 kB / 1.006 GB, free: 123.7 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.958e-05/1.782, allocations: 29.62 kB / 1.006 GB, free: 123.7 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0007233/1.783, allocations: 0.5727 MB / 1.007 GB, free: 123.4 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.5e-07/1.783, allocations: 4 kB / 1.007 GB, free: 123.4 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002101/1.785, allocations: 0.6909 MB / 1.007 GB, free: 122.9 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) * 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.00147/1.786, allocations: 0.624 MB / 1.008 GB, free: 122.4 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002636/1.789, allocations: 1.552 MB / 1.009 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.759e-06/1.789, allocations: 0 / 1.009 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0008697/1.79, allocations: 499 kB / 1.01 GB, free: 120.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001638/1.792, allocations: 332.1 kB / 1.01 GB, free: 120.2 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002541/1.794, allocations: 1.296 MB / 1.011 GB, free: 118.9 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004682/1.795, allocations: 1.027 MB / 1.012 GB, free: 117.9 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001284/1.796, allocations: 393.9 kB / 1.013 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000159/1.796, allocations: 59.41 kB / 1.013 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of SimCode: time 1.783e-06/1.796, allocations: 0 / 1.013 GB, free: 117.4 MB / 0.5261 GB Notification: Performance of Templates: time 0.03441/1.83, allocations: 23.25 MB / 1.036 GB, free: 94.33 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)