Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001009/0.001009, 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.148/1.148, allocations: 221.4 MB / 229.9 MB, free: 3.008 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.0009326/0.0009327, allocations: 101.6 kB / 280.8 MB, free: 1.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0987/0.09967, allocations: 55.83 MB / 336.6 MB, free: 9.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2201/0.3198, allocations: 50.39 MB / 387 MB, free: 37.97 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5666/0.8864, allocations: 328 MB / 0.6982 GB, free: 141.1 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001895/0.8867, allocations: 88.58 kB / 0.6983 GB, free: 141 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.4907/1.377, allocations: 170.7 MB / 0.865 GB, free: 95.79 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.236e-05/1.377, allocations: 11.34 kB / 0.865 GB, free: 95.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005047/1.378, allocations: 101.2 kB / 0.8651 GB, free: 95.74 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001278/1.379, allocations: 0.6238 MB / 0.8657 GB, free: 95.5 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.326e-05/1.379, allocations: 26.19 kB / 0.8657 GB, free: 95.5 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001113/1.379, allocations: 36.31 kB / 0.8658 GB, free: 95.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001078/1.381, allocations: 0.7204 MB / 0.8665 GB, free: 95.5 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001106/1.382, allocations: 0.8059 MB / 0.8673 GB, free: 95.31 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.275e-05/1.382, allocations: 2.062 kB / 0.8673 GB, free: 95.31 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.484e-05/1.382, allocations: 3.938 kB / 0.8673 GB, free: 95.31 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.803e-05/1.382, allocations: 53.62 kB / 0.8673 GB, free: 95.31 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004401/1.386, allocations: 3.645 MB / 0.8709 GB, free: 93.36 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004686/1.387, allocations: 353.1 kB / 0.8712 GB, free: 93.34 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003249/1.387, allocations: 263.4 kB / 0.8715 GB, free: 93.34 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001886/1.389, allocations: 1.829 MB / 0.8733 GB, free: 92.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.456e-05/1.389, allocations: 45.34 kB / 0.8733 GB, free: 92.07 MB / 442.7 MB Notification: Performance of pre-optimization done (n=41): time 2.334e-06/1.389, allocations: 0 / 0.8733 GB, free: 92.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=46): time 0.006516/1.396, allocations: 1.899 MB / 0.8751 GB, free: 91.65 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.634e-05/1.396, allocations: 142.4 kB / 0.8753 GB, free: 91.49 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005805/1.396, allocations: 0.5096 MB / 0.8758 GB, free: 91.36 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.816e-05/1.396, allocations: 29.48 kB / 0.8758 GB, free: 91.33 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001683/1.396, allocations: 332.7 kB / 0.8761 GB, free: 91.11 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/1.397, allocations: 158.5 kB / 0.8763 GB, free: 91.02 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.703e-05/1.397, allocations: 0 / 0.8763 GB, free: 91.02 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.348e-05/1.397, allocations: 378.7 kB / 0.8766 GB, free: 90.7 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003444/1.397, allocations: 243.9 kB / 0.8769 GB, free: 90.7 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004181/1.397, allocations: 492.2 kB / 0.8773 GB, free: 90.42 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002193/1.4, allocations: 0.6577 MB / 0.878 GB, free: 90.42 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/1.4, allocations: 0 / 0.878 GB, free: 90.42 MB / 442.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002966/1.403, allocations: 1.157 MB / 0.8791 GB, free: 90.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004874/1.403, allocations: 2.697 MB / 0.8817 GB, free: 87.52 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.715e-05/1.403, allocations: 7.219 kB / 0.8818 GB, free: 87.52 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002755/1.403, allocations: 94.27 kB / 0.8818 GB, free: 87.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009556/1.404, allocations: 184.4 kB / 0.882 GB, free: 87.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001452/1.406, allocations: 1.918 MB / 0.8839 GB, free: 85.88 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006636/1.407, allocations: 40.05 kB / 0.8839 GB, free: 85.87 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.491e-05/1.407, allocations: 37.92 kB / 0.884 GB, free: 85.87 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.214e-06/1.407, allocations: 3.875 kB / 0.884 GB, free: 85.87 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002692/1.409, allocations: 1.04 MB / 0.885 GB, free: 85.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/1.409, allocations: 3.781 kB / 0.885 GB, free: 85.84 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001972/1.41, allocations: 93.7 kB / 0.8851 GB, free: 85.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006423/1.41, allocations: 176.1 kB / 0.8852 GB, free: 85.83 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009013/1.411, allocations: 1.26 MB / 0.8865 GB, free: 84.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005708/1.412, allocations: 38.53 kB / 0.8865 GB, free: 84.79 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.491e-05/1.412, allocations: 33.31 kB / 0.8865 GB, free: 84.79 MB / 442.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.0001863/1.412, allocations: 136.7 kB / 0.8867 GB, free: 84.67 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/1.412, allocations: 68.41 kB / 0.8867 GB, free: 84.64 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002137/1.414, allocations: 0.9337 MB / 0.8877 GB, free: 84.56 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.026e-05/1.414, allocations: 10.36 kB / 0.8877 GB, free: 84.56 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/1.414, allocations: 0 / 0.8877 GB, free: 84.56 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.233e-06/1.414, allocations: 3.344 kB / 0.8877 GB, free: 84.56 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00281/1.417, allocations: 1.555 MB / 0.8892 GB, free: 84.23 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/1.417, allocations: 2.75 kB / 0.8892 GB, free: 84.23 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000631/1.418, allocations: 136.8 kB / 0.8893 GB, free: 84.23 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001916/1.418, allocations: 68.64 kB / 0.8894 GB, free: 84.22 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.466e-05/1.418, allocations: 13.86 kB / 0.8894 GB, free: 84.22 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009382/1.419, allocations: 1.797 MB / 0.8912 GB, free: 82.59 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/1.419, allocations: 3.031 kB / 0.8912 GB, free: 82.59 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001909/1.421, allocations: 1.184 MB / 0.8923 GB, free: 82.32 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00232/1.423, allocations: 1.916 MB / 0.8942 GB, free: 81.66 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001889/1.423, allocations: 160.1 kB / 0.8943 GB, free: 81.53 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001488/1.424, allocations: 14.8 kB / 0.8943 GB, free: 81.53 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005583/1.424, allocations: 29.73 kB / 0.8944 GB, free: 81.52 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/1.424, allocations: 48.64 kB / 0.8944 GB, free: 81.52 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.03e-05/1.424, allocations: 28.67 kB / 0.8945 GB, free: 81.52 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0004264/1.425, allocations: 398.5 kB / 0.8948 GB, free: 81.43 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003183/1.428, allocations: 0.7155 MB / 0.8955 GB, free: 81.33 MB / 442.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.00191/1.43, allocations: 0.6637 MB / 0.8962 GB, free: 81.13 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002805/1.433, allocations: 1.104 MB / 0.8973 GB, free: 81.11 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.263e-06/1.433, allocations: 3.781 kB / 0.8973 GB, free: 81.11 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007737/1.434, allocations: 366.2 kB / 0.8976 GB, free: 81.11 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001472/1.435, allocations: 287.1 kB / 0.8979 GB, free: 81.11 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002542/1.438, allocations: 1.127 MB / 0.899 GB, free: 80.81 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007681/1.438, allocations: 1.093 MB / 0.9001 GB, free: 80.1 MB / 442.7 MB Notification: Performance of SimCode: time 5.11e-07/1.438, allocations: 0 / 0.9001 GB, free: 80.1 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1_fmu --startTime=0 --stopTime=35 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)