Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001748/0.001748, allocations: 180.1 kB / 8.48 MB, free: 1.836 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.067/1.067, allocations: 205.2 MB / 214.1 MB, free: 5.508 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008065/0.0008064, allocations: 78.33 kB / 262.1 MB, free: 5.57 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1489/0.1498, allocations: 52.98 MB / 315.1 MB, free: 41.44 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06279/0.2126, allocations: 47.58 MB / 362.6 MB, free: 9.906 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4754/0.688, allocations: 326 MB / 0.6725 GB, free: 65.47 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002188/0.6883, allocations: 91.12 kB / 0.6726 GB, free: 65.43 MB / 426.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.9186/1.607, allocations: 327 MB / 0.9919 GB, free: 58.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.111e-05/1.607, allocations: 7.688 kB / 0.9919 GB, free: 58.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009429/1.608, allocations: 200.3 kB / 0.9921 GB, free: 58.89 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002546/1.61, allocations: 1.206 MB / 0.9933 GB, free: 58.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.453e-05/1.611, allocations: 42.53 kB / 0.9933 GB, free: 58.5 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003383/1.611, allocations: 72.88 kB / 0.9934 GB, free: 58.49 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002717/1.614, allocations: 1.802 MB / 0.9952 GB, free: 58.48 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002483/1.616, allocations: 1.796 MB / 0.9969 GB, free: 58.2 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.388e-05/1.616, allocations: 7.844 kB / 0.9969 GB, free: 58.19 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001604/1.616, allocations: 3.594 kB / 0.9969 GB, free: 58.19 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001056/1.616, allocations: 117.2 kB / 0.997 GB, free: 58.18 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009494/1.626, allocations: 7.414 MB / 1.004 GB, free: 53.41 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001195/1.627, allocations: 0.899 MB / 1.005 GB, free: 53.07 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008778/1.628, allocations: 0.7268 MB / 1.006 GB, free: 52.8 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004206/1.632, allocations: 3.352 MB / 1.009 GB, free: 50.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.539e-05/1.632, allocations: 47.38 kB / 1.009 GB, free: 50.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=119): time 3.036e-06/1.632, allocations: 0 / 1.009 GB, free: 50.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=134): time 0.01559/1.648, allocations: 4.875 MB / 1.014 GB, free: 48.89 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/1.648, allocations: 174.4 kB / 1.014 GB, free: 48.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00144/1.649, allocations: 0.9498 MB / 1.015 GB, free: 48.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001372/1.65, allocations: 36.14 kB / 1.015 GB, free: 48.26 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003386/1.65, allocations: 0.5378 MB / 1.016 GB, free: 47.86 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003359/1.65, allocations: 455.8 kB / 1.016 GB, free: 47.51 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.925e-05/1.65, allocations: 0 / 1.016 GB, free: 47.51 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.929e-05/1.65, allocations: 372.4 kB / 1.016 GB, free: 47.18 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001115/1.652, allocations: 0.737 MB / 1.017 GB, free: 46.91 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001292/1.653, allocations: 1.131 MB / 1.018 GB, free: 46.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01187/1.665, allocations: 2.698 MB / 1.021 GB, free: 45.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.021e-05/1.665, allocations: 3.281 kB / 1.021 GB, free: 45.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=221) (initialization): time 0.01496/1.68, allocations: 4.101 MB / 1.025 GB, free: 44.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006282/1.68, allocations: 4.274 MB / 1.029 GB, free: 39.79 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.141e-05/1.68, allocations: 19.81 kB / 1.029 GB, free: 39.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001317/1.682, allocations: 467.9 kB / 1.029 GB, free: 39.39 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/1.683, allocations: 343.9 kB / 1.03 GB, free: 39.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004613/1.688, allocations: 3.401 MB / 1.033 GB, free: 35.92 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/1.689, allocations: 107.3 kB / 1.033 GB, free: 35.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002124/1.69, allocations: 76.11 kB / 1.033 GB, free: 35.78 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.044e-06/1.69, allocations: 4 kB / 1.033 GB, free: 35.78 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01366/1.703, allocations: 3.72 MB / 1.037 GB, free: 32.88 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.071e-05/1.703, allocations: 12 kB / 1.037 GB, free: 32.86 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001111/1.705, allocations: 345.1 kB / 1.037 GB, free: 32.52 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001433/1.706, allocations: 355.4 kB / 1.038 GB, free: 32.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003516/1.71, allocations: 3.038 MB / 1.041 GB, free: 29.04 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001702/1.711, allocations: 100.1 kB / 1.041 GB, free: 28.95 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002556/1.712, allocations: 79.97 kB / 1.041 GB, free: 28.88 MB / 426.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.0005047/1.712, allocations: 161.3 kB / 1.041 GB, free: 28.71 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004182/1.712, allocations: 150.2 kB / 1.041 GB, free: 28.56 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005686/1.718, allocations: 2.508 MB / 1.044 GB, free: 26.09 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.6e-05/1.718, allocations: 16 kB / 1.044 GB, free: 26.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.873e-06/1.718, allocations: 0 / 1.044 GB, free: 26.07 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.444e-05/1.718, allocations: 7.969 kB / 1.044 GB, free: 26.07 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00738/1.726, allocations: 3.987 MB / 1.047 GB, free: 22.06 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.013e-06/1.726, allocations: 4 kB / 1.047 GB, free: 22.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001035/1.727, allocations: 243.2 kB / 1.048 GB, free: 21.82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001268/1.728, allocations: 451.5 kB / 1.048 GB, free: 21.38 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/1.728, allocations: 31.36 kB / 1.048 GB, free: 21.35 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003183/1.731, allocations: 3.121 MB / 1.051 GB, free: 18.14 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/1.731, allocations: 0 / 1.051 GB, free: 18.14 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00543/1.737, allocations: 3.345 MB / 1.054 GB, free: 14.74 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006647/1.743, allocations: 4.83 MB / 1.059 GB, free: 9.859 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005132/1.744, allocations: 243.1 kB / 1.059 GB, free: 9.602 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000396/1.744, allocations: 11.98 kB / 1.059 GB, free: 9.59 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001231/1.746, allocations: 81.94 kB / 1.059 GB, free: 9.516 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002457/1.746, allocations: 148 kB / 1.06 GB, free: 9.375 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001575/1.746, allocations: 63.95 kB / 1.06 GB, free: 9.312 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0009348/1.747, allocations: 0.715 MB / 1.06 GB, free: 8.594 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005324/1.752, allocations: 1.514 MB / 1.062 GB, free: 7.082 MB / 426.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.002904/1.755, allocations: 1.201 MB / 1.063 GB, free: 6.027 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004677/1.76, allocations: 2.964 MB / 1.066 GB, free: 3.086 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/1.76, allocations: 0 / 1.066 GB, free: 3.086 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001555/1.761, allocations: 1.062 MB / 1.067 GB, free: 2.027 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002937/1.764, allocations: 0.594 MB / 1.068 GB, free: 1.469 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.117/1.881, allocations: 2.798 MB / 1.07 GB, free: 93.65 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001235/1.883, allocations: 1.616 MB / 1.072 GB, free: 92.93 MB / 426.7 MB Notification: Performance of SimCode: time 7.41e-07/1.883, allocations: 0 / 1.072 GB, free: 92.93 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TanksWithEmptyingPipe2.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TanksWithEmptyingPipe2.pipe 2>&1)