Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001576/0.001575, allocations: 186.3 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.993/1.993, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001163/0.001163, allocations: 88.38 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004107/0.0004108, allocations: 12 kB / 327.1 MB, free: 100 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3319/0.3324, allocations: 47.56 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.015/1.348, allocations: 328.2 MB / 0.6864 GB, free: 104.5 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003148/1.348, allocations: 92.89 kB / 0.6865 GB, free: 104.5 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8608/2.209, allocations: 167 MB / 0.8495 GB, free: 98.88 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.066e-06/2.209, allocations: 0 / 0.8495 GB, free: 98.88 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.353e-05/2.209, allocations: 19.22 kB / 0.8496 GB, free: 98.88 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.003927/2.213, allocations: 1.218 MB / 0.8507 GB, free: 98.23 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/2.213, allocations: 7.844 kB / 0.8508 GB, free: 98.23 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003692/2.214, allocations: 98.5 kB / 0.8508 GB, free: 98.19 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005477/2.214, allocations: 100.9 kB / 0.8509 GB, free: 98.14 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001986/2.216, allocations: 0.6277 MB / 0.8516 GB, free: 97.87 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.378e-05/2.216, allocations: 45.91 kB / 0.8516 GB, free: 97.87 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001606/2.216, allocations: 58.98 kB / 0.8517 GB, free: 97.87 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002125/2.219, allocations: 0.8904 MB / 0.8525 GB, free: 97.68 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.907e-05/2.219, allocations: 7.219 kB / 0.8525 GB, free: 97.68 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001198/2.219, allocations: 23.59 kB / 0.8526 GB, free: 97.68 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.195e-05/2.219, allocations: 46.47 kB / 0.8526 GB, free: 97.68 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002007/2.221, allocations: 0.7894 MB / 0.8534 GB, free: 97.68 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007454/2.228, allocations: 3.795 MB / 0.8571 GB, free: 95.65 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001399/2.23, allocations: 0.522 MB / 0.8576 GB, free: 95.62 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003235/2.233, allocations: 1.84 MB / 0.8594 GB, free: 94.38 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.314e-05/2.233, allocations: 42 kB / 0.8594 GB, free: 94.34 MB / 426.7 MB Notification: Performance of pre-optimization done (n=41): time 4.348e-06/2.233, allocations: 0 / 0.8594 GB, free: 94.34 MB / 426.7 MB Notification: Performance of matching and sorting (n=46): time 0.005615/2.239, allocations: 1.76 MB / 0.8611 GB, free: 93.71 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/2.239, allocations: 132.4 kB / 0.8613 GB, free: 93.56 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001237/2.24, allocations: 0.6648 MB / 0.8619 GB, free: 93.42 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001533/2.24, allocations: 36.98 kB / 0.862 GB, free: 93.39 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002814/2.241, allocations: 407.1 kB / 0.8623 GB, free: 93.14 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000201/2.241, allocations: 169.9 kB / 0.8625 GB, free: 93.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.269e-05/2.241, allocations: 17.78 kB / 0.8625 GB, free: 93.04 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.686e-05/2.241, allocations: 342.3 kB / 0.8628 GB, free: 92.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007195/2.242, allocations: 256.5 kB / 0.8631 GB, free: 92.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000822/2.243, allocations: 0.4911 MB / 0.8636 GB, free: 92.32 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007839/2.243, allocations: 321.8 kB / 0.8639 GB, free: 92.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.222e-06/2.243, allocations: 6.969 kB / 0.8639 GB, free: 92.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=92) (initialization): time 0.002192/2.246, allocations: 0.8416 MB / 0.8647 GB, free: 91.88 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005458/2.246, allocations: 2.708 MB / 0.8674 GB, free: 89.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/2.246, allocations: 7.875 kB / 0.8674 GB, free: 89.01 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001609/2.248, allocations: 163.5 kB / 0.8675 GB, free: 88.98 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001866/2.25, allocations: 190.4 kB / 0.8677 GB, free: 88.96 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001454/2.251, allocations: 1.801 MB / 0.8695 GB, free: 87.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001284/2.253, allocations: 58.62 kB / 0.8695 GB, free: 87.24 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/2.253, allocations: 40.45 kB / 0.8695 GB, free: 87.23 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.329e-05/2.253, allocations: 3.844 kB / 0.8696 GB, free: 87.23 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00207/2.255, allocations: 0.7809 MB / 0.8703 GB, free: 86.93 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/2.255, allocations: 7.719 kB / 0.8703 GB, free: 86.93 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001438/2.256, allocations: 164.2 kB / 0.8705 GB, free: 86.89 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001349/2.258, allocations: 176.7 kB / 0.8706 GB, free: 86.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009185/2.259, allocations: 1.182 MB / 0.8718 GB, free: 85.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008979/2.26, allocations: 48.89 kB / 0.8718 GB, free: 85.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001012/2.26, allocations: 41.14 kB / 0.8719 GB, free: 85.75 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 () * Number of clocked 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.0006671/2.26, allocations: 332.1 kB / 0.8722 GB, free: 85.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002583/2.261, allocations: 80.41 kB / 0.8723 GB, free: 85.46 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002387/2.263, allocations: 0.8249 MB / 0.8731 GB, free: 85.11 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.582e-05/2.263, allocations: 11.19 kB / 0.8731 GB, free: 85.11 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/2.263, allocations: 0 / 0.8731 GB, free: 85.11 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/2.263, allocations: 0 / 0.8731 GB, free: 85.11 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003979/2.267, allocations: 1.571 MB / 0.8746 GB, free: 84.33 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/2.267, allocations: 0 / 0.8746 GB, free: 84.33 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001146/2.268, allocations: 138.9 kB / 0.8748 GB, free: 84.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009538/2.269, allocations: 121.7 kB / 0.8749 GB, free: 84.29 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.651e-05/2.269, allocations: 23.27 kB / 0.8749 GB, free: 84.28 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001076/2.271, allocations: 1.747 MB / 0.8766 GB, free: 82.59 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/2.271, allocations: 3.328 kB / 0.8766 GB, free: 82.59 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002626/2.273, allocations: 1.129 MB / 0.8777 GB, free: 81.99 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00038/2.274, allocations: 173.4 kB / 0.8779 GB, free: 81.84 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001918/2.274, allocations: 11.97 kB / 0.8779 GB, free: 81.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009187/2.275, allocations: 45.33 kB / 0.8779 GB, free: 81.82 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/2.275, allocations: 53.48 kB / 0.878 GB, free: 81.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.674e-05/2.275, allocations: 23.42 kB / 0.878 GB, free: 81.81 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0009526/2.276, allocations: 0.5187 MB / 0.8785 GB, free: 81.58 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.31e-07/2.276, allocations: 3.875 kB / 0.8785 GB, free: 81.58 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002762/2.279, allocations: 0.6556 MB / 0.8792 GB, free: 81.43 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]) * Number of clocked states: 0 () * 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.004851/2.284, allocations: 2.45 MB / 0.8816 GB, free: 79.96 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004347/2.288, allocations: 1.147 MB / 0.8827 GB, free: 79.62 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.708e-06/2.288, allocations: 0 / 0.8827 GB, free: 79.62 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001449/2.29, allocations: 392.7 kB / 0.883 GB, free: 79.51 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003066/2.293, allocations: 376.8 kB / 0.8834 GB, free: 79.43 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006794/2.3, allocations: 7.252 MB / 0.8905 GB, free: 73.23 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005364/2.3, allocations: 0.9985 MB / 0.8915 GB, free: 72.5 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008245/2.301, allocations: 305.3 kB / 0.8918 GB, free: 72.3 MB / 426.7 MB Notification: Performance of SimCode: time 1.072e-06/2.301, allocations: 0 / 0.8918 GB, free: 72.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.363/5.664, allocations: 28.98 MB / 0.9201 GB, free: 49.77 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1_fmu --startTime=0 --stopTime=35 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe1.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe1_res.mat does not exist to compare? outputFormat=mat