Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.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) 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: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",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 4.0.0+maint.om/package.mo): time 0.001017/0.001017, allocations: 183.8 kB / 8.138 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.127/1.127, allocations: 221.4 MB / 229.9 MB, free: 3.082 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.0008922/0.0008922, allocations: 97.05 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0966/0.09752, allocations: 55.83 MB / 336.6 MB, free: 9.414 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1736/0.2712, allocations: 50.39 MB / 387 MB, free: 37.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5069/0.7782, allocations: 326.6 MB / 0.6969 GB, free: 140.7 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002312/0.7784, allocations: 87.95 kB / 0.6969 GB, free: 140.6 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 315 * Number of variables: 315 Notification: Performance of Generate backend data structure: time 0.9225/1.701, allocations: 333.1 MB / 1.022 GB, free: 48.59 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.146e-05/1.701, allocations: 6.812 kB / 1.022 GB, free: 48.59 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009193/1.702, allocations: 204.7 kB / 1.022 GB, free: 48.5 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002354/1.704, allocations: 1.196 MB / 1.024 GB, free: 48.2 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.062e-05/1.704, allocations: 49.95 kB / 1.024 GB, free: 48.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001752/1.705, allocations: 68.53 kB / 1.024 GB, free: 48.2 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002451/1.707, allocations: 1.804 MB / 1.025 GB, free: 48.19 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002237/1.709, allocations: 1.798 MB / 1.027 GB, free: 47.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.147e-05/1.709, allocations: 5.312 kB / 1.027 GB, free: 47.91 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000146/1.709, allocations: 3.938 kB / 1.027 GB, free: 47.91 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.213e-05/1.709, allocations: 124.1 kB / 1.027 GB, free: 47.9 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009156/1.719, allocations: 7.415 MB / 1.035 GB, free: 44.58 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/1.72, allocations: 0.8969 MB / 1.035 GB, free: 44.55 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007989/1.721, allocations: 0.7288 MB / 1.036 GB, free: 44.54 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003724/1.724, allocations: 3.349 MB / 1.039 GB, free: 42.99 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.213e-05/1.724, allocations: 54.95 kB / 1.039 GB, free: 42.95 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 3.186e-06/1.724, allocations: 0 / 1.039 GB, free: 42.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=134): time 0.01508/1.739, allocations: 4.886 MB / 1.044 GB, free: 42.29 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.469e-05/1.74, allocations: 170.2 kB / 1.044 GB, free: 42.11 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001145/1.741, allocations: 0.9498 MB / 1.045 GB, free: 41.95 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001455/1.741, allocations: 35.89 kB / 1.045 GB, free: 41.92 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002798/1.741, allocations: 0.5377 MB / 1.046 GB, free: 41.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003169/1.741, allocations: 452.5 kB / 1.046 GB, free: 41.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.906e-05/1.742, allocations: 0 / 1.046 GB, free: 41.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.635e-05/1.742, allocations: 374.8 kB / 1.047 GB, free: 41 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009277/1.743, allocations: 0.7334 MB / 1.047 GB, free: 40.99 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/1.744, allocations: 1.131 MB / 1.049 GB, free: 40.56 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004996/1.749, allocations: 1.687 MB / 1.05 GB, free: 40.55 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/1.749, allocations: 3.75 kB / 1.05 GB, free: 40.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.007063/1.756, allocations: 3.082 MB / 1.053 GB, free: 40.36 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006492/1.756, allocations: 4.276 MB / 1.057 GB, free: 35.92 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.829e-05/1.756, allocations: 10.19 kB / 1.057 GB, free: 35.92 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001246/1.758, allocations: 471.7 kB / 1.058 GB, free: 35.89 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/1.759, allocations: 337.9 kB / 1.058 GB, free: 35.89 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004288/1.763, allocations: 3.402 MB / 1.061 GB, free: 33.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001455/1.765, allocations: 99.08 kB / 1.062 GB, free: 33.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001503/1.765, allocations: 87.45 kB / 1.062 GB, free: 33.79 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.183e-06/1.765, allocations: 3.438 kB / 1.062 GB, free: 33.79 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006242/1.771, allocations: 2.704 MB / 1.064 GB, free: 33.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/1.771, allocations: 11.19 kB / 1.064 GB, free: 33.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001065/1.772, allocations: 343.5 kB / 1.065 GB, free: 33.68 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00127/1.773, allocations: 360.7 kB / 1.065 GB, free: 33.68 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003418/1.777, allocations: 3.043 MB / 1.068 GB, free: 31.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001474/1.778, allocations: 100.9 kB / 1.068 GB, free: 31.59 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002089/1.779, allocations: 76.61 kB / 1.068 GB, free: 31.59 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.tank3.aboveLevel[1],tank3.aboveLevel[1],$PRE.tank3.aboveLevel[2],tank3.aboveLevel[2],$PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],$PRE.tank2.aboveLevel[2],tank2.aboveLevel[2],$PRE.tank2.aboveLevel[3],tank2.aboveLevel[3],tank2.ports_m_flow_out[3],tank2.ports_m_flow_out[2],tank2.ports_m_flow_out[1],tank1.ports_m_flow_out[1],tank3.ports_m_flow_out[2],tank3.ports_m_flow_out[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (200): * Single equations (assignments): 196 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 2,2 7,2 7,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0004326/1.779, allocations: 155.2 kB / 1.068 GB, free: 31.48 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003435/1.779, allocations: 154.4 kB / 1.068 GB, free: 31.4 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005808/1.785, allocations: 2.503 MB / 1.071 GB, free: 31.26 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.695e-05/1.785, allocations: 19.09 kB / 1.071 GB, free: 31.26 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/1.785, allocations: 3.906 kB / 1.071 GB, free: 31.26 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/1.785, allocations: 10.78 kB / 1.071 GB, free: 31.26 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007668/1.793, allocations: 3.98 MB / 1.075 GB, free: 30.86 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.184e-06/1.793, allocations: 3.625 kB / 1.075 GB, free: 30.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001065/1.794, allocations: 237.2 kB / 1.075 GB, free: 30.86 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001303/1.795, allocations: 460 kB / 1.075 GB, free: 30.82 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001166/1.796, allocations: 27.73 kB / 1.075 GB, free: 30.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003218/1.799, allocations: 3.122 MB / 1.079 GB, free: 28.73 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/1.799, allocations: 0 / 1.079 GB, free: 28.73 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005741/1.805, allocations: 3.34 MB / 1.082 GB, free: 28.27 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006835/1.811, allocations: 4.829 MB / 1.086 GB, free: 27.43 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005465/1.812, allocations: 242.1 kB / 1.087 GB, free: 27.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004525/1.812, allocations: 13.67 kB / 1.087 GB, free: 27.25 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001328/1.814, allocations: 86.41 kB / 1.087 GB, free: 27.24 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002546/1.814, allocations: 135.1 kB / 1.087 GB, free: 27.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001611/1.814, allocations: 64.98 kB / 1.087 GB, free: 27.24 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.001017/1.815, allocations: 0.7204 MB / 1.088 GB, free: 27.13 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005828/1.821, allocations: 1.513 MB / 1.089 GB, free: 26.92 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (tank3.medium.T,tank3.level,tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Number of discrete states: 6 (tank3.aboveLevel[1],tank3.aboveLevel[2],tank1.aboveLevel[1],tank2.aboveLevel[1],tank2.aboveLevel[2],tank2.aboveLevel[3]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (133): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,2 12,2 12,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.003105/1.824, allocations: 1.212 MB / 1.09 GB, free: 26.59 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004894/1.829, allocations: 2.958 MB / 1.093 GB, free: 26.54 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.49e-06/1.829, allocations: 3.781 kB / 1.093 GB, free: 26.54 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001617/1.831, allocations: 1.058 MB / 1.094 GB, free: 26.52 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003046/1.834, allocations: 0.6057 MB / 1.095 GB, free: 26.51 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00543/1.839, allocations: 2.789 MB / 1.098 GB, free: 25.94 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001588/1.841, allocations: 1.618 MB / 1.099 GB, free: 25.21 MB / 442.7 MB Notification: Performance of SimCode: time 5.51e-07/1.841, allocations: 0 / 1.099 GB, free: 25.21 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)