Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.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) 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: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001056/0.001056, allocations: 196.7 kB / 8.54 MB, free: 1.816 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.107/1.107, allocations: 225.5 MB / 234.4 MB, free: 3.434 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007929/0.0007929, allocations: 95.58 kB / 286.3 MB, free: 5.254 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09086/0.09168, allocations: 56.9 MB / 343.2 MB, free: 8.66 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08272/0.1744, allocations: 51.47 MB / 394.7 MB, free: 5.129 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4936/0.668, allocations: 324.8 MB / 0.7027 GB, free: 31.9 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/0.6683, allocations: 89.52 kB / 0.7027 GB, free: 31.86 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.8308/1.499, allocations: 287.9 MB / 0.9839 GB, free: 55.62 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.243e-05/1.499, allocations: 9.875 kB / 0.9839 GB, free: 55.62 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001017/1.5, allocations: 167.2 kB / 0.9841 GB, free: 55.55 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002985/1.503, allocations: 1.048 MB / 0.9851 GB, free: 55.2 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.724e-05/1.503, allocations: 38.23 kB / 0.9852 GB, free: 55.2 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003309/1.504, allocations: 58.03 kB / 0.9852 GB, free: 55.2 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002498/1.506, allocations: 1.475 MB / 0.9867 GB, free: 55.2 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002147/1.508, allocations: 1.5 MB / 0.9881 GB, free: 54.94 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.746e-05/1.508, allocations: 4.688 kB / 0.9881 GB, free: 54.94 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001222/1.508, allocations: 3.062 kB / 0.9881 GB, free: 54.94 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001064/1.509, allocations: 114.3 kB / 0.9882 GB, free: 54.93 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008397/1.517, allocations: 6.317 MB / 0.9944 GB, free: 51.26 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009082/1.518, allocations: 0.6677 MB / 0.9951 GB, free: 51 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007046/1.519, allocations: 0.5405 MB / 0.9956 GB, free: 50.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003186/1.522, allocations: 2.818 MB / 0.9983 GB, free: 48.84 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.269e-05/1.522, allocations: 47.56 kB / 0.9984 GB, free: 48.79 MB / 442.7 MB Notification: Performance of pre-optimization done (n=80): time 1.924e-06/1.522, allocations: 0 / 0.9984 GB, free: 48.79 MB / 442.7 MB Notification: Performance of matching and sorting (n=90): time 0.009371/1.531, allocations: 3.25 MB / 1.002 GB, free: 47.59 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/1.531, allocations: 190.1 kB / 1.002 GB, free: 47.37 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001004/1.532, allocations: 0.8762 MB / 1.003 GB, free: 46.97 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.304e-05/1.532, allocations: 36.27 kB / 1.003 GB, free: 46.94 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002588/1.533, allocations: 0.5066 MB / 1.003 GB, free: 46.55 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000211/1.533, allocations: 305.2 kB / 1.003 GB, free: 46.32 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.91e-05/1.533, allocations: 3.469 kB / 1.003 GB, free: 46.32 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.815e-05/1.533, allocations: 363.5 kB / 1.004 GB, free: 45.99 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007307/1.534, allocations: 0.5422 MB / 1.004 GB, free: 45.79 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008723/1.535, allocations: 0.9344 MB / 1.005 GB, free: 45.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00475/1.539, allocations: 1.455 MB / 1.007 GB, free: 44.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.923e-06/1.539, allocations: 3.062 kB / 1.007 GB, free: 44.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=177) (initialization): time 0.006502/1.546, allocations: 2.516 MB / 1.009 GB, free: 44.11 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006913/1.547, allocations: 4.357 MB / 1.013 GB, free: 39.49 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.993e-05/1.547, allocations: 9.75 kB / 1.013 GB, free: 39.49 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00101/1.548, allocations: 335.6 kB / 1.014 GB, free: 39.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001045/1.549, allocations: 285.5 kB / 1.014 GB, free: 39.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003291/1.552, allocations: 2.531 MB / 1.016 GB, free: 37.5 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/1.553, allocations: 77.27 kB / 1.016 GB, free: 37.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001481/1.554, allocations: 66.8 kB / 1.017 GB, free: 37.49 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.374e-06/1.554, allocations: 7.281 kB / 1.017 GB, free: 37.48 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005841/1.559, allocations: 2.219 MB / 1.019 GB, free: 36.93 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.883e-05/1.559, allocations: 13.81 kB / 1.019 GB, free: 36.93 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009208/1.56, allocations: 268.5 kB / 1.019 GB, free: 36.85 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001025/1.561, allocations: 292.1 kB / 1.019 GB, free: 36.82 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002538/1.564, allocations: 2.274 MB / 1.022 GB, free: 35.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/1.565, allocations: 75.84 kB / 1.022 GB, free: 35.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001299/1.565, allocations: 63.61 kB / 1.022 GB, free: 35.04 MB / 442.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.000289/1.566, allocations: 156.1 kB / 1.022 GB, free: 34.9 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002503/1.566, allocations: 125.2 kB / 1.022 GB, free: 34.84 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003806/1.57, allocations: 1.594 MB / 1.023 GB, free: 34.33 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.849e-06/1.57, allocations: 8.969 kB / 1.023 GB, free: 34.33 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/1.57, allocations: 0 / 1.023 GB, free: 34.33 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/1.57, allocations: 10.5 kB / 1.023 GB, free: 34.33 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005103/1.575, allocations: 2.782 MB / 1.026 GB, free: 33.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/1.575, allocations: 6.688 kB / 1.026 GB, free: 33.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007092/1.576, allocations: 153.9 kB / 1.026 GB, free: 33.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001037/1.577, allocations: 324.7 kB / 1.027 GB, free: 33.11 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.309e-05/1.577, allocations: 9.578 kB / 1.027 GB, free: 33.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002342/1.579, allocations: 2.316 MB / 1.029 GB, free: 31.31 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/1.579, allocations: 3.312 kB / 1.029 GB, free: 31.31 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003634/1.583, allocations: 2.199 MB / 1.031 GB, free: 30.37 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004396/1.587, allocations: 3.296 MB / 1.034 GB, free: 28.73 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003808/1.588, allocations: 224.3 kB / 1.035 GB, free: 28.55 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003082/1.588, allocations: 10.62 kB / 1.035 GB, free: 28.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009731/1.589, allocations: 61.84 kB / 1.035 GB, free: 28.54 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/1.589, allocations: 95.34 kB / 1.035 GB, free: 28.53 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/1.589, allocations: 41.36 kB / 1.035 GB, free: 28.52 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0008038/1.59, allocations: 0.6645 MB / 1.035 GB, free: 28.22 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004799/1.595, allocations: 1.358 MB / 1.037 GB, free: 27.76 MB / 442.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.002822/1.598, allocations: 1.105 MB / 1.038 GB, free: 27.39 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003427/1.601, allocations: 2.149 MB / 1.04 GB, free: 25.44 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/1.601, allocations: 4 kB / 1.04 GB, free: 25.44 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001075/1.602, allocations: 0.6644 MB / 1.041 GB, free: 24.85 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002098/1.604, allocations: 468 kB / 1.041 GB, free: 24.53 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003852/1.608, allocations: 2.103 MB / 1.043 GB, free: 22.77 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001083/1.609, allocations: 1.415 MB / 1.044 GB, free: 21.56 MB / 442.7 MB Notification: Performance of SimCode: time 6.31e-07/1.609, allocations: 3.688 kB / 1.044 GB, free: 21.56 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe1.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe1.pipe 2>&1)