Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.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.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001053/0.001053, allocations: 175 kB / 8.476 MB, free: 1.852 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.179/1.179, allocations: 205.2 MB / 214.1 MB, free: 5.137 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.0009064/0.0009066, allocations: 90.25 kB / 262.1 MB, free: 5.191 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.167/0.168, allocations: 52.98 MB / 315.1 MB, free: 41.39 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07025/0.2382, allocations: 47.57 MB / 362.6 MB, free: 9.867 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5628/0.801, allocations: 327.4 MB / 0.6738 GB, free: 63.97 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001988/0.8012, allocations: 87.02 kB / 0.6739 GB, free: 63.93 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: 145 * Number of variables: 145 Notification: Performance of Generate backend data structure: time 0.4583/1.26, allocations: 167.2 MB / 0.8372 GB, free: 75.84 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/1.26, allocations: 8 kB / 0.8372 GB, free: 75.84 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004889/1.26, allocations: 98.95 kB / 0.8373 GB, free: 75.74 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/1.261, allocations: 0.6386 MB / 0.8379 GB, free: 75.07 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.793e-05/1.261, allocations: 20 kB / 0.8379 GB, free: 75.05 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/1.262, allocations: 32 kB / 0.8379 GB, free: 75.02 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001068/1.263, allocations: 0.7171 MB / 0.8386 GB, free: 74.3 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/1.264, allocations: 0.8087 MB / 0.8394 GB, free: 73.44 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.971e-05/1.264, allocations: 8 kB / 0.8394 GB, free: 73.43 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.864e-05/1.264, allocations: 0 / 0.8394 GB, free: 73.43 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.451e-05/1.264, allocations: 53.28 kB / 0.8395 GB, free: 73.38 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004135/1.268, allocations: 3.637 MB / 0.843 GB, free: 69.56 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004506/1.268, allocations: 359.4 kB / 0.8434 GB, free: 69.2 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002954/1.269, allocations: 254.1 kB / 0.8436 GB, free: 68.95 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001703/1.27, allocations: 1.829 MB / 0.8454 GB, free: 66.92 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.223e-05/1.271, allocations: 38.56 kB / 0.8454 GB, free: 66.88 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 1.423e-06/1.271, allocations: 0 / 0.8454 GB, free: 66.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=46): time 0.006398/1.277, allocations: 1.918 MB / 0.8473 GB, free: 64.9 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.313e-05/1.277, allocations: 132.5 kB / 0.8474 GB, free: 64.74 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005527/1.278, allocations: 0.5149 MB / 0.848 GB, free: 64.21 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.418e-05/1.278, allocations: 25.7 kB / 0.848 GB, free: 64.18 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000161/1.278, allocations: 331.1 kB / 0.8483 GB, free: 63.86 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001095/1.278, allocations: 157.7 kB / 0.8484 GB, free: 63.7 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.613e-05/1.278, allocations: 0 / 0.8484 GB, free: 63.7 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.563e-05/1.278, allocations: 378.8 kB / 0.8488 GB, free: 63.32 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003473/1.278, allocations: 245.5 kB / 0.849 GB, free: 63.09 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004126/1.279, allocations: 488.6 kB / 0.8495 GB, free: 62.5 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004381/1.283, allocations: 0.9972 MB / 0.8505 GB, free: 61.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.638e-06/1.283, allocations: 0 / 0.8505 GB, free: 61.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.005133/1.288, allocations: 1.493 MB / 0.8519 GB, free: 60 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000432/1.289, allocations: 2.702 MB / 0.8546 GB, free: 57.09 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.457e-05/1.289, allocations: 12 kB / 0.8546 GB, free: 57.07 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00028/1.289, allocations: 97.56 kB / 0.8547 GB, free: 56.97 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009733/1.29, allocations: 183.7 kB / 0.8549 GB, free: 56.79 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001402/1.292, allocations: 1.917 MB / 0.8567 GB, free: 54.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000689/1.292, allocations: 47.95 kB / 0.8568 GB, free: 54.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.536e-05/1.292, allocations: 39.98 kB / 0.8568 GB, free: 54.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.474e-06/1.292, allocations: 4 kB / 0.8568 GB, free: 54.71 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004778/1.297, allocations: 1.367 MB / 0.8581 GB, free: 53.34 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/1.297, allocations: 8 kB / 0.8582 GB, free: 53.33 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001881/1.297, allocations: 85.66 kB / 0.8582 GB, free: 53.24 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006489/1.298, allocations: 176.2 kB / 0.8584 GB, free: 53.07 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008944/1.299, allocations: 1.265 MB / 0.8596 GB, free: 51.75 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006173/1.3, allocations: 39.92 kB / 0.8597 GB, free: 51.71 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.908e-05/1.3, allocations: 36.05 kB / 0.8597 GB, free: 51.68 MB / 426.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.0001888/1.3, allocations: 133.9 kB / 0.8598 GB, free: 51.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001438/1.3, allocations: 67.16 kB / 0.8599 GB, free: 51.47 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002131/1.302, allocations: 0.9286 MB / 0.8608 GB, free: 50.53 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.027e-05/1.302, allocations: 12 kB / 0.8608 GB, free: 50.52 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/1.302, allocations: 3.938 kB / 0.8608 GB, free: 50.51 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/1.302, allocations: 3.984 kB / 0.8608 GB, free: 50.51 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002842/1.305, allocations: 1.552 MB / 0.8623 GB, free: 48.91 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/1.305, allocations: 8 kB / 0.8624 GB, free: 48.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006409/1.306, allocations: 135.8 kB / 0.8625 GB, free: 48.77 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001839/1.306, allocations: 65.77 kB / 0.8625 GB, free: 48.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.13e-05/1.306, allocations: 7.984 kB / 0.8626 GB, free: 48.69 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000927/1.307, allocations: 1.804 MB / 0.8643 GB, free: 46.81 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/1.307, allocations: 0 / 0.8643 GB, free: 46.81 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001932/1.309, allocations: 1.189 MB / 0.8655 GB, free: 45.58 MB / 426.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002365/1.311, allocations: 1.916 MB / 0.8673 GB, free: 43.61 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001867/1.311, allocations: 156.2 kB / 0.8675 GB, free: 43.43 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001435/1.312, allocations: 7.984 kB / 0.8675 GB, free: 43.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005448/1.312, allocations: 28.03 kB / 0.8675 GB, free: 43.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001137/1.312, allocations: 60.27 kB / 0.8676 GB, free: 43.34 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.545e-05/1.312, allocations: 23.98 kB / 0.8676 GB, free: 43.32 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0003968/1.313, allocations: 395.2 kB / 0.868 GB, free: 42.94 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003261/1.316, allocations: 0.7182 MB / 0.8687 GB, free: 42.22 MB / 426.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.001604/1.318, allocations: 0.6652 MB / 0.8693 GB, free: 41.6 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.002229/1.32, allocations: 1.097 MB / 0.8704 GB, free: 40.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/1.32, allocations: 5.125 kB / 0.8704 GB, free: 40.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007134/1.321, allocations: 373.6 kB / 0.8708 GB, free: 40.13 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001223/1.322, allocations: 273 kB / 0.871 GB, free: 39.87 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002151/1.324, allocations: 1.137 MB / 0.8721 GB, free: 38.69 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006801/1.325, allocations: 1.089 MB / 0.8732 GB, free: 37.57 MB / 426.7 MB Notification: Performance of SimCode: time 2.71e-07/1.325, allocations: 0 / 0.8732 GB, free: 37.57 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1_fmu --startTime=0 --stopTime=35 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1.fmu > Modelica_3.2.3_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1)