Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Fluid.Examples.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_1_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.717/1.717, allocations: 171.1 MB / 186.1 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003718/0.0003718, allocations: 8 kB / 233.4 MB, free: 2.27 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0883/0.08871, allocations: 38.77 MB / 272.1 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.26/1.349, allocations: 399.7 MB / 0.656 GB, free: 55.06 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003785/1.349, allocations: 86.45 kB / 0.6561 GB, free: 55.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.252/2.601, allocations: 210.8 MB / 0.8619 GB, free: 52.28 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.916e-06/2.601, allocations: 1.875 kB / 0.8619 GB, free: 52.28 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001446/2.601, allocations: 34.41 kB / 0.862 GB, free: 52.28 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.009207/2.61, allocations: 1.943 MB / 0.8639 GB, free: 51.51 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.14e-05/2.61, allocations: 8.688 kB / 0.8639 GB, free: 51.51 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009987/2.611, allocations: 173.8 kB / 0.864 GB, free: 51.47 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009632/2.612, allocations: 165.9 kB / 0.8642 GB, free: 51.4 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003978/2.616, allocations: 0.9971 MB / 0.8652 GB, free: 51.13 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002925/2.617, allocations: 238.8 kB / 0.8654 GB, free: 50.97 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004957/2.617, allocations: 98.58 kB / 0.8655 GB, free: 50.97 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005342/2.622, allocations: 1.796 MB / 0.8672 GB, free: 50.78 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.727e-05/2.622, allocations: 2.812 kB / 0.8672 GB, free: 50.78 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002563/2.623, allocations: 40.58 kB / 0.8673 GB, free: 50.78 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001932/2.623, allocations: 102.5 kB / 0.8674 GB, free: 50.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005788/2.629, allocations: 1.754 MB / 0.8691 GB, free: 50.76 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02143/2.65, allocations: 6.833 MB / 0.8758 GB, free: 48.74 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004547/2.655, allocations: 1.445 MB / 0.8772 GB, free: 48.71 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009698/2.665, allocations: 3.937 MB / 0.881 GB, free: 47.13 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/2.665, allocations: 47.19 kB / 0.8811 GB, free: 47.09 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 4.348e-06/2.665, allocations: 0 / 0.8811 GB, free: 47.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.02443/2.689, allocations: 5.879 MB / 0.8868 GB, free: 46.22 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.869e-05/2.689, allocations: 151.7 kB / 0.887 GB, free: 46.07 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002948/2.692, allocations: 0.9771 MB / 0.8879 GB, free: 45.92 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005/2.693, allocations: 49.48 kB / 0.888 GB, free: 45.89 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007566/2.694, allocations: 0.5272 MB / 0.8885 GB, free: 45.68 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008325/2.694, allocations: 410.9 kB / 0.8889 GB, free: 45.42 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002835/2.695, allocations: 30.91 kB / 0.8889 GB, free: 45.42 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001617/2.695, allocations: 356.7 kB / 0.8892 GB, free: 45.11 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003456/2.698, allocations: 0.7643 MB / 0.89 GB, free: 45.11 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003713/2.702, allocations: 1.021 MB / 0.891 GB, free: 44.85 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003761/2.706, allocations: 0.8313 MB / 0.8918 GB, free: 44.84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.395e-06/2.706, allocations: 0 / 0.8918 GB, free: 44.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.007589/2.714, allocations: 2.463 MB / 0.8942 GB, free: 44.66 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005102/2.714, allocations: 2.355 MB / 0.8965 GB, free: 42.21 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/2.714, allocations: 7.375 kB / 0.8965 GB, free: 42.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006058/2.72, allocations: 1.221 MB / 0.8977 GB, free: 42.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001981/2.722, allocations: 225.3 kB / 0.8979 GB, free: 42.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00859/2.731, allocations: 6.242 MB / 0.904 GB, free: 37.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002721/2.734, allocations: 98.06 kB / 0.9041 GB, free: 37.91 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004293/2.734, allocations: 62.52 kB / 0.9042 GB, free: 37.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/2.734, allocations: 2.906 kB / 0.9042 GB, free: 37.91 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006408/2.741, allocations: 2.05 MB / 0.9062 GB, free: 37.83 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.692e-05/2.741, allocations: 3.969 kB / 0.9062 GB, free: 37.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003584/2.744, allocations: 0.7887 MB / 0.9069 GB, free: 37.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002086/2.746, allocations: 231.6 kB / 0.9072 GB, free: 37.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00796/2.754, allocations: 6.811 MB / 0.9138 GB, free: 32.74 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002285/2.757, allocations: 89.92 kB / 0.9139 GB, free: 32.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002124/2.757, allocations: 61.62 kB / 0.9139 GB, free: 32.73 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * Number of states: 0 () * Number of discrete variables: 12 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],$PRE.hysteresis.y,hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (130): * Single equations (assignments): 125 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {4 9,2 3,4 9} Notification: Performance of prepare postOptimizeDAE: time 0.001162/2.758, allocations: 459 kB / 0.9144 GB, free: 32.54 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004047/2.759, allocations: 129.8 kB / 0.9145 GB, free: 32.47 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007498/2.766, allocations: 2.61 MB / 0.9171 GB, free: 32.33 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.47e-05/2.766, allocations: 11.31 kB / 0.9171 GB, free: 32.33 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/2.766, allocations: 2.094 kB / 0.9171 GB, free: 32.33 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.447e-05/2.766, allocations: 7.453 kB / 0.9171 GB, free: 32.33 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01072/2.777, allocations: 4.186 MB / 0.9212 GB, free: 31.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.079e-05/2.777, allocations: 2.625 kB / 0.9212 GB, free: 31.92 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001454/2.778, allocations: 152.2 kB / 0.9213 GB, free: 31.92 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005603/2.784, allocations: 1.215 MB / 0.9225 GB, free: 31.88 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005206/2.785, allocations: 37.02 kB / 0.9225 GB, free: 31.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008772/2.793, allocations: 6.262 MB / 0.9286 GB, free: 27.63 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.465e-06/2.793, allocations: 0 / 0.9286 GB, free: 27.63 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009922/2.803, allocations: 3.595 MB / 0.9322 GB, free: 26.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001658/2.805, allocations: 434.9 kB / 0.9326 GB, free: 26.69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005436/2.806, allocations: 23.12 kB / 0.9326 GB, free: 26.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002105/2.808, allocations: 99.64 kB / 0.9327 GB, free: 26.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004931/2.808, allocations: 146.2 kB / 0.9328 GB, free: 26.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002133/2.809, allocations: 51.41 kB / 0.9329 GB, free: 26.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001469/2.81, allocations: 0.7489 MB / 0.9336 GB, free: 26.31 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.21e-07/2.81, allocations: 3.844 kB / 0.9336 GB, free: 26.31 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005184/2.815, allocations: 1.119 MB / 0.9347 GB, free: 26.06 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (upperTank.medium.T,upperTank.level,lowerTank.medium.T,lowerTank.level) * Number of discrete variables: 11 (upperTank.regularFlow[1],upperTank.regularFlow[2],upperTank.regularFlow[3],upperTank.inFlow[1],upperTank.inFlow[2],upperTank.inFlow[3],lowerTank.regularFlow[1],lowerTank.regularFlow[2],lowerTank.inFlow[1],lowerTank.inFlow[2],hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {5 11,2 4,5 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.01256/2.828, allocations: 4.865 MB / 0.9395 GB, free: 23.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01076/2.839, allocations: 3.597 MB / 0.943 GB, free: 22.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.365e-06/2.839, allocations: 0 / 0.943 GB, free: 22.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004656/2.843, allocations: 1.359 MB / 0.9443 GB, free: 21.65 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004633/2.848, allocations: 0.5409 MB / 0.9448 GB, free: 21.54 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01528/2.863, allocations: 8.773 MB / 0.9534 GB, free: 15.04 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009529/2.864, allocations: 1.292 MB / 0.9547 GB, free: 14.28 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.00334/2.868, allocations: 0.5794 MB / 0.9552 GB, free: 14.26 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/2.869, allocations: 0.5107 MB / 0.9557 GB, free: 13.89 MB / 362.7 MB Notification: Performance of SimCode: time 1.142e-06/2.869, allocations: 3.156 kB / 0.9557 GB, free: 13.89 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4165/3.285, allocations: 52.46 MB / 1.007 GB, free: 46.18 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002931/3.286, allocations: 243.5 kB / 1.007 GB, free: 45.85 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.887/8.173, allocations: 6.109 kB / 1.007 GB, free: 45.85 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat