Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_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_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.901/1.901, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005375/0.0005376, allocations: 8 kB / 233.3 MB, free: 2.938 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1107, allocations: 38.77 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.299/1.41, allocations: 399.7 MB / 0.656 GB, free: 54.83 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003119/1.41, allocations: 91.33 kB / 0.6561 GB, free: 54.79 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.298/2.708, allocations: 210.7 MB / 0.8619 GB, free: 52.13 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.888e-06/2.708, allocations: 0 / 0.8619 GB, free: 52.13 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001591/2.708, allocations: 38.36 kB / 0.8619 GB, free: 52.13 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.009466/2.717, allocations: 1.944 MB / 0.8638 GB, free: 51.36 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.566e-05/2.717, allocations: 9.344 kB / 0.8638 GB, free: 51.36 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009838/2.718, allocations: 168.5 kB / 0.864 GB, free: 51.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001007/2.719, allocations: 162.2 kB / 0.8642 GB, free: 51.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004302/2.724, allocations: 1.003 MB / 0.8651 GB, free: 50.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003321/2.724, allocations: 239.2 kB / 0.8654 GB, free: 50.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005606/2.725, allocations: 102.3 kB / 0.8655 GB, free: 50.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0077/2.732, allocations: 1.783 MB / 0.8672 GB, free: 50.63 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.415e-05/2.733, allocations: 3.625 kB / 0.8672 GB, free: 50.63 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003976/2.733, allocations: 44.77 kB / 0.8673 GB, free: 50.63 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002977/2.733, allocations: 100.5 kB / 0.8674 GB, free: 50.62 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008389/2.742, allocations: 1.759 MB / 0.8691 GB, free: 50.61 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0287/2.77, allocations: 6.837 MB / 0.8757 GB, free: 48.59 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00634/2.777, allocations: 1.439 MB / 0.8772 GB, free: 48.56 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01294/2.79, allocations: 3.938 MB / 0.881 GB, free: 46.98 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.175e-05/2.79, allocations: 55.22 kB / 0.881 GB, free: 46.94 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 6.032e-06/2.79, allocations: 0 / 0.881 GB, free: 46.94 MB / 362.7 MB Notification: Performance of matching and sorting (n=122): time 0.0287/2.819, allocations: 5.879 MB / 0.8868 GB, free: 46.07 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.408e-05/2.819, allocations: 147.8 kB / 0.8869 GB, free: 45.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001928/2.821, allocations: 0.9806 MB / 0.8879 GB, free: 45.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003871/2.821, allocations: 47.05 kB / 0.8879 GB, free: 45.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004188/2.822, allocations: 0.5116 MB / 0.8884 GB, free: 45.46 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006005/2.822, allocations: 419.6 kB / 0.8888 GB, free: 45.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001649/2.822, allocations: 27.78 kB / 0.8889 GB, free: 45.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000115/2.823, allocations: 360.6 kB / 0.8892 GB, free: 44.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002052/2.825, allocations: 0.768 MB / 0.89 GB, free: 44.88 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00221/2.827, allocations: 1.014 MB / 0.8909 GB, free: 44.62 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00215/2.829, allocations: 0.8315 MB / 0.8918 GB, free: 44.61 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.095e-06/2.829, allocations: 2.125 kB / 0.8918 GB, free: 44.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.006999/2.836, allocations: 2.383 MB / 0.8941 GB, free: 44.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005763/2.837, allocations: 2.351 MB / 0.8964 GB, free: 42.03 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.92e-05/2.837, allocations: 6.719 kB / 0.8964 GB, free: 42.03 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006117/2.843, allocations: 1.223 MB / 0.8976 GB, free: 41.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00211/2.845, allocations: 225.4 kB / 0.8978 GB, free: 41.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008934/2.854, allocations: 6.24 MB / 0.9039 GB, free: 37.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002869/2.857, allocations: 106.1 kB / 0.904 GB, free: 37.72 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004141/2.857, allocations: 61.69 kB / 0.9041 GB, free: 37.72 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/2.857, allocations: 3.75 kB / 0.9041 GB, free: 37.72 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00654/2.864, allocations: 2.047 MB / 0.9061 GB, free: 37.64 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.62e-05/2.864, allocations: 7.188 kB / 0.9061 GB, free: 37.64 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003286/2.867, allocations: 0.7486 MB / 0.9068 GB, free: 37.61 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002066/2.869, allocations: 230 kB / 0.907 GB, free: 37.61 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008382/2.878, allocations: 6.817 MB / 0.9137 GB, free: 32.56 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001961/2.88, allocations: 91.06 kB / 0.9138 GB, free: 32.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002072/2.88, allocations: 57.11 kB / 0.9138 GB, free: 32.55 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.001267/2.881, allocations: 461.6 kB / 0.9143 GB, free: 32.36 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005147/2.882, allocations: 132.4 kB / 0.9144 GB, free: 32.29 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007848/2.89, allocations: 2.606 MB / 0.9169 GB, free: 32.15 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.739e-05/2.89, allocations: 14.41 kB / 0.9169 GB, free: 32.15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.108e-06/2.89, allocations: 3.938 kB / 0.9169 GB, free: 32.15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.101e-05/2.89, allocations: 9.469 kB / 0.9169 GB, free: 32.15 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01114/2.901, allocations: 4.188 MB / 0.921 GB, free: 31.73 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.236e-05/2.901, allocations: 0 / 0.921 GB, free: 31.73 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001539/2.903, allocations: 150.2 kB / 0.9212 GB, free: 31.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00569/2.908, allocations: 1.223 MB / 0.9224 GB, free: 31.69 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004023/2.909, allocations: 30.84 kB / 0.9224 GB, free: 31.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008626/2.918, allocations: 6.261 MB / 0.9285 GB, free: 27.45 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/2.918, allocations: 3.938 kB / 0.9285 GB, free: 27.45 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01027/2.928, allocations: 3.587 MB / 0.932 GB, free: 26.96 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001585/2.93, allocations: 439.2 kB / 0.9324 GB, free: 26.69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005322/2.93, allocations: 27.28 kB / 0.9325 GB, free: 26.67 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002002/2.932, allocations: 100.9 kB / 0.9326 GB, free: 26.64 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005091/2.933, allocations: 136 kB / 0.9327 GB, free: 26.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001962/2.933, allocations: 56.08 kB / 0.9327 GB, free: 26.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001466/2.934, allocations: 0.747 MB / 0.9335 GB, free: 26.31 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.31e-07/2.934, allocations: 0 / 0.9335 GB, free: 26.31 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005355/2.94, allocations: 1.113 MB / 0.9346 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.01247/2.952, allocations: 4.871 MB / 0.9393 GB, free: 23.83 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01081/2.963, allocations: 3.617 MB / 0.9429 GB, free: 22.24 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/2.963, allocations: 0 / 0.9429 GB, free: 22.24 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004703/2.968, allocations: 1.348 MB / 0.9442 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.004525/2.972, allocations: 0.5384 MB / 0.9447 GB, free: 21.53 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01575/2.988, allocations: 8.816 MB / 0.9533 GB, free: 15 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009923/2.989, allocations: 1.292 MB / 0.9546 GB, free: 14.24 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001457/2.991, allocations: 0.5262 MB / 0.9551 GB, free: 13.88 MB / 362.7 MB Notification: Performance of SimCode: time 1.383e-06/2.991, allocations: 8.094 kB / 0.9551 GB, free: 13.88 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.306/7.297, allocations: 56.31 MB / 1.01 GB, free: 46.99 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat