Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",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.0009775/0.0009775, allocations: 204.8 kB / 8.543 MB, free: 1.82 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.141/1.141, allocations: 225.5 MB / 234.4 MB, free: 3.457 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009591/0.0009593, allocations: 92.25 kB / 286.3 MB, free: 5.234 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1052/0.1062, allocations: 56.91 MB / 343.2 MB, free: 8.676 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0862/0.1924, allocations: 51.47 MB / 394.7 MB, free: 5.152 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5328/0.7253, allocations: 328.7 MB / 0.7065 GB, free: 26.05 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002063/0.7255, allocations: 94.66 kB / 0.7066 GB, free: 26 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.4558/1.181, allocations: 170.5 MB / 0.8731 GB, free: 64.73 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.113e-05/1.181, allocations: 8 kB / 0.8731 GB, free: 64.72 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003646/1.182, allocations: 107 kB / 0.8732 GB, free: 64.61 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009986/1.183, allocations: 0.6409 MB / 0.8738 GB, free: 63.95 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.814e-05/1.183, allocations: 20 kB / 0.8739 GB, free: 63.93 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.122e-05/1.183, allocations: 32 kB / 0.8739 GB, free: 63.89 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009475/1.184, allocations: 0.721 MB / 0.8746 GB, free: 63.17 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009531/1.185, allocations: 0.8052 MB / 0.8754 GB, free: 62.31 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/1.185, allocations: 8 kB / 0.8754 GB, free: 62.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.587e-05/1.185, allocations: 0 / 0.8754 GB, free: 62.3 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.219e-05/1.185, allocations: 49.28 kB / 0.8754 GB, free: 62.25 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003784/1.189, allocations: 3.649 MB / 0.879 GB, free: 58.43 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000418/1.189, allocations: 354.9 kB / 0.8793 GB, free: 58.07 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002922/1.19, allocations: 258 kB / 0.8796 GB, free: 57.82 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001616/1.191, allocations: 1.84 MB / 0.8814 GB, free: 55.78 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.341e-05/1.191, allocations: 42.47 kB / 0.8814 GB, free: 55.73 MB / 458.7 MB Notification: Performance of pre-optimization done (n=41): time 1.773e-06/1.191, allocations: 0 / 0.8814 GB, free: 55.73 MB / 458.7 MB Notification: Performance of matching and sorting (n=46): time 0.006269/1.197, allocations: 1.904 MB / 0.8833 GB, free: 53.77 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/1.198, allocations: 136.5 kB / 0.8834 GB, free: 53.6 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005138/1.198, allocations: 0.507 MB / 0.8839 GB, free: 53.09 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.7e-05/1.198, allocations: 33.7 kB / 0.8839 GB, free: 53.05 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/1.198, allocations: 331.1 kB / 0.8843 GB, free: 52.72 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.895e-05/1.198, allocations: 157.8 kB / 0.8844 GB, free: 52.56 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.42e-05/1.198, allocations: 0 / 0.8844 GB, free: 52.56 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 7.354e-05/1.198, allocations: 374.8 kB / 0.8848 GB, free: 52.19 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003323/1.199, allocations: 245.5 kB / 0.885 GB, free: 51.95 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003907/1.199, allocations: 484.6 kB / 0.8855 GB, free: 51.37 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002567/1.202, allocations: 0.7076 MB / 0.8862 GB, free: 50.66 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/1.202, allocations: 7.906 kB / 0.8862 GB, free: 50.65 MB / 458.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.003329/1.205, allocations: 1.212 MB / 0.8873 GB, free: 49.43 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004642/1.206, allocations: 2.694 MB / 0.89 GB, free: 46.52 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/1.206, allocations: 4 kB / 0.89 GB, free: 46.52 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002843/1.206, allocations: 101.6 kB / 0.8901 GB, free: 46.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/1.207, allocations: 187.8 kB / 0.8903 GB, free: 46.23 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001578/1.208, allocations: 1.913 MB / 0.8921 GB, free: 44.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006717/1.209, allocations: 32.11 kB / 0.8922 GB, free: 44.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.019e-05/1.209, allocations: 39.98 kB / 0.8922 GB, free: 44.17 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.454e-06/1.209, allocations: 8 kB / 0.8922 GB, free: 44.16 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003097/1.212, allocations: 1.078 MB / 0.8933 GB, free: 43.08 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.024e-06/1.212, allocations: 12.19 kB / 0.8933 GB, free: 43.07 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002162/1.213, allocations: 93.66 kB / 0.8934 GB, free: 42.97 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006501/1.213, allocations: 179.6 kB / 0.8935 GB, free: 42.79 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008887/1.214, allocations: 1.265 MB / 0.8948 GB, free: 41.48 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005639/1.215, allocations: 43.98 kB / 0.8948 GB, free: 41.43 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.236e-05/1.215, allocations: 35.98 kB / 0.8948 GB, free: 41.4 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank1.aboveLevel[2],tank1.aboveLevel[2],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 (88): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001763/1.215, allocations: 127.5 kB / 0.895 GB, free: 41.27 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001108/1.215, allocations: 71.16 kB / 0.895 GB, free: 41.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002115/1.217, allocations: 0.9433 MB / 0.8959 GB, free: 40.25 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.457e-06/1.217, allocations: 4 kB / 0.8959 GB, free: 40.25 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/1.217, allocations: 0 / 0.8959 GB, free: 40.25 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/1.217, allocations: 7.984 kB / 0.896 GB, free: 40.24 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002737/1.22, allocations: 1.55 MB / 0.8975 GB, free: 38.64 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/1.22, allocations: 0 / 0.8975 GB, free: 38.64 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000643/1.221, allocations: 131.8 kB / 0.8976 GB, free: 38.51 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001946/1.221, allocations: 77.94 kB / 0.8977 GB, free: 38.43 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.078e-05/1.221, allocations: 11.92 kB / 0.8977 GB, free: 38.41 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009224/1.222, allocations: 1.796 MB / 0.8994 GB, free: 36.54 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.326e-06/1.222, allocations: 4 kB / 0.8994 GB, free: 36.54 MB / 458.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001852/1.224, allocations: 1.185 MB / 0.9006 GB, free: 35.31 MB / 458.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002277/1.226, allocations: 1.924 MB / 0.9025 GB, free: 33.33 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001635/1.226, allocations: 152.2 kB / 0.9026 GB, free: 33.16 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001255/1.226, allocations: 7.984 kB / 0.9026 GB, free: 33.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005179/1.227, allocations: 35.88 kB / 0.9027 GB, free: 33.12 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/1.227, allocations: 52.42 kB / 0.9027 GB, free: 33.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.744e-05/1.227, allocations: 23.98 kB / 0.9027 GB, free: 33.05 MB / 458.7 MB Notification: Performance of sort global known variables: time 0.0003702/1.227, allocations: 403.1 kB / 0.9031 GB, free: 32.66 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003106/1.231, allocations: 0.7377 MB / 0.9038 GB, free: 31.92 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (tank1.medium.T,tank1.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Number of discrete states: 2 (tank1.aboveLevel[1],tank1.aboveLevel[2]) * Top-level inputs: 0 Notification: Strong component statistics for simulation (57): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.001199/1.232, allocations: 0.6564 MB / 0.9045 GB, free: 31.29 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002283/1.234, allocations: 1.101 MB / 0.9056 GB, free: 30.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/1.234, allocations: 3.938 kB / 0.9056 GB, free: 30.19 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006893/1.235, allocations: 374.6 kB / 0.9059 GB, free: 29.83 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001288/1.236, allocations: 284.1 kB / 0.9062 GB, free: 29.57 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00196/1.238, allocations: 1.134 MB / 0.9073 GB, free: 28.39 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005589/1.239, allocations: 1.093 MB / 0.9084 GB, free: 27.27 MB / 458.7 MB Notification: Performance of SimCode: time 3.2e-07/1.239, allocations: 0 / 0.9084 GB, free: 27.27 MB / 458.7 MB (rm -f Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1_fmu --startTime=0 --stopTime=35 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1.fmu > Modelica_trunk_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)