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.Tanks.TanksWithOverflow.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.Tanks.TanksWithOverflow,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_Tanks_TanksWithOverflow",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.94/1.94, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003728/0.0003725, allocations: 11.94 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1067, allocations: 44.51 MB / 308.5 MB, free: 0.918 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.508/1.614, allocations: 405 MB / 0.6968 GB, free: 106.3 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002933/1.615, allocations: 90.94 kB / 0.6969 GB, free: 106.3 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.13/2.745, allocations: 210.8 MB / 0.9027 GB, free: 82.67 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.156e-06/2.745, allocations: 0 / 0.9027 GB, free: 82.67 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001433/2.745, allocations: 34.44 kB / 0.9028 GB, free: 82.66 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: 271 * Number of variables: 271 Notification: Performance of Generate backend data structure: time 0.008671/2.754, allocations: 1.94 MB / 0.9047 GB, free: 81.61 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/2.754, allocations: 11.84 kB / 0.9047 GB, free: 81.61 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009084/2.755, allocations: 170.9 kB / 0.9048 GB, free: 81.56 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008507/2.756, allocations: 161.4 kB / 0.905 GB, free: 81.49 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003644/2.76, allocations: 0.9956 MB / 0.906 GB, free: 81.17 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002488/2.76, allocations: 234.4 kB / 0.9062 GB, free: 81.01 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00045/2.76, allocations: 105.2 kB / 0.9063 GB, free: 81.01 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005/2.765, allocations: 1.81 MB / 0.9081 GB, free: 80.44 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.581e-05/2.765, allocations: 3.938 kB / 0.9081 GB, free: 80.44 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002919/2.766, allocations: 49.34 kB / 0.9081 GB, free: 80.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002011/2.766, allocations: 103.2 kB / 0.9082 GB, free: 80.39 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005685/2.772, allocations: 1.76 MB / 0.9099 GB, free: 79.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01995/2.792, allocations: 6.829 MB / 0.9166 GB, free: 76.06 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004296/2.796, allocations: 1.433 MB / 0.918 GB, free: 75.51 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00938/2.805, allocations: 3.944 MB / 0.9219 GB, free: 72.39 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.616e-05/2.806, allocations: 50.39 kB / 0.9219 GB, free: 72.34 MB / 410.7 MB Notification: Performance of pre-optimization done (n=110): time 5.45e-06/2.806, allocations: 2.938 kB / 0.9219 GB, free: 72.34 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.03502/2.841, allocations: 5.883 MB / 0.9276 GB, free: 68.23 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.562e-05/2.841, allocations: 171.2 kB / 0.9278 GB, free: 68.02 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002686/2.844, allocations: 0.9885 MB / 0.9288 GB, free: 67.02 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004989/2.844, allocations: 53.7 kB / 0.9288 GB, free: 66.96 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000569/2.845, allocations: 0.5078 MB / 0.9293 GB, free: 66.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007071/2.845, allocations: 412.2 kB / 0.9297 GB, free: 66.06 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002351/2.846, allocations: 28 kB / 0.9297 GB, free: 66.03 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/2.846, allocations: 362.8 kB / 0.9301 GB, free: 65.67 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002071/2.848, allocations: 0.7651 MB / 0.9308 GB, free: 64.9 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002324/2.85, allocations: 1.026 MB / 0.9318 GB, free: 63.79 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002532/2.853, allocations: 0.8277 MB / 0.9326 GB, free: 62.97 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.819e-06/2.853, allocations: 0 / 0.9326 GB, free: 62.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.007258/2.86, allocations: 2.386 MB / 0.935 GB, free: 60.57 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005336/2.861, allocations: 2.367 MB / 0.9373 GB, free: 58.04 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.682e-05/2.861, allocations: 6.25 kB / 0.9373 GB, free: 58.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00606/2.867, allocations: 1.221 MB / 0.9385 GB, free: 56.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001973/2.869, allocations: 223.6 kB / 0.9387 GB, free: 56.62 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008615/2.877, allocations: 6.237 MB / 0.9448 GB, free: 50.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002742/2.88, allocations: 94.94 kB / 0.9449 GB, free: 49.98 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002515/2.881, allocations: 63.97 kB / 0.9449 GB, free: 49.91 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/2.881, allocations: 6.344 kB / 0.9449 GB, free: 49.91 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006153/2.887, allocations: 2.042 MB / 0.9469 GB, free: 47.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.205e-05/2.887, allocations: 4 kB / 0.9469 GB, free: 47.86 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003286/2.89, allocations: 0.7573 MB / 0.9477 GB, free: 47.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002059/2.892, allocations: 227.7 kB / 0.9479 GB, free: 46.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008171/2.9, allocations: 6.826 MB / 0.9546 GB, free: 39.65 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001975/2.902, allocations: 90.81 kB / 0.9547 GB, free: 39.57 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001948/2.903, allocations: 55.98 kB / 0.9547 GB, free: 39.51 MB / 410.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.001291/2.904, allocations: 463.2 kB / 0.9552 GB, free: 39.05 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004814/2.904, allocations: 138.3 kB / 0.9553 GB, free: 38.91 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007547/2.912, allocations: 2.601 MB / 0.9578 GB, free: 36.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.84e-05/2.912, allocations: 16 kB / 0.9578 GB, free: 36.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.687e-06/2.912, allocations: 4 kB / 0.9578 GB, free: 36.28 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.161e-05/2.912, allocations: 15.67 kB / 0.9579 GB, free: 36.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0106/2.923, allocations: 4.179 MB / 0.9619 GB, free: 32.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.191e-05/2.923, allocations: 0 / 0.9619 GB, free: 32.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/2.924, allocations: 151.8 kB / 0.9621 GB, free: 31.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005601/2.93, allocations: 1.217 MB / 0.9633 GB, free: 30.69 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003998/2.93, allocations: 39.97 kB / 0.9633 GB, free: 30.65 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008339/2.939, allocations: 6.255 MB / 0.9694 GB, free: 24.07 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/2.939, allocations: 0 / 0.9694 GB, free: 24.07 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009966/2.949, allocations: 3.596 MB / 0.9729 GB, free: 20.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001574/2.95, allocations: 431.1 kB / 0.9733 GB, free: 20 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004171/2.951, allocations: 28 kB / 0.9734 GB, free: 19.97 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002074/2.953, allocations: 95.77 kB / 0.9735 GB, free: 19.88 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005128/2.953, allocations: 145.1 kB / 0.9736 GB, free: 19.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002214/2.954, allocations: 47.97 kB / 0.9736 GB, free: 19.69 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001469/2.955, allocations: 0.7497 MB / 0.9744 GB, free: 18.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.41e-07/2.955, allocations: 4 kB / 0.9744 GB, free: 18.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005331/2.96, allocations: 1.112 MB / 0.9755 GB, free: 17.82 MB / 410.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.01291/2.973, allocations: 4.862 MB / 0.9802 GB, free: 12.97 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01133/2.985, allocations: 3.621 MB / 0.9837 GB, free: 9.293 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 9.317e-06/2.985, allocations: 0 / 0.9837 GB, free: 9.293 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00514/2.99, allocations: 1.345 MB / 0.9851 GB, free: 7.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00463/2.995, allocations: 0.5416 MB / 0.9856 GB, free: 7.398 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3139/3.309, allocations: 8.831 MB / 0.9942 GB, free: 73.34 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009759/3.31, allocations: 1.285 MB / 0.9955 GB, free: 72.62 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001578/3.311, allocations: 0.5347 MB / 0.996 GB, free: 72.61 MB / 410.7 MB Notification: Performance of SimCode: time 1.442e-06/3.311, allocations: 0 / 0.996 GB, free: 72.61 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.899/7.211, allocations: 56.35 MB / 1.051 GB, free: 68.3 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Tanks.TanksWithOverflow_res.mat does not exist to compare? outputFormat=mat