Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica_Fluid_Examples_AST_BatchPlant_Test_OneTank",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.964/1.964, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006989/0.0006991, allocations: 12 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1505/0.1513, allocations: 44.51 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.015/1.166, allocations: 321.5 MB / 0.6153 GB, free: 61 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003457/1.167, allocations: 99.95 kB / 0.6154 GB, free: 60.95 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7749/1.942, allocations: 141.9 MB / 0.754 GB, free: 93.05 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.937e-06/1.942, allocations: 8 kB / 0.754 GB, free: 93.04 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.038e-05/1.942, allocations: 16 kB / 0.754 GB, free: 93.02 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.00417/1.946, allocations: 1.173 MB / 0.7551 GB, free: 91.8 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.66e-05/1.946, allocations: 8.031 kB / 0.7552 GB, free: 91.8 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004228/1.947, allocations: 101.2 kB / 0.7553 GB, free: 91.69 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006/1.947, allocations: 98.92 kB / 0.7553 GB, free: 91.59 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002258/1.95, allocations: 0.6444 MB / 0.756 GB, free: 90.92 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001184/1.95, allocations: 100.2 kB / 0.7561 GB, free: 90.81 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001556/1.95, allocations: 55.91 kB / 0.7561 GB, free: 90.75 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001979/1.952, allocations: 0.7973 MB / 0.7569 GB, free: 89.91 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.448e-05/1.952, allocations: 7.938 kB / 0.7569 GB, free: 89.91 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001217/1.952, allocations: 23.83 kB / 0.7569 GB, free: 89.89 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.731e-05/1.952, allocations: 40.97 kB / 0.757 GB, free: 89.85 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001797/1.954, allocations: 0.6751 MB / 0.7576 GB, free: 89.17 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007421/1.961, allocations: 3.411 MB / 0.761 GB, free: 85.57 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009934/1.963, allocations: 397.4 kB / 0.7613 GB, free: 85.17 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00247/1.965, allocations: 1.301 MB / 0.7626 GB, free: 83.74 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006411/1.966, allocations: 296.8 kB / 0.7629 GB, free: 83.43 MB / 410.7 MB Notification: Performance of pre-optimization done (n=35): time 3.587e-06/1.966, allocations: 3.938 kB / 0.7629 GB, free: 83.43 MB / 410.7 MB Notification: Performance of matching and sorting (n=40): time 0.005896/1.972, allocations: 1.815 MB / 0.7647 GB, free: 81.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.643e-05/1.972, allocations: 170.4 kB / 0.7648 GB, free: 81.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001038/1.973, allocations: 0.6167 MB / 0.7654 GB, free: 80.68 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.915e-05/1.973, allocations: 33.7 kB / 0.7655 GB, free: 80.64 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002956/1.973, allocations: 436.6 kB / 0.7659 GB, free: 80.21 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001534/1.973, allocations: 141.6 kB / 0.766 GB, free: 80.08 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.639e-05/1.973, allocations: 16 kB / 0.766 GB, free: 80.06 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.174e-05/1.974, allocations: 338.8 kB / 0.7664 GB, free: 79.72 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006209/1.974, allocations: 253.8 kB / 0.7666 GB, free: 79.48 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007872/1.975, allocations: 0.5232 MB / 0.7671 GB, free: 78.82 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007708/1.976, allocations: 359.1 kB / 0.7675 GB, free: 78.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/1.976, allocations: 0 / 0.7675 GB, free: 78.46 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002427/1.978, allocations: 0.9042 MB / 0.7683 GB, free: 77.54 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008725/1.979, allocations: 3.513 MB / 0.7718 GB, free: 73.75 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.528e-05/1.979, allocations: 8 kB / 0.7718 GB, free: 73.75 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009414/1.98, allocations: 132.8 kB / 0.7719 GB, free: 73.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/1.981, allocations: 151.8 kB / 0.772 GB, free: 73.46 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007742/1.982, allocations: 0.6655 MB / 0.7727 GB, free: 72.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001108/1.983, allocations: 52.03 kB / 0.7727 GB, free: 72.72 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001053/1.983, allocations: 40 kB / 0.7728 GB, free: 72.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/1.983, allocations: 4 kB / 0.7728 GB, free: 72.68 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002507/1.986, allocations: 0.8793 MB / 0.7736 GB, free: 71.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/1.986, allocations: 8 kB / 0.7737 GB, free: 71.78 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005794/1.986, allocations: 121.2 kB / 0.7738 GB, free: 71.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009153/1.987, allocations: 143.8 kB / 0.7739 GB, free: 71.52 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006281/1.988, allocations: 0.6498 MB / 0.7745 GB, free: 70.84 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007397/1.989, allocations: 44.03 kB / 0.7746 GB, free: 70.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.865e-05/1.989, allocations: 44 kB / 0.7746 GB, free: 70.76 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.0007596/1.99, allocations: 391.9 kB / 0.775 GB, free: 70.36 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000193/1.99, allocations: 83 kB / 0.7751 GB, free: 70.28 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001927/1.992, allocations: 0.6596 MB / 0.7757 GB, free: 69.6 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/1.992, allocations: 7.938 kB / 0.7757 GB, free: 69.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/1.992, allocations: 0 / 0.7757 GB, free: 69.59 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.068e-05/1.992, allocations: 11.98 kB / 0.7757 GB, free: 69.58 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003/1.995, allocations: 1.351 MB / 0.7771 GB, free: 68.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/1.995, allocations: 0 / 0.7771 GB, free: 68.18 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005368/1.995, allocations: 59.91 kB / 0.7771 GB, free: 68.12 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007406/1.996, allocations: 124.8 kB / 0.7772 GB, free: 67.99 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.921e-05/1.996, allocations: 12 kB / 0.7772 GB, free: 67.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006811/1.997, allocations: 0.6655 MB / 0.7779 GB, free: 67.29 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/1.997, allocations: 4.062 kB / 0.7779 GB, free: 67.29 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00218/1.999, allocations: 1.005 MB / 0.7789 GB, free: 66.24 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000252/1.999, allocations: 148.2 kB / 0.779 GB, free: 66.08 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001805/2, allocations: 16 kB / 0.779 GB, free: 66.06 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006805/2, allocations: 35.97 kB / 0.7791 GB, free: 66.03 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001272/2.001, allocations: 43.83 kB / 0.7791 GB, free: 65.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.712e-05/2.001, allocations: 20 kB / 0.7791 GB, free: 65.96 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008117/2.001, allocations: 479 kB / 0.7796 GB, free: 65.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/2.001, allocations: 0 / 0.7796 GB, free: 65.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002392/2.004, allocations: 0.5581 MB / 0.7801 GB, free: 64.94 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.003946/2.008, allocations: 2.035 MB / 0.7821 GB, free: 62.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003025/2.011, allocations: 1.163 MB / 0.7833 GB, free: 61.73 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/2.011, allocations: 0 / 0.7833 GB, free: 61.73 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009618/2.012, allocations: 347.1 kB / 0.7836 GB, free: 61.38 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002014/2.014, allocations: 253.8 kB / 0.7838 GB, free: 61.13 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00648/2.02, allocations: 8.475 MB / 0.7921 GB, free: 52.42 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005131/2.021, allocations: 0.9772 MB / 0.7931 GB, free: 51.41 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00057/2.022, allocations: 263.3 kB / 0.7933 GB, free: 51.16 MB / 410.7 MB Notification: Performance of SimCode: time 1.383e-06/2.022, allocations: 0 / 0.7933 GB, free: 51.16 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.143/5.165, allocations: 19.64 MB / 0.8125 GB, free: 31.52 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.AST_BatchPlant.Test.OneTank_res.mat does not exist to compare? outputFormat=mat