Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001412/0.001412, allocations: 176.1 kB / 8.476 MB, free: 1.887 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.154/1.154, allocations: 205.2 MB / 214.1 MB, free: 5.094 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.000878/0.0008781, allocations: 87.28 kB / 262.1 MB, free: 5.137 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1641/0.165, allocations: 52.97 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06857/0.2336, allocations: 47.57 MB / 362.6 MB, free: 9.855 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5557/0.7893, allocations: 323.1 MB / 0.6696 GB, free: 68.75 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001788/0.7896, allocations: 91.06 kB / 0.6697 GB, free: 68.71 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: 164 * Number of variables: 164 Notification: Performance of Generate backend data structure: time 0.5165/1.306, allocations: 193.1 MB / 0.8583 GB, free: 54.89 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.278e-05/1.306, allocations: 8 kB / 0.8583 GB, free: 54.88 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006102/1.307, allocations: 114.8 kB / 0.8584 GB, free: 54.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001631/1.308, allocations: 0.737 MB / 0.8591 GB, free: 54 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.967e-05/1.308, allocations: 24 kB / 0.8591 GB, free: 53.98 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000161/1.309, allocations: 40 kB / 0.8592 GB, free: 53.94 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001395/1.31, allocations: 0.92 MB / 0.8601 GB, free: 53.02 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/1.311, allocations: 0.9772 MB / 0.861 GB, free: 51.98 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/1.311, allocations: 4 kB / 0.861 GB, free: 51.98 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.772e-05/1.311, allocations: 7.938 kB / 0.861 GB, free: 51.97 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.151e-05/1.312, allocations: 65.27 kB / 0.8611 GB, free: 51.91 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005633/1.317, allocations: 4.258 MB / 0.8653 GB, free: 47.44 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000528/1.318, allocations: 427.8 kB / 0.8657 GB, free: 47.02 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003736/1.318, allocations: 310.1 kB / 0.866 GB, free: 46.71 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002069/1.32, allocations: 2.016 MB / 0.8679 GB, free: 44.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.405e-05/1.32, allocations: 42.83 kB / 0.868 GB, free: 44.45 MB / 426.7 MB Notification: Performance of pre-optimization done (n=40): time 1.954e-06/1.32, allocations: 0 / 0.868 GB, free: 44.45 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.005344/1.326, allocations: 1.798 MB / 0.8697 GB, free: 42.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.29e-05/1.326, allocations: 170.2 kB / 0.8699 GB, free: 42.39 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007297/1.326, allocations: 0.6286 MB / 0.8705 GB, free: 41.76 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.493e-05/1.326, allocations: 29.7 kB / 0.8705 GB, free: 41.72 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001762/1.327, allocations: 406.2 kB / 0.8709 GB, free: 41.32 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/1.327, allocations: 157.8 kB / 0.8711 GB, free: 41.16 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.189e-05/1.327, allocations: 0 / 0.8711 GB, free: 41.16 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.592e-05/1.327, allocations: 382.8 kB / 0.8714 GB, free: 40.78 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004044/1.327, allocations: 305.9 kB / 0.8717 GB, free: 40.48 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004893/1.328, allocations: 0.5862 MB / 0.8723 GB, free: 39.76 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00643/1.334, allocations: 1.454 MB / 0.8737 GB, free: 38.31 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/1.334, allocations: 3.984 kB / 0.8737 GB, free: 38.31 MB / 426.7 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.007412/1.342, allocations: 2.073 MB / 0.8758 GB, free: 36.22 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000557/1.342, allocations: 3.315 MB / 0.879 GB, free: 32.65 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.642e-05/1.342, allocations: 8 kB / 0.879 GB, free: 32.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005713/1.343, allocations: 169.6 kB / 0.8792 GB, free: 32.47 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006534/1.344, allocations: 175.7 kB / 0.8793 GB, free: 32.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00178/1.345, allocations: 1.538 MB / 0.8808 GB, free: 30.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009254/1.346, allocations: 44.06 kB / 0.8809 GB, free: 30.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.121e-05/1.346, allocations: 40 kB / 0.8809 GB, free: 30.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.626e-06/1.346, allocations: 4 kB / 0.8809 GB, free: 30.62 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006816/1.353, allocations: 1.901 MB / 0.8828 GB, free: 28.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/1.353, allocations: 11.94 kB / 0.8828 GB, free: 28.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005704/1.354, allocations: 169.9 kB / 0.8829 GB, free: 28.53 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006153/1.354, allocations: 171.7 kB / 0.8831 GB, free: 28.36 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001385/1.356, allocations: 1.444 MB / 0.8845 GB, free: 26.87 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007713/1.357, allocations: 51.91 kB / 0.8846 GB, free: 26.82 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.923e-05/1.357, allocations: 40 kB / 0.8846 GB, free: 26.78 MB / 426.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.00022/1.357, allocations: 134.4 kB / 0.8847 GB, free: 26.64 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001765/1.357, allocations: 82.97 kB / 0.8848 GB, free: 26.56 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002082/1.359, allocations: 0.8376 MB / 0.8856 GB, free: 25.71 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/1.359, allocations: 4 kB / 0.8856 GB, free: 25.71 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/1.359, allocations: 0 / 0.8856 GB, free: 25.71 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/1.359, allocations: 7.984 kB / 0.8856 GB, free: 25.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002696/1.362, allocations: 1.567 MB / 0.8872 GB, free: 24.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/1.362, allocations: 0 / 0.8872 GB, free: 24.09 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003653/1.362, allocations: 75.91 kB / 0.8872 GB, free: 24.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005411/1.363, allocations: 169.5 kB / 0.8874 GB, free: 23.84 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.844e-05/1.363, allocations: 7.906 kB / 0.8874 GB, free: 23.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001235/1.364, allocations: 1.413 MB / 0.8888 GB, free: 22.37 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/1.364, allocations: 7.984 kB / 0.8888 GB, free: 22.36 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001713/1.366, allocations: 1.143 MB / 0.8899 GB, free: 21.18 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002151/1.368, allocations: 1.865 MB / 0.8917 GB, free: 19.28 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002094/1.368, allocations: 176 kB / 0.8919 GB, free: 19.09 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001566/1.368, allocations: 11.97 kB / 0.8919 GB, free: 19.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000575/1.369, allocations: 31.97 kB / 0.892 GB, free: 19.04 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.671e-05/1.369, allocations: 48.36 kB / 0.892 GB, free: 19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.186e-05/1.369, allocations: 27.98 kB / 0.892 GB, free: 18.97 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0005065/1.37, allocations: 495.1 kB / 0.8925 GB, free: 18.49 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003481/1.373, allocations: 0.913 MB / 0.8934 GB, free: 17.58 MB / 426.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.001876/1.375, allocations: 0.8096 MB / 0.8942 GB, free: 16.81 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001809/1.377, allocations: 1.174 MB / 0.8953 GB, free: 15.63 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.698e-06/1.377, allocations: 4 kB / 0.8953 GB, free: 15.62 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004357/1.377, allocations: 306.6 kB / 0.8956 GB, free: 15.32 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/1.379, allocations: 285.3 kB / 0.8959 GB, free: 15.05 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002136/1.381, allocations: 1.258 MB / 0.8971 GB, free: 13.76 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006121/1.381, allocations: 1.143 MB / 0.8982 GB, free: 12.59 MB / 426.7 MB Notification: Performance of SimCode: time 2.4e-07/1.381, allocations: 0 / 0.8982 GB, free: 12.59 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe 2>&1)