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.TwoTanks.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.TwoTanks,fileNamePrefix="Modelica_3_2_2_Modelica_Fluid_Examples_AST_BatchPlant_Test_TwoTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.047/2.047, allocations: 194.9 MB / 211.1 MB, free: 8.562 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003608/0.0003609, allocations: 8 kB / 264.1 MB, free: 3.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3186/0.319, allocations: 44.5 MB / 308.6 MB, free: 12.77 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.018/1.337, allocations: 317.3 MB / 0.6112 GB, free: 103.3 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003298/1.337, allocations: 92.8 kB / 0.6112 GB, free: 103.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.769/2.106, allocations: 136.2 MB / 0.7443 GB, free: 103.9 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.827e-06/2.106, allocations: 0 / 0.7443 GB, free: 103.9 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.994e-05/2.106, allocations: 24.25 kB / 0.7443 GB, free: 103.9 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: 120 * Number of variables: 120 Notification: Performance of Generate backend data structure: time 0.003784/2.11, allocations: 1.125 MB / 0.7454 GB, free: 103.3 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.522e-05/2.11, allocations: 8.969 kB / 0.7454 GB, free: 103.3 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003917/2.111, allocations: 94.48 kB / 0.7455 GB, free: 103.2 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005036/2.111, allocations: 87.27 kB / 0.7456 GB, free: 103.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001986/2.113, allocations: 0.5727 MB / 0.7461 GB, free: 103 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.803e-05/2.113, allocations: 42.23 kB / 0.7462 GB, free: 103 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001599/2.113, allocations: 49.86 kB / 0.7462 GB, free: 103 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002001/2.116, allocations: 0.731 MB / 0.7469 GB, free: 102.8 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.367e-05/2.116, allocations: 3.391 kB / 0.7469 GB, free: 102.8 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/2.116, allocations: 25.7 kB / 0.747 GB, free: 102.8 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001012/2.116, allocations: 40.67 kB / 0.747 GB, free: 102.8 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001793/2.118, allocations: 0.6796 MB / 0.7477 GB, free: 102.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006762/2.124, allocations: 2.868 MB / 0.7505 GB, free: 101.5 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001166/2.126, allocations: 464.8 kB / 0.7509 GB, free: 101.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003583/2.126, allocations: 346.1 kB / 0.7512 GB, free: 101.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.681e-05/2.126, allocations: 45.62 kB / 0.7513 GB, free: 101 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 3.997e-06/2.126, allocations: 5.406 kB / 0.7513 GB, free: 101 MB / 410.7 MB Notification: Performance of matching and sorting (n=58): time 0.00914/2.135, allocations: 2.283 MB / 0.7535 GB, free: 100.5 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.207e-05/2.135, allocations: 80.86 kB / 0.7536 GB, free: 100.4 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009917/2.136, allocations: 0.5484 MB / 0.7541 GB, free: 100.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001236/2.137, allocations: 42.61 kB / 0.7542 GB, free: 100.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002729/2.137, allocations: 332.7 kB / 0.7545 GB, free: 100.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002215/2.137, allocations: 199.3 kB / 0.7547 GB, free: 100 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.025e-05/2.137, allocations: 16.58 kB / 0.7547 GB, free: 100 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001328/2.137, allocations: 382.8 kB / 0.7551 GB, free: 99.69 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007444/2.138, allocations: 283.8 kB / 0.7553 GB, free: 99.69 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008598/2.139, allocations: 451.2 kB / 0.7558 GB, free: 99.52 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000804/2.14, allocations: 334.5 kB / 0.7561 GB, free: 99.51 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.933e-06/2.14, allocations: 5.281 kB / 0.7561 GB, free: 99.51 MB / 410.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002352/2.142, allocations: 0.9213 MB / 0.757 GB, free: 99.42 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004702/2.143, allocations: 1.75 MB / 0.7587 GB, free: 97.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.77e-05/2.143, allocations: 7.875 kB / 0.7587 GB, free: 97.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003313/2.146, allocations: 360.5 kB / 0.759 GB, free: 97.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/2.147, allocations: 148.4 kB / 0.7592 GB, free: 97.59 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001291/2.149, allocations: 0.8115 MB / 0.76 GB, free: 97.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001147/2.15, allocations: 58 kB / 0.76 GB, free: 97.06 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.982e-05/2.15, allocations: 33.34 kB / 0.7601 GB, free: 97.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/2.15, allocations: 3.875 kB / 0.7601 GB, free: 97.06 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002102/2.152, allocations: 0.78 MB / 0.7608 GB, free: 97.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/2.152, allocations: 3.281 kB / 0.7608 GB, free: 97.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002442/2.154, allocations: 233.6 kB / 0.761 GB, free: 97.03 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001205/2.156, allocations: 152.8 kB / 0.7612 GB, free: 97.03 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008768/2.157, allocations: 0.7034 MB / 0.7619 GB, free: 96.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001039/2.158, allocations: 45.8 kB / 0.7619 GB, free: 96.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.25e-05/2.158, allocations: 32.2 kB / 0.762 GB, free: 96.51 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 6 ($PRE.tank1.aboveLevel[1],tank1.aboveLevel[1],$PRE.tank2.aboveLevel[1],tank2.aboveLevel[1],tank2.ports_m_flow_out[1],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 (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 7} Notification: Performance of prepare postOptimizeDAE: time 0.0006811/2.159, allocations: 324 kB / 0.7623 GB, free: 96.31 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002017/2.159, allocations: 69.38 kB / 0.7623 GB, free: 96.28 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00234/2.161, allocations: 0.8403 MB / 0.7632 GB, free: 96.19 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.178e-05/2.161, allocations: 7 kB / 0.7632 GB, free: 96.19 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.739e-06/2.161, allocations: 3.625 kB / 0.7632 GB, free: 96.19 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.338e-05/2.161, allocations: 3.938 kB / 0.7632 GB, free: 96.19 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004462/2.166, allocations: 1.668 MB / 0.7648 GB, free: 95.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.695e-06/2.166, allocations: 2.875 kB / 0.7648 GB, free: 95.85 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009913/2.167, allocations: 112.5 kB / 0.7649 GB, free: 95.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002424/2.169, allocations: 335.7 kB / 0.7652 GB, free: 95.84 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001513/2.169, allocations: 22.97 kB / 0.7652 GB, free: 95.84 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001043/2.17, allocations: 0.797 MB / 0.766 GB, free: 95.31 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/2.17, allocations: 0 / 0.766 GB, free: 95.31 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002972/2.173, allocations: 1.257 MB / 0.7673 GB, free: 95.07 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003909/2.174, allocations: 154.6 kB / 0.7674 GB, free: 94.93 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002206/2.174, allocations: 21.45 kB / 0.7674 GB, free: 94.93 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009024/2.175, allocations: 39.88 kB / 0.7675 GB, free: 94.93 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/2.175, allocations: 60.14 kB / 0.7675 GB, free: 94.93 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.284e-05/2.175, allocations: 29.92 kB / 0.7675 GB, free: 94.93 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000777/2.176, allocations: 439.3 kB / 0.768 GB, free: 94.84 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.61e-07/2.176, allocations: 0 / 0.768 GB, free: 94.84 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002631/2.179, allocations: 0.5834 MB / 0.7685 GB, free: 94.74 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 2 (tank1.aboveLevel[1],tank2.aboveLevel[1]) * Number of discrete states: 2 (tank2.aboveLevel[1],tank1.aboveLevel[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 53 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.004926/2.184, allocations: 2.432 MB / 0.7709 GB, free: 93.73 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003443/2.187, allocations: 1.122 MB / 0.772 GB, free: 93.72 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/2.187, allocations: 0 / 0.772 GB, free: 93.72 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/2.188, allocations: 378 kB / 0.7724 GB, free: 93.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00291/2.191, allocations: 333.4 kB / 0.7727 GB, free: 93.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006551/2.198, allocations: 5.405 MB / 0.778 GB, free: 89.66 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005736/2.199, allocations: 0.9853 MB / 0.7789 GB, free: 88.96 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001736/2.2, allocations: 270.7 kB / 0.7792 GB, free: 88.95 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005866/2.201, allocations: 253.5 kB / 0.7794 GB, free: 88.94 MB / 410.7 MB Notification: Performance of SimCode: time 1.403e-06/2.201, allocations: 0 / 0.7794 GB, free: 88.94 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07665/2.278, allocations: 26.67 MB / 0.8055 GB, free: 77.52 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003017/2.278, allocations: 219.8 kB / 0.8057 GB, free: 77.27 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.213/6.491, allocations: 0 / 0.8057 GB, free: 77.27 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.TwoTanks_res.mat does not exist to compare? outputFormat=mat