Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",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.001048/0.001048, allocations: 184 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.156/1.156, allocations: 221.4 MB / 229.9 MB, free: 3 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.0009539/0.0009539, allocations: 102.2 kB / 280.8 MB, free: 1.234 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1071/0.1081, allocations: 55.82 MB / 336.6 MB, free: 9.395 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2082/0.3163, allocations: 50.39 MB / 387 MB, free: 38.08 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5078/0.8241, allocations: 323.7 MB / 0.694 GB, free: 145.7 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002011/0.8244, allocations: 91.89 kB / 0.6941 GB, free: 145.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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.5495/1.374, allocations: 196.9 MB / 0.8864 GB, free: 88.79 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/1.374, allocations: 13.83 kB / 0.8864 GB, free: 88.79 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006496/1.375, allocations: 115.1 kB / 0.8865 GB, free: 88.74 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001712/1.376, allocations: 0.7366 MB / 0.8872 GB, free: 88.46 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.041e-05/1.376, allocations: 25.5 kB / 0.8872 GB, free: 88.46 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001428/1.377, allocations: 35.16 kB / 0.8873 GB, free: 88.46 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001417/1.378, allocations: 0.9152 MB / 0.8882 GB, free: 88.46 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001344/1.379, allocations: 0.9788 MB / 0.8891 GB, free: 88.28 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.377e-05/1.379, allocations: 7.469 kB / 0.8891 GB, free: 88.28 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.553e-05/1.379, allocations: 3.312 kB / 0.8891 GB, free: 88.28 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.85e-05/1.38, allocations: 70.75 kB / 0.8892 GB, free: 88.28 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005712/1.385, allocations: 4.249 MB / 0.8933 GB, free: 86.15 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005322/1.386, allocations: 429.5 kB / 0.8938 GB, free: 86.13 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003635/1.386, allocations: 311.1 kB / 0.894 GB, free: 86.12 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002039/1.388, allocations: 2.018 MB / 0.896 GB, free: 84.87 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.975e-05/1.388, allocations: 38.42 kB / 0.8961 GB, free: 84.83 MB / 442.7 MB Notification: Performance of pre-optimization done (n=40): time 1.943e-06/1.388, allocations: 0 / 0.8961 GB, free: 84.83 MB / 442.7 MB Notification: Performance of matching and sorting (n=45): time 0.005573/1.394, allocations: 1.809 MB / 0.8978 GB, free: 84.38 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.124e-05/1.394, allocations: 164.7 kB / 0.898 GB, free: 84.2 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/1.395, allocations: 0.6292 MB / 0.8986 GB, free: 84.06 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.895e-05/1.395, allocations: 29.61 kB / 0.8986 GB, free: 84.03 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002217/1.395, allocations: 401.8 kB / 0.899 GB, free: 83.77 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001289/1.395, allocations: 151.9 kB / 0.8991 GB, free: 83.68 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.479e-05/1.395, allocations: 0 / 0.8991 GB, free: 83.68 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 9.983e-05/1.396, allocations: 396.5 kB / 0.8995 GB, free: 83.36 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004456/1.396, allocations: 300.3 kB / 0.8998 GB, free: 83.34 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005079/1.397, allocations: 0.5806 MB / 0.9004 GB, free: 82.87 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002192/1.399, allocations: 0.7848 MB / 0.9011 GB, free: 82.7 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/1.399, allocations: 3.938 kB / 0.9012 GB, free: 82.7 MB / 442.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.003253/1.402, allocations: 1.393 MB / 0.9025 GB, free: 82.32 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006804/1.403, allocations: 3.313 MB / 0.9057 GB, free: 78.81 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.098e-05/1.403, allocations: 7.469 kB / 0.9058 GB, free: 78.81 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005978/1.403, allocations: 171.2 kB / 0.9059 GB, free: 78.76 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006611/1.404, allocations: 181 kB / 0.9061 GB, free: 78.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00182/1.406, allocations: 1.541 MB / 0.9076 GB, free: 77.56 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008967/1.407, allocations: 45.41 kB / 0.9076 GB, free: 77.56 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.766e-05/1.407, allocations: 43.42 kB / 0.9077 GB, free: 77.55 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.283e-06/1.407, allocations: 3.938 kB / 0.9077 GB, free: 77.55 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002711/1.41, allocations: 1.217 MB / 0.9089 GB, free: 77.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.175e-05/1.41, allocations: 11.72 kB / 0.9089 GB, free: 77.22 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006645/1.41, allocations: 169.3 kB / 0.909 GB, free: 77.17 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007055/1.411, allocations: 176.9 kB / 0.9092 GB, free: 77.15 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/1.413, allocations: 1.435 MB / 0.9106 GB, free: 75.99 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008544/1.413, allocations: 40.88 kB / 0.9107 GB, free: 75.99 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001445/1.414, allocations: 46.62 kB / 0.9107 GB, free: 75.98 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (102): * Single equations (assignments): 100 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 3,1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0002718/1.414, allocations: 143.3 kB / 0.9108 GB, free: 75.85 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002469/1.414, allocations: 78.88 kB / 0.9109 GB, free: 75.81 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002256/1.416, allocations: 0.8367 MB / 0.9117 GB, free: 75.54 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/1.416, allocations: 11.06 kB / 0.9117 GB, free: 75.54 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/1.416, allocations: 3.031 kB / 0.9117 GB, free: 75.54 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/1.416, allocations: 0 / 0.9117 GB, free: 75.54 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002775/1.419, allocations: 1.572 MB / 0.9133 GB, free: 74.84 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/1.419, allocations: 3.938 kB / 0.9133 GB, free: 74.84 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000368/1.42, allocations: 72.58 kB / 0.9133 GB, free: 74.83 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005722/1.42, allocations: 161.1 kB / 0.9135 GB, free: 74.79 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.093e-05/1.42, allocations: 7.5 kB / 0.9135 GB, free: 74.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001283/1.422, allocations: 1.42 MB / 0.9149 GB, free: 73.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.386e-06/1.422, allocations: 0 / 0.9149 GB, free: 73.62 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001788/1.423, allocations: 1.139 MB / 0.916 GB, free: 73.09 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002262/1.426, allocations: 1.878 MB / 0.9178 GB, free: 72.02 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002393/1.426, allocations: 172.3 kB / 0.918 GB, free: 71.87 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000168/1.426, allocations: 3.969 kB / 0.918 GB, free: 71.87 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000602/1.427, allocations: 40.72 kB / 0.918 GB, free: 71.86 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/1.427, allocations: 45.31 kB / 0.9181 GB, free: 71.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.205e-05/1.427, allocations: 28.92 kB / 0.9181 GB, free: 71.86 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.000612/1.427, allocations: 0.4898 MB / 0.9186 GB, free: 71.62 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003599/1.431, allocations: 0.8985 MB / 0.9195 GB, free: 71.34 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (43): * Single equations (assignments): 41 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 6,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001992/1.433, allocations: 0.8207 MB / 0.9203 GB, free: 71.06 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001998/1.435, allocations: 1.178 MB / 0.9214 GB, free: 70.67 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/1.435, allocations: 3.562 kB / 0.9214 GB, free: 70.67 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004804/1.436, allocations: 305.1 kB / 0.9217 GB, free: 70.57 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001474/1.437, allocations: 279.1 kB / 0.922 GB, free: 70.52 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00262/1.44, allocations: 1.251 MB / 0.9232 GB, free: 70.06 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007335/1.44, allocations: 1.144 MB / 0.9243 GB, free: 69.32 MB / 442.7 MB Notification: Performance of SimCode: time 1.162e-06/1.44, allocations: 0 / 0.9243 GB, free: 69.32 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2.fmu > Modelica_4.0.0_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)