Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank") translateModel(ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_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.2+maint.om/package.mo): time 0.003081/0.003081, allocations: 183.9 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.331/1.331, allocations: 194.2 MB / 202.1 MB, free: 8.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001723/0.001723, allocations: 120.9 kB / 247.1 MB, free: 6.352 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.2011/0.2011, allocations: 39.95 MB / 331.9 MB, free: 4.891 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.151e-06/6.181e-06, allocations: 0 / 392.8 MB, free: 75.88 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1294/0.1294, allocations: 54.87 MB / 447.7 MB, free: 20.99 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8803/1.01, allocations: 329.5 MB / 0.7589 GB, free: 79.36 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002879/1.01, allocations: 85.95 kB / 0.759 GB, free: 79.32 MB / 474.7 MB Notification: Performance of FrontEnd: time 0.6064/1.617, allocations: 140.9 MB / 0.8966 GB, free: 101.3 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0001171/1.617, allocations: 27.05 kB / 0.8967 GB, free: 101.3 MB / 474.7 MB 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.004004/1.621, allocations: 1.184 MB / 0.8978 GB, free: 100.5 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.534e-05/1.621, allocations: 7.719 kB / 0.8978 GB, free: 100.5 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008617/1.622, allocations: 110.5 kB / 0.8979 GB, free: 100.5 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002354/1.624, allocations: 0.7044 MB / 0.8986 GB, free: 100.2 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001391/1.624, allocations: 89.69 kB / 0.8987 GB, free: 100.1 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002607/1.625, allocations: 32.41 kB / 0.8987 GB, free: 100.1 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002203/1.627, allocations: 0.8375 MB / 0.8995 GB, free: 100.1 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002076/1.629, allocations: 0.945 MB / 0.9005 GB, free: 99.93 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.005e-05/1.629, allocations: 1.469 kB / 0.9005 GB, free: 99.93 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001246/1.629, allocations: 2.781 kB / 0.9005 GB, free: 99.93 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.819e-05/1.629, allocations: 52.11 kB / 0.9005 GB, free: 99.93 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008223/1.637, allocations: 3.928 MB / 0.9044 GB, free: 98.2 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009612/1.638, allocations: 0.5233 MB / 0.9049 GB, free: 98.18 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006933/1.639, allocations: 392.3 kB / 0.9052 GB, free: 98.16 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004145/1.643, allocations: 2.363 MB / 0.9076 GB, free: 96.71 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000856/1.644, allocations: 429.2 kB / 0.908 GB, free: 96.63 MB / 474.7 MB Notification: Performance of pre-optimization done (n=47): time 2.946e-06/1.644, allocations: 3.781 kB / 0.908 GB, free: 96.63 MB / 474.7 MB Notification: Performance of matching and sorting (n=52): time 0.009397/1.653, allocations: 2.46 MB / 0.9104 GB, free: 96.19 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.609e-05/1.654, allocations: 167.1 kB / 0.9105 GB, free: 96 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/1.655, allocations: 0.5526 MB / 0.9111 GB, free: 95.86 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.38e-05/1.655, allocations: 29.3 kB / 0.9111 GB, free: 95.83 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00033/1.655, allocations: 354.7 kB / 0.9114 GB, free: 95.61 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002043/1.655, allocations: 164 kB / 0.9116 GB, free: 95.5 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.767e-05/1.655, allocations: 0.9375 kB / 0.9116 GB, free: 95.5 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001707/1.656, allocations: 388.5 kB / 0.912 GB, free: 95.19 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006872/1.656, allocations: 347.7 kB / 0.9123 GB, free: 95.19 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000893/1.657, allocations: 0.6217 MB / 0.9129 GB, free: 94.84 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00514/1.662, allocations: 1.107 MB / 0.914 GB, free: 94.64 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.909e-05/1.662, allocations: 6.188 kB / 0.914 GB, free: 94.64 MB / 474.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.007318/1.67, allocations: 1.829 MB / 0.9158 GB, free: 94.14 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001345/1.671, allocations: 3.392 MB / 0.9191 GB, free: 90.52 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.283e-05/1.671, allocations: 7.75 kB / 0.9191 GB, free: 90.52 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/1.672, allocations: 329.3 kB / 0.9194 GB, free: 90.43 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000753/1.673, allocations: 163.4 kB / 0.9196 GB, free: 90.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002506/1.675, allocations: 1.664 MB / 0.9212 GB, free: 89.19 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009576/1.676, allocations: 38.23 kB / 0.9212 GB, free: 89.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001551/1.677, allocations: 51.34 kB / 0.9213 GB, free: 89.17 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/1.677, allocations: 7.812 kB / 0.9213 GB, free: 89.16 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004939/1.682, allocations: 1.467 MB / 0.9227 GB, free: 88.45 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.412e-05/1.682, allocations: 8.5 kB / 0.9227 GB, free: 88.45 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006175/1.682, allocations: 251.5 kB / 0.923 GB, free: 88.24 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006037/1.683, allocations: 159.9 kB / 0.9231 GB, free: 88.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/1.685, allocations: 2.169 MB / 0.9252 GB, free: 85.91 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008619/1.686, allocations: 37.45 kB / 0.9253 GB, free: 85.88 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001327/1.686, allocations: 39.23 kB / 0.9253 GB, free: 85.84 MB / 474.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: 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 (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.0004372/1.686, allocations: 169.7 kB / 0.9255 GB, free: 85.66 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002271/1.686, allocations: 79.06 kB / 0.9255 GB, free: 85.59 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0038/1.69, allocations: 1.202 MB / 0.9267 GB, free: 84.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.808e-06/1.69, allocations: 4.656 kB / 0.9267 GB, free: 84.59 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.797e-06/1.69, allocations: 0 / 0.9267 GB, free: 84.59 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/1.69, allocations: 2.578 kB / 0.9267 GB, free: 84.59 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004621/1.695, allocations: 1.942 MB / 0.9286 GB, free: 82.99 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-06/1.695, allocations: 3.109 kB / 0.9286 GB, free: 82.99 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004338/1.695, allocations: 78.81 kB / 0.9287 GB, free: 82.92 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007114/1.696, allocations: 308.7 kB / 0.929 GB, free: 82.67 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.211e-05/1.696, allocations: 15.19 kB / 0.929 GB, free: 82.66 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002075/1.698, allocations: 1.634 MB / 0.9306 GB, free: 81.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.627e-06/1.698, allocations: 0 / 0.9306 GB, free: 81.1 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003258/1.702, allocations: 1.664 MB / 0.9322 GB, free: 79.45 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006295/1.702, allocations: 252.8 kB / 0.9325 GB, free: 79.18 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002667/1.703, allocations: 4 kB / 0.9325 GB, free: 79.18 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007102/1.703, allocations: 31.88 kB / 0.9325 GB, free: 79.14 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001602/1.703, allocations: 48.36 kB / 0.9325 GB, free: 79.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.68e-05/1.704, allocations: 35.92 kB / 0.9326 GB, free: 79.06 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0006939/1.704, allocations: 411.1 kB / 0.933 GB, free: 78.67 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002956/1.707, allocations: 0.6166 MB / 0.9336 GB, free: 78.05 MB / 474.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: 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 (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.002021/1.709, allocations: 0.6169 MB / 0.9342 GB, free: 77.47 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002758/1.712, allocations: 1.451 MB / 0.9356 GB, free: 76 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/1.712, allocations: 448 / 0.9356 GB, free: 76 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008212/1.713, allocations: 451.1 kB / 0.936 GB, free: 75.56 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001293/1.714, allocations: 246.6 kB / 0.9363 GB, free: 75.32 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003562/1.718, allocations: 1.357 MB / 0.9376 GB, free: 73.93 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008176/1.719, allocations: 1.114 MB / 0.9387 GB, free: 72.79 MB / 474.7 MB Notification: Performance of SimCode: time 1.112e-06/1.719, allocations: 0 / 0.9387 GB, free: 72.79 MB / 474.7 MB Notification: Performance of Templates: time 0.03604/1.755, allocations: 21.57 MB / 0.9597 GB, free: 51.33 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.sim & ./ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Fluid.TestComponents.Vessels.TestSimpleTank.pipe 2>&1)