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.001069/0.001069, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 225.6 MB / 234.8 MB, free: 3.258 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008908/0.000891, allocations: 95.67 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2126/0.2126, allocations: 45.14 MB / 383.7 MB, free: 272 kB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 1.704e-05/1.706e-05, allocations: 0 / 453.2 MB, free: 75.84 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.127, allocations: 63.25 MB / 0.5044 GB, free: 12.64 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.004/1.131, allocations: 336.8 MB / 0.8333 GB, free: 117.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002099/1.131, allocations: 88.75 kB / 0.8334 GB, free: 117 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.5972/1.728, allocations: 144.7 MB / 0.9747 GB, free: 132.2 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.224e-06/1.728, allocations: 2.906 kB / 0.9747 GB, free: 132.2 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 0.0001464/1.728, allocations: 19.78 kB / 0.9747 GB, free: 132.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.004045/1.732, allocations: 1.18 MB / 0.9758 GB, free: 131.6 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/1.732, allocations: 11.7 kB / 0.9759 GB, free: 131.6 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007623/1.733, allocations: 112.4 kB / 0.976 GB, free: 131.5 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001693/1.735, allocations: 0.6726 MB / 0.9766 GB, free: 131.3 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/1.735, allocations: 91.45 kB / 0.9767 GB, free: 131.2 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/1.735, allocations: 35.19 kB / 0.9767 GB, free: 131.2 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001217/1.736, allocations: 0.8247 MB / 0.9775 GB, free: 131.2 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001218/1.738, allocations: 0.9312 MB / 0.9785 GB, free: 131.1 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/1.738, allocations: 2.062 kB / 0.9785 GB, free: 131.1 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.133e-05/1.738, allocations: 4.562 kB / 0.9785 GB, free: 131.1 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.02e-05/1.738, allocations: 49.17 kB / 0.9785 GB, free: 131.1 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005195/1.743, allocations: 3.86 MB / 0.9823 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007461/1.744, allocations: 0.6208 MB / 0.9829 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004324/1.744, allocations: 394.1 kB / 0.9833 GB, free: 129.4 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002765/1.747, allocations: 2.376 MB / 0.9856 GB, free: 127.9 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005532/1.748, allocations: 495.8 kB / 0.9861 GB, free: 127.8 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=48): time 2.335e-06/1.748, allocations: 0 / 0.9861 GB, free: 127.8 MB / 0.5261 GB Notification: Performance of matching and sorting (n=53): time 0.006185/1.754, allocations: 2.534 MB / 0.9885 GB, free: 127.4 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.898e-05/1.754, allocations: 239.1 kB / 0.9888 GB, free: 127.1 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006217/1.754, allocations: 0.5436 MB / 0.9893 GB, free: 127 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.947e-05/1.755, allocations: 33.11 kB / 0.9893 GB, free: 126.9 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002723/1.755, allocations: 433.6 kB / 0.9897 GB, free: 126.7 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/1.755, allocations: 170.3 kB / 0.9899 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.422e-05/1.755, allocations: 3.812 kB / 0.9899 GB, free: 126.6 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001135/1.755, allocations: 384.9 kB / 0.9903 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000428/1.756, allocations: 352.5 kB / 0.9906 GB, free: 126.3 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005397/1.756, allocations: 0.5866 MB / 0.9912 GB, free: 126 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002165/1.758, allocations: 0.7615 MB / 0.9919 GB, free: 126 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/1.758, allocations: 0 / 0.9919 GB, free: 126 MB / 0.5261 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.003248/1.762, allocations: 1.537 MB / 0.9934 GB, free: 125.9 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005726/1.762, allocations: 2.474 MB / 0.9958 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/1.762, allocations: 10.61 kB / 0.9958 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006685/1.763, allocations: 319.8 kB / 0.9962 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005509/1.763, allocations: 146 kB / 0.9963 GB, free: 123.3 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001762/1.765, allocations: 1.622 MB / 0.9979 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007847/1.766, allocations: 44.69 kB / 0.9979 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.974e-05/1.766, allocations: 43.16 kB / 0.998 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/1.766, allocations: 3.875 kB / 0.998 GB, free: 122.3 MB / 0.5261 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003279/1.769, allocations: 1.411 MB / 0.9993 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/1.769, allocations: 3.969 kB / 0.9993 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005863/1.77, allocations: 311 kB / 0.9996 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005282/1.771, allocations: 156.4 kB / 0.9998 GB, free: 122.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001649/1.772, allocations: 1.578 MB / 1.001 GB, free: 121.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000775/1.773, allocations: 34.38 kB / 1.001 GB, free: 121.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.778e-05/1.773, allocations: 41.14 kB / 1.001 GB, free: 121.2 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.0003241/1.773, allocations: 171.8 kB / 1.002 GB, free: 121 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001286/1.774, allocations: 73.44 kB / 1.002 GB, free: 121 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002894/1.776, allocations: 1.236 MB / 1.003 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.765e-06/1.776, allocations: 6.406 kB / 1.003 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/1.776, allocations: 3.844 kB / 1.003 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/1.776, allocations: 0 / 1.003 GB, free: 120.9 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003589/1.78, allocations: 2.016 MB / 1.005 GB, free: 120.6 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.548e-06/1.78, allocations: 3.438 kB / 1.005 GB, free: 120.6 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003947/1.78, allocations: 82.31 kB / 1.005 GB, free: 120.6 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000662/1.781, allocations: 318.7 kB / 1.005 GB, free: 120.6 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.073e-05/1.781, allocations: 15.14 kB / 1.005 GB, free: 120.6 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001678/1.783, allocations: 1.592 MB / 1.007 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/1.783, allocations: 0 / 1.007 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00285/1.786, allocations: 1.707 MB / 1.008 GB, free: 119.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004282/1.786, allocations: 253.7 kB / 1.009 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001305/1.786, allocations: 7.781 kB / 1.009 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005372/1.787, allocations: 34.02 kB / 1.009 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/1.787, allocations: 52.61 kB / 1.009 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.981e-05/1.787, allocations: 34.41 kB / 1.009 GB, free: 119.2 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0005333/1.788, allocations: 430.4 kB / 1.009 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.61e-07/1.788, allocations: 3.812 kB / 1.009 GB, free: 119.1 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002351/1.79, allocations: 0.6499 MB / 1.01 GB, free: 119 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,2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001298/1.791, allocations: 0.6372 MB / 1.01 GB, free: 118.8 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.002425/1.794, allocations: 1.477 MB / 1.012 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/1.794, allocations: 0 / 1.012 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0007178/1.795, allocations: 469.3 kB / 1.012 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00122/1.796, allocations: 271.8 kB / 1.013 GB, free: 118.6 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002293/1.798, allocations: 1.24 MB / 1.014 GB, free: 118.3 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004355/1.798, allocations: 1.03 MB / 1.015 GB, free: 117.6 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001029/1.8, allocations: 327 kB / 1.015 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001378/1.8, allocations: 62.06 kB / 1.015 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of SimCode: time 4.5e-07/1.8, allocations: 3.75 kB / 1.015 GB, free: 117.5 MB / 0.5261 GB Notification: Performance of Templates: time 0.02897/1.829, allocations: 19.93 MB / 1.035 GB, free: 116.4 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)