Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.007642/0.007642, allocations: 178.7 kB / 7.447 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 2.38/2.38, allocations: 170.6 MB / 178.4 MB, free: 15.36 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001908/0.001908, allocations: 100.5 kB / 217.7 MB, free: 8.141 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.2281/0.2281, allocations: 37.97 MB / 294.8 MB, free: 9.602 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.083e-05/1.086e-05, allocations: 1.281 kB / 349.5 MB, free: 37.09 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1482/0.1482, allocations: 48.7 MB / 398.2 MB, free: 5.668 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.032/1.18, allocations: 323 MB / 0.7044 GB, free: 69.66 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003931/1.18, allocations: 84.55 kB / 0.7044 GB, free: 69.62 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.6703/1.851, allocations: 140.8 MB / 0.8419 GB, free: 101.6 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001718/1.851, allocations: 24.66 kB / 0.8419 GB, free: 101.6 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.005609/1.857, allocations: 1.168 MB / 0.8431 GB, free: 100.7 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.961e-05/1.857, allocations: 9.312 kB / 0.8431 GB, free: 100.7 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001094/1.858, allocations: 106.8 kB / 0.8432 GB, free: 100.6 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002664/1.861, allocations: 0.7127 MB / 0.8439 GB, free: 100.1 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001676/1.861, allocations: 87.53 kB / 0.844 GB, free: 100 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003197/1.861, allocations: 31.41 kB / 0.844 GB, free: 100 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002386/1.863, allocations: 0.838 MB / 0.8448 GB, free: 99.67 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002367/1.866, allocations: 0.9314 MB / 0.8457 GB, free: 99.12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.026e-05/1.866, allocations: 5.344 kB / 0.8457 GB, free: 99.11 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001494/1.866, allocations: 2.219 kB / 0.8457 GB, free: 99.11 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001289/1.866, allocations: 59.34 kB / 0.8458 GB, free: 99.09 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009617/1.876, allocations: 3.906 MB / 0.8496 GB, free: 95.87 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008123/1.877, allocations: 0.5026 MB / 0.8501 GB, free: 95.36 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005288/1.877, allocations: 378 kB / 0.8505 GB, free: 94.99 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00404/1.881, allocations: 2.358 MB / 0.8528 GB, free: 92.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005781/1.882, allocations: 425.5 kB / 0.8532 GB, free: 91.96 MB / 426.7 MB Notification: Performance of pre-optimization done (n=45): time 3.045e-06/1.882, allocations: 0 / 0.8532 GB, free: 91.96 MB / 426.7 MB Notification: Performance of matching and sorting (n=50): time 0.008067/1.89, allocations: 2.445 MB / 0.8556 GB, free: 89.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.41e-05/1.89, allocations: 162.2 kB / 0.8557 GB, free: 89.26 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009586/1.891, allocations: 0.5464 MB / 0.8562 GB, free: 88.71 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 7.864e-05/1.891, allocations: 25.7 kB / 0.8563 GB, free: 88.68 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003372/1.891, allocations: 362.7 kB / 0.8566 GB, free: 88.32 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001859/1.892, allocations: 161.6 kB / 0.8568 GB, free: 88.16 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.412e-05/1.892, allocations: 0 / 0.8568 GB, free: 88.16 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001777/1.892, allocations: 386.8 kB / 0.8571 GB, free: 87.77 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005576/1.892, allocations: 349.6 kB / 0.8575 GB, free: 87.43 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007164/1.893, allocations: 0.6176 MB / 0.8581 GB, free: 86.68 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00454/1.898, allocations: 1.102 MB / 0.8592 GB, free: 85.59 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.997e-06/1.898, allocations: 4 kB / 0.8592 GB, free: 85.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.005882/1.904, allocations: 1.809 MB / 0.8609 GB, free: 83.76 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001093/1.905, allocations: 3.391 MB / 0.8642 GB, free: 80.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.101e-05/1.905, allocations: 11.91 kB / 0.8642 GB, free: 80.09 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008471/1.906, allocations: 321.5 kB / 0.8646 GB, free: 79.77 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006825/1.906, allocations: 163.7 kB / 0.8647 GB, free: 79.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002351/1.909, allocations: 1.678 MB / 0.8664 GB, free: 77.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001069/1.91, allocations: 36.03 kB / 0.8664 GB, free: 77.84 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/1.91, allocations: 47.98 kB / 0.8664 GB, free: 77.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/1.91, allocations: 4 kB / 0.8664 GB, free: 77.79 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004698/1.915, allocations: 1.461 MB / 0.8679 GB, free: 76.33 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.41e-05/1.915, allocations: 11.98 kB / 0.8679 GB, free: 76.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006649/1.915, allocations: 237.6 kB / 0.8681 GB, free: 76.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006203/1.916, allocations: 159.7 kB / 0.8683 GB, free: 75.92 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001808/1.918, allocations: 2.171 MB / 0.8704 GB, free: 73.61 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008958/1.919, allocations: 32.17 kB / 0.8704 GB, free: 73.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/1.919, allocations: 44 kB / 0.8704 GB, free: 73.54 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 86 * 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.0003868/1.919, allocations: 171.1 kB / 0.8706 GB, free: 73.36 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002538/1.92, allocations: 75.06 kB / 0.8707 GB, free: 73.29 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003318/1.923, allocations: 1.198 MB / 0.8718 GB, free: 72.07 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.196e-06/1.923, allocations: 4 kB / 0.8719 GB, free: 72.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/1.923, allocations: 0 / 0.8719 GB, free: 72.07 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.218e-06/1.923, allocations: 0 / 0.8719 GB, free: 72.07 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004492/1.927, allocations: 1.917 MB / 0.8737 GB, free: 70.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.161e-06/1.927, allocations: 0 / 0.8737 GB, free: 70.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004675/1.928, allocations: 79.89 kB / 0.8738 GB, free: 70.03 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007485/1.929, allocations: 309.5 kB / 0.8741 GB, free: 69.72 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.236e-05/1.929, allocations: 11.89 kB / 0.8741 GB, free: 69.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002483/1.931, allocations: 1.639 MB / 0.8757 GB, free: 68.02 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.464e-06/1.931, allocations: 0 / 0.8757 GB, free: 68.02 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003602/1.935, allocations: 1.629 MB / 0.8773 GB, free: 66.37 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000801/1.936, allocations: 240.1 kB / 0.8775 GB, free: 66.12 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003271/1.936, allocations: 4 kB / 0.8775 GB, free: 66.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008116/1.937, allocations: 35.94 kB / 0.8776 GB, free: 66.08 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001755/1.937, allocations: 44.38 kB / 0.8776 GB, free: 66.04 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.582e-05/1.937, allocations: 23.98 kB / 0.8776 GB, free: 66.01 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0007358/1.938, allocations: 419.1 kB / 0.878 GB, free: 65.61 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003428/1.941, allocations: 0.6127 MB / 0.8786 GB, free: 65 MB / 426.7 MB 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: 9 ($whenCondition1,tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent) * Number of discrete states: 5 (timeTable.last,timeTable.nextEvent,timeTable.b,timeTable.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 39 * 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.002797/1.944, allocations: 0.6297 MB / 0.8792 GB, free: 64.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003241/1.947, allocations: 1.427 MB / 0.8806 GB, free: 62.95 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/1.947, allocations: 0 / 0.8806 GB, free: 62.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009312/1.948, allocations: 415.2 kB / 0.881 GB, free: 62.54 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001675/1.95, allocations: 251 kB / 0.8813 GB, free: 62.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004638/1.955, allocations: 1.345 MB / 0.8826 GB, free: 60.92 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001324/1.956, allocations: 1.107 MB / 0.8837 GB, free: 59.79 MB / 426.7 MB Notification: Performance of SimCode: time 2.164e-06/1.956, allocations: 0 / 0.8837 GB, free: 59.79 MB / 426.7 MB Notification: Performance of Templates: time 0.04128/1.997, allocations: 21.44 MB / 0.9046 GB, free: 38.43 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.makefile (rm -f ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & ./ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.1_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)