Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.42/2.42, allocations: 194.9 MB / 211.1 MB, free: 8.551 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005073/0.0005073, allocations: 12 kB / 264.1 MB, free: 3.473 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3208, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.041/1.361, allocations: 321.5 MB / 0.6153 GB, free: 96.59 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003471/1.362, allocations: 92.33 kB / 0.6154 GB, free: 96.55 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8541/2.216, allocations: 141.9 MB / 0.754 GB, free: 105.1 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.856e-06/2.216, allocations: 0 / 0.754 GB, free: 105.1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.892e-05/2.216, allocations: 24.05 kB / 0.754 GB, free: 105.1 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.003455/2.22, allocations: 1.173 MB / 0.7552 GB, free: 104.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.03e-05/2.22, allocations: 6.5 kB / 0.7552 GB, free: 104.5 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003135/2.22, allocations: 100.5 kB / 0.7553 GB, free: 104.4 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000491/2.221, allocations: 94.53 kB / 0.7554 GB, free: 104.4 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002093/2.223, allocations: 0.65 MB / 0.756 GB, free: 104.1 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000106/2.223, allocations: 93.12 kB / 0.7561 GB, free: 104 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001395/2.223, allocations: 50.08 kB / 0.7561 GB, free: 104 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001851/2.225, allocations: 0.8118 MB / 0.7569 GB, free: 103.9 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.129e-05/2.225, allocations: 0 / 0.7569 GB, free: 103.9 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001075/2.225, allocations: 20.19 kB / 0.7569 GB, free: 103.9 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.6e-05/2.225, allocations: 37.19 kB / 0.757 GB, free: 103.9 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/2.227, allocations: 0.6755 MB / 0.7576 GB, free: 103.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006708/2.234, allocations: 3.418 MB / 0.761 GB, free: 101.9 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009643/2.235, allocations: 396 kB / 0.7614 GB, free: 101.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002396/2.237, allocations: 1.308 MB / 0.7626 GB, free: 101 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006349/2.238, allocations: 302.8 kB / 0.7629 GB, free: 100.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 2.895e-06/2.238, allocations: 2.781 kB / 0.7629 GB, free: 100.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.006279/2.244, allocations: 1.801 MB / 0.7647 GB, free: 100.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.099e-05/2.244, allocations: 161.1 kB / 0.7648 GB, free: 100.1 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/2.245, allocations: 0.6146 MB / 0.7654 GB, free: 99.94 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001643/2.246, allocations: 35.73 kB / 0.7655 GB, free: 99.91 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003565/2.246, allocations: 420.7 kB / 0.7659 GB, free: 99.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001808/2.246, allocations: 133.9 kB / 0.766 GB, free: 99.62 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.893e-05/2.246, allocations: 12.91 kB / 0.766 GB, free: 99.62 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/2.246, allocations: 395.4 kB / 0.7664 GB, free: 99.3 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006689/2.247, allocations: 248.7 kB / 0.7666 GB, free: 99.29 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008098/2.248, allocations: 0.5399 MB / 0.7672 GB, free: 98.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007859/2.249, allocations: 361.1 kB / 0.7675 GB, free: 98.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/2.249, allocations: 3.781 kB / 0.7675 GB, free: 98.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002617/2.251, allocations: 0.9379 MB / 0.7684 GB, free: 98.33 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008267/2.252, allocations: 3.513 MB / 0.7718 GB, free: 94.61 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.639e-05/2.252, allocations: 11.41 kB / 0.7719 GB, free: 94.61 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009398/2.253, allocations: 133.4 kB / 0.772 GB, free: 94.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009931/2.254, allocations: 147.4 kB / 0.7721 GB, free: 94.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008118/2.255, allocations: 0.6706 MB / 0.7728 GB, free: 93.98 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001166/2.256, allocations: 44.66 kB / 0.7728 GB, free: 93.97 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001349/2.256, allocations: 42.59 kB / 0.7729 GB, free: 93.96 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.553e-05/2.256, allocations: 10.59 kB / 0.7729 GB, free: 93.96 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002622/2.259, allocations: 0.8793 MB / 0.7737 GB, free: 93.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.284e-05/2.259, allocations: 10.69 kB / 0.7737 GB, free: 93.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007183/2.26, allocations: 125 kB / 0.7739 GB, free: 93.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009655/2.261, allocations: 144.8 kB / 0.774 GB, free: 93.58 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000712/2.262, allocations: 0.6501 MB / 0.7746 GB, free: 93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001093/2.263, allocations: 54.73 kB / 0.7747 GB, free: 92.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000121/2.263, allocations: 39.3 kB / 0.7747 GB, free: 92.98 MB / 410.7 MB Warning: Assuming fixed start value for the following 2 variables: tank.level:VARIABLE(start = tank.level_start unit = "m" fixed = true stateSelect=StateSelect.prefer ) "Fluid level in the tank" type: Real tank.medium.T:VARIABLE(min = max(1.0, max(1.0, 1.0)) max = min(10000.0, min(10000.0, 10000.0)) start = 293.15 unit = "K" fixed = true nominal = 300.0 stateSelect=StateSelect.prefer ) "Temperature of medium" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 40 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.tank.ports_m_flow_out[1],tank.ports_m_flow_out[1],$PRE.tank.aboveLevel[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.0008679/2.264, allocations: 401.8 kB / 0.7751 GB, free: 92.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002044/2.264, allocations: 77.91 kB / 0.7752 GB, free: 92.64 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002014/2.266, allocations: 0.6598 MB / 0.7758 GB, free: 92.35 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.628e-06/2.266, allocations: 3.906 kB / 0.7758 GB, free: 92.35 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/2.266, allocations: 7.766 kB / 0.7758 GB, free: 92.35 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/2.266, allocations: 3.703 kB / 0.7758 GB, free: 92.35 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003379/2.269, allocations: 1.338 MB / 0.7771 GB, free: 91.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/2.269, allocations: 0 / 0.7771 GB, free: 91.67 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005175/2.27, allocations: 59.28 kB / 0.7772 GB, free: 91.66 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007745/2.271, allocations: 125.7 kB / 0.7773 GB, free: 91.63 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.973e-05/2.271, allocations: 11.81 kB / 0.7773 GB, free: 91.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007593/2.272, allocations: 0.6734 MB / 0.778 GB, free: 91.04 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/2.272, allocations: 0 / 0.778 GB, free: 91.04 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002275/2.274, allocations: 0.9964 MB / 0.779 GB, free: 90.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003034/2.274, allocations: 149.2 kB / 0.7791 GB, free: 90.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001877/2.275, allocations: 22.94 kB / 0.7791 GB, free: 90.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007085/2.275, allocations: 35.86 kB / 0.7792 GB, free: 90.39 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001377/2.275, allocations: 34.36 kB / 0.7792 GB, free: 90.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.77e-05/2.276, allocations: 23.16 kB / 0.7792 GB, free: 90.38 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008661/2.276, allocations: 478.4 kB / 0.7797 GB, free: 90.19 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-07/2.276, allocations: 3.719 kB / 0.7797 GB, free: 90.19 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002469/2.279, allocations: 0.5576 MB / 0.7802 GB, free: 90.06 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (tank.medium.T,tank.level) * Number of discrete variables: 8 ($whenCondition1,tank.ports_m_flow_out[1],tank.aboveLevel[1],timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 8 (tank.aboveLevel[1],tank.ports_m_flow_out[1],timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.004024/2.283, allocations: 2.04 MB / 0.7822 GB, free: 88.86 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003452/2.286, allocations: 1.188 MB / 0.7834 GB, free: 88.38 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.945e-06/2.287, allocations: 3.938 kB / 0.7834 GB, free: 88.38 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00104/2.288, allocations: 348.2 kB / 0.7837 GB, free: 88.23 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002115/2.29, allocations: 249.7 kB / 0.784 GB, free: 88.16 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007031/2.297, allocations: 8.448 MB / 0.7922 GB, free: 80.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000569/2.297, allocations: 0.9826 MB / 0.7932 GB, free: 79.97 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001466/2.299, allocations: 240.7 kB / 0.7934 GB, free: 79.94 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005598/2.3, allocations: 251.2 kB / 0.7936 GB, free: 79.76 MB / 410.7 MB Notification: Performance of SimCode: time 1.393e-06/2.3, allocations: 0 / 0.7936 GB, free: 79.76 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06925/2.369, allocations: 22.78 MB / 0.8159 GB, free: 63.24 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000303/2.369, allocations: 260.9 kB / 0.8161 GB, free: 62.9 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.694/6.063, allocations: 0 / 0.8161 GB, free: 62.9 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat