Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) [: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.3+maint.om/package.mo): time 0.001101/0.001101, allocations: 183 kB / 8.479 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.115/1.115, allocations: 205.2 MB / 214.1 MB, free: 5.09 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009242/0.0009242, allocations: 79.34 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1737/0.1746, allocations: 52.97 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07409/0.2487, allocations: 47.58 MB / 362.6 MB, free: 9.859 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5417/0.7905, allocations: 323.4 MB / 0.67 GB, free: 66.59 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000191/0.7908, allocations: 94.16 kB / 0.6701 GB, free: 66.55 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.8575/1.648, allocations: 283.5 MB / 0.9469 GB, free: 50.09 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/1.648, allocations: 7.344 kB / 0.947 GB, free: 50.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000608/1.649, allocations: 169.3 kB / 0.9471 GB, free: 50.02 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001884/1.651, allocations: 1.043 MB / 0.9481 GB, free: 49.74 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.545e-05/1.651, allocations: 39.62 kB / 0.9482 GB, free: 49.74 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/1.651, allocations: 54.69 kB / 0.9482 GB, free: 49.74 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002048/1.653, allocations: 1.476 MB / 0.9497 GB, free: 49.73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001891/1.655, allocations: 1.5 MB / 0.9511 GB, free: 49.48 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.766e-05/1.655, allocations: 6.719 kB / 0.9511 GB, free: 49.48 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001222/1.655, allocations: 3.531 kB / 0.9511 GB, free: 49.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-05/1.655, allocations: 106.8 kB / 0.9512 GB, free: 49.48 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008025/1.663, allocations: 6.315 MB / 0.9574 GB, free: 46.55 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007898/1.664, allocations: 0.6705 MB / 0.9581 GB, free: 46.53 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006295/1.665, allocations: 0.543 MB / 0.9586 GB, free: 46.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003118/1.668, allocations: 2.813 MB / 0.9613 GB, free: 45.07 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.806e-05/1.668, allocations: 45.31 kB / 0.9614 GB, free: 45.03 MB / 426.7 MB Notification: Performance of pre-optimization done (n=80): time 3.747e-06/1.668, allocations: 3.969 kB / 0.9614 GB, free: 45.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=90): time 0.009444/1.677, allocations: 3.252 MB / 0.9646 GB, free: 44.46 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.561e-05/1.677, allocations: 192.2 kB / 0.9647 GB, free: 44.24 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/1.679, allocations: 0.8771 MB / 0.9656 GB, free: 44.08 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000104/1.679, allocations: 29.02 kB / 0.9656 GB, free: 44.05 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003094/1.679, allocations: 0.515 MB / 0.9661 GB, free: 43.73 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002731/1.679, allocations: 301.1 kB / 0.9664 GB, free: 43.54 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.173e-05/1.68, allocations: 0 / 0.9664 GB, free: 43.54 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.078e-05/1.68, allocations: 363.8 kB / 0.9668 GB, free: 43.23 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007727/1.68, allocations: 0.5491 MB / 0.9673 GB, free: 43.23 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009368/1.681, allocations: 0.9367 MB / 0.9682 GB, free: 42.79 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01022/1.692, allocations: 2.307 MB / 0.9705 GB, free: 42.77 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.771e-05/1.692, allocations: 7.281 kB / 0.9705 GB, free: 42.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.01259/1.704, allocations: 3.374 MB / 0.9738 GB, free: 42.63 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008208/1.705, allocations: 4.353 MB / 0.978 GB, free: 38.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.547e-05/1.705, allocations: 11.12 kB / 0.978 GB, free: 38.11 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001026/1.706, allocations: 331.7 kB / 0.9784 GB, free: 38.08 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001103/1.707, allocations: 289.5 kB / 0.9786 GB, free: 38.08 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003245/1.711, allocations: 2.528 MB / 0.9811 GB, free: 36.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001383/1.712, allocations: 77.7 kB / 0.9812 GB, free: 36.51 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001582/1.712, allocations: 67.86 kB / 0.9812 GB, free: 36.51 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.625e-06/1.712, allocations: 3.594 kB / 0.9812 GB, free: 36.51 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01155/1.724, allocations: 3.071 MB / 0.9842 GB, free: 36.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.718e-05/1.724, allocations: 15.45 kB / 0.9843 GB, free: 36.46 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009234/1.725, allocations: 272.9 kB / 0.9845 GB, free: 36.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/1.726, allocations: 284.3 kB / 0.9848 GB, free: 36.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002621/1.728, allocations: 2.276 MB / 0.987 GB, free: 34.88 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001334/1.73, allocations: 81.75 kB / 0.9871 GB, free: 34.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001937/1.73, allocations: 63.95 kB / 0.9871 GB, free: 34.87 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 12 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[2],tank1.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 160 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 3,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0003928/1.73, allocations: 152.1 kB / 0.9873 GB, free: 34.75 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002884/1.731, allocations: 123.2 kB / 0.9874 GB, free: 34.69 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003892/1.735, allocations: 1.608 MB / 0.989 GB, free: 34.57 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/1.735, allocations: 7.75 kB / 0.989 GB, free: 34.57 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/1.735, allocations: 7.812 kB / 0.989 GB, free: 34.57 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.063e-05/1.735, allocations: 3.281 kB / 0.989 GB, free: 34.57 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005024/1.74, allocations: 2.779 MB / 0.9917 GB, free: 34.21 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/1.74, allocations: 3.5 kB / 0.9917 GB, free: 34.21 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006906/1.74, allocations: 148.4 kB / 0.9919 GB, free: 34.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001009/1.741, allocations: 326.3 kB / 0.9922 GB, free: 34.19 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.677e-05/1.741, allocations: 14.22 kB / 0.9922 GB, free: 34.19 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002311/1.744, allocations: 2.314 MB / 0.9944 GB, free: 32.62 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/1.744, allocations: 3.094 kB / 0.9944 GB, free: 32.62 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003612/1.747, allocations: 2.197 MB / 0.9966 GB, free: 32.27 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004813/1.752, allocations: 3.303 MB / 0.9998 GB, free: 31.53 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004453/1.753, allocations: 221.6 kB / 1 GB, free: 31.37 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003387/1.753, allocations: 8.062 kB / 1 GB, free: 31.37 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/1.754, allocations: 61.41 kB / 1 GB, free: 31.36 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001777/1.754, allocations: 91.19 kB / 1 GB, free: 31.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000118/1.754, allocations: 44.94 kB / 1 GB, free: 31.36 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001143/1.756, allocations: 0.6648 MB / 1.001 GB, free: 31.25 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005719/1.761, allocations: 1.333 MB / 1.002 GB, free: 31.05 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Number of discrete states: 4 (tank1.aboveLevel[1],tank1.aboveLevel[2],tank2.aboveLevel[1],tank2.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {2 12,1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.003014/1.764, allocations: 1.093 MB / 1.003 GB, free: 30.73 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003845/1.768, allocations: 2.145 MB / 1.005 GB, free: 30.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.53e-06/1.768, allocations: 1.219 kB / 1.005 GB, free: 30.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00124/1.769, allocations: 0.6663 MB / 1.006 GB, free: 29.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002392/1.772, allocations: 471.4 kB / 1.006 GB, free: 29.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004467/1.776, allocations: 2.104 MB / 1.008 GB, free: 29.06 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001301/1.778, allocations: 1.417 MB / 1.01 GB, free: 28.28 MB / 426.7 MB Notification: Performance of SimCode: time 7.82e-07/1.778, allocations: 6.75 kB / 1.01 GB, free: 28.28 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)