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.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_cpp_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_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2",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.001427/0.001427, allocations: 179.2 kB / 8.363 MB, free: 0.7148 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.921/1.921, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001101/0.001101, allocations: 94.27 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.183e-05/2.184e-05, allocations: 0 / 314.9 MB, free: 9.043 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3296/0.3296, allocations: 47.55 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.016/1.346, allocations: 323.1 MB / 0.6695 GB, free: 118.7 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003503/1.346, allocations: 89.11 kB / 0.6696 GB, free: 118.7 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.9484/2.295, allocations: 191 MB / 0.8561 GB, free: 84.38 MB / 427.1 MB Notification: Performance of FrontEnd: time 3.227e-06/2.295, allocations: 0 / 0.8561 GB, free: 84.38 MB / 427.1 MB Notification: Performance of Transformations before backend: time 0.0001137/2.295, allocations: 24.69 kB / 0.8561 GB, free: 84.38 MB / 427.1 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.004767/2.3, allocations: 1.301 MB / 0.8574 GB, free: 83.78 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/2.3, allocations: 8.688 kB / 0.8574 GB, free: 83.78 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009006/2.301, allocations: 113.3 kB / 0.8575 GB, free: 83.73 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002735/2.303, allocations: 0.7286 MB / 0.8582 GB, free: 83.48 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.122e-05/2.303, allocations: 26.58 kB / 0.8582 GB, free: 83.48 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001923/2.304, allocations: 35.69 kB / 0.8583 GB, free: 83.48 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00244/2.306, allocations: 0.8935 MB / 0.8591 GB, free: 83.47 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002351/2.308, allocations: 0.956 MB / 0.8601 GB, free: 83.29 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.695e-05/2.308, allocations: 4.156 kB / 0.8601 GB, free: 83.29 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001322/2.309, allocations: 5.562 kB / 0.8601 GB, free: 83.29 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001539/2.309, allocations: 68.25 kB / 0.8602 GB, free: 83.29 MB / 427.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01029/2.319, allocations: 4.232 MB / 0.8643 GB, free: 81.2 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001329/2.32, allocations: 0.5431 MB / 0.8648 GB, free: 81.17 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006704/2.321, allocations: 311.6 kB / 0.8651 GB, free: 81.16 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003938/2.325, allocations: 2.029 MB / 0.8671 GB, free: 79.92 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.331e-05/2.325, allocations: 43.38 kB / 0.8671 GB, free: 79.88 MB / 427.1 MB Notification: Performance of pre-optimization done (n=40): time 2.935e-06/2.325, allocations: 3.094 kB / 0.8671 GB, free: 79.88 MB / 427.1 MB Notification: Performance of matching and sorting (n=45): time 0.008802/2.334, allocations: 1.737 MB / 0.8688 GB, free: 79.46 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.22e-05/2.334, allocations: 168.5 kB / 0.869 GB, free: 79.27 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001239/2.335, allocations: 0.6269 MB / 0.8696 GB, free: 79.14 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001987/2.336, allocations: 28.52 kB / 0.8696 GB, free: 79.11 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003731/2.336, allocations: 0.5014 MB / 0.8701 GB, free: 78.8 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002292/2.336, allocations: 157.6 kB / 0.8703 GB, free: 78.71 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.616e-05/2.336, allocations: 0 / 0.8703 GB, free: 78.71 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 9.783e-05/2.336, allocations: 349.2 kB / 0.8706 GB, free: 78.39 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007139/2.337, allocations: 295.8 kB / 0.8709 GB, free: 78.39 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008913/2.338, allocations: 0.568 MB / 0.8714 GB, free: 78.05 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01118/2.349, allocations: 1.372 MB / 0.8728 GB, free: 78.05 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.398e-05/2.349, allocations: 0 / 0.8728 GB, free: 78.05 MB / 427.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.01304/2.362, allocations: 1.93 MB / 0.8747 GB, free: 77.97 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000707/2.363, allocations: 3.318 MB / 0.8779 GB, free: 74.53 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.404e-05/2.363, allocations: 7.906 kB / 0.8779 GB, free: 74.53 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009389/2.364, allocations: 164.4 kB / 0.8781 GB, free: 74.52 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001325/2.365, allocations: 179.7 kB / 0.8782 GB, free: 74.52 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002889/2.368, allocations: 1.502 MB / 0.8797 GB, free: 73.47 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001645/2.37, allocations: 43.03 kB / 0.8798 GB, free: 73.47 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002036/2.37, allocations: 45.55 kB / 0.8798 GB, free: 73.47 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.466e-05/2.37, allocations: 3.969 kB / 0.8798 GB, free: 73.47 MB / 427.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01246/2.383, allocations: 1.799 MB / 0.8816 GB, free: 73.44 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.214e-05/2.383, allocations: 7.562 kB / 0.8816 GB, free: 73.44 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007806/2.384, allocations: 149.2 kB / 0.8817 GB, free: 73.42 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001246/2.385, allocations: 179.2 kB / 0.8819 GB, free: 73.42 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002353/2.387, allocations: 1.393 MB / 0.8832 GB, free: 72.38 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001151/2.388, allocations: 41.59 kB / 0.8833 GB, free: 72.38 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001109/2.389, allocations: 45.36 kB / 0.8833 GB, free: 72.38 MB / 427.1 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.0003303/2.389, allocations: 143.5 kB / 0.8835 GB, free: 72.27 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003231/2.392, allocations: 0.7132 MB / 0.8842 GB, free: 72.17 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002161/2.392, allocations: 83.28 kB / 0.8842 GB, free: 72.12 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003163/2.396, allocations: 0.7872 MB / 0.885 GB, free: 72.03 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.729e-06/2.396, allocations: 9.812 kB / 0.885 GB, free: 72.03 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.785e-06/2.396, allocations: 0 / 0.885 GB, free: 72.03 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.158e-06/2.396, allocations: 3.891 kB / 0.885 GB, free: 72.03 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004585/2.4, allocations: 1.548 MB / 0.8865 GB, free: 71.71 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.603e-06/2.4, allocations: 0 / 0.8865 GB, free: 71.71 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006535/2.401, allocations: 71.14 kB / 0.8866 GB, free: 71.71 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008846/2.402, allocations: 155.4 kB / 0.8867 GB, free: 71.7 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.914e-05/2.402, allocations: 11.3 kB / 0.8868 GB, free: 71.7 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001971/2.404, allocations: 1.386 MB / 0.8881 GB, free: 70.66 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.042e-06/2.404, allocations: 0 / 0.8881 GB, free: 70.66 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003154/2.407, allocations: 1.114 MB / 0.8892 GB, free: 70.4 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004768/2.408, allocations: 177.2 kB / 0.8894 GB, free: 70.26 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002084/2.408, allocations: 12.59 kB / 0.8894 GB, free: 70.26 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001007/2.409, allocations: 29.91 kB / 0.8894 GB, free: 70.26 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001635/2.409, allocations: 49.42 kB / 0.8895 GB, free: 70.26 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.468e-05/2.409, allocations: 26.14 kB / 0.8895 GB, free: 70.26 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0009244/2.41, allocations: 491.3 kB / 0.8899 GB, free: 70.17 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.71e-07/2.41, allocations: 0 / 0.8899 GB, free: 70.17 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.00333/2.414, allocations: 0.7819 MB / 0.8907 GB, free: 70.02 MB / 427.1 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.006082/2.42, allocations: 2.49 MB / 0.8931 GB, free: 68.96 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.003336/2.423, allocations: 1.131 MB / 0.8942 GB, free: 68.95 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/2.423, allocations: 0 / 0.8942 GB, free: 68.95 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008006/2.424, allocations: 295.2 kB / 0.8945 GB, free: 68.94 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002578/2.426, allocations: 308.2 kB / 0.8948 GB, free: 68.93 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005261/2.432, allocations: 1.644 MB / 0.8964 GB, free: 68.37 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005903/2.432, allocations: 1.047 MB / 0.8975 GB, free: 67.67 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007348/2.433, allocations: 331.6 kB / 0.8978 GB, free: 67.66 MB / 427.1 MB Notification: Performance of SimCode: time 1.613e-06/2.433, allocations: 0 / 0.8978 GB, free: 67.66 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.282/5.715, allocations: 29.35 MB / 0.9264 GB, free: 64.02 MB / 427.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_TankWithEmptyingPipe2.fmu > Modelica_3.2.3_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.TankWithEmptyingPipe2.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.TankWithEmptyingPipe2_res.mat does not exist to compare? outputFormat=mat