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.EmptyTanks.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.EmptyTanks,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Fluid_Examples_Tanks_EmptyTanks",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.959/1.959, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005122/0.0005122, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1067, allocations: 44.51 MB / 308.5 MB, free: 0.8984 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.03/1.137, allocations: 316.5 MB / 0.6104 GB, free: 66 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000298/1.137, allocations: 80.08 kB / 0.6105 GB, free: 65.95 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7917/1.929, allocations: 130.7 MB / 0.7381 GB, free: 108.6 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.813e-06/1.929, allocations: 0 / 0.7381 GB, free: 108.6 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.125e-05/1.929, allocations: 23.94 kB / 0.7381 GB, free: 108.6 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.003543/1.932, allocations: 1.18 MB / 0.7393 GB, free: 107.4 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.627e-05/1.933, allocations: 12.03 kB / 0.7393 GB, free: 107.4 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002011/1.933, allocations: 102.3 kB / 0.7394 GB, free: 107.3 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000397/1.933, allocations: 102.9 kB / 0.7395 GB, free: 107.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001666/1.935, allocations: 0.6465 MB / 0.7401 GB, free: 106.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001151/1.935, allocations: 107.9 kB / 0.7402 GB, free: 106.4 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000148/1.935, allocations: 58.25 kB / 0.7403 GB, free: 106.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002089/1.937, allocations: 0.8901 MB / 0.7411 GB, free: 105.4 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.878e-05/1.937, allocations: 0 / 0.7411 GB, free: 105.4 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001206/1.937, allocations: 31.2 kB / 0.7412 GB, free: 105.4 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001098/1.938, allocations: 57.22 kB / 0.7412 GB, free: 105.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002045/1.94, allocations: 0.8288 MB / 0.742 GB, free: 104.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007828/1.947, allocations: 3.306 MB / 0.7452 GB, free: 101.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001486/1.949, allocations: 0.6618 MB / 0.7459 GB, free: 100.4 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003846/1.953, allocations: 2.054 MB / 0.7479 GB, free: 98.18 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.741e-05/1.953, allocations: 39.12 kB / 0.7479 GB, free: 98.13 MB / 410.7 MB Notification: Performance of pre-optimization done (n=56): time 2.685e-06/1.953, allocations: 3.938 kB / 0.7479 GB, free: 98.12 MB / 410.7 MB Notification: Performance of matching and sorting (n=66): time 0.01047/1.963, allocations: 2.837 MB / 0.7507 GB, free: 95.22 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.891e-05/1.963, allocations: 89.61 kB / 0.7508 GB, free: 95.11 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001059/1.965, allocations: 0.6049 MB / 0.7514 GB, free: 94.5 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.879e-05/1.965, allocations: 37.7 kB / 0.7514 GB, free: 94.46 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002269/1.965, allocations: 358 kB / 0.7518 GB, free: 94.11 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/1.965, allocations: 226.2 kB / 0.752 GB, free: 93.89 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.328e-05/1.965, allocations: 12 kB / 0.752 GB, free: 93.88 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.285e-05/1.965, allocations: 346.8 kB / 0.7523 GB, free: 93.53 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009009/1.966, allocations: 357.8 kB / 0.7527 GB, free: 93.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009855/1.967, allocations: 0.5027 MB / 0.7531 GB, free: 92.62 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009977/1.968, allocations: 407 kB / 0.7535 GB, free: 92.23 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.04e-06/1.968, allocations: 4 kB / 0.7535 GB, free: 92.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.002826/1.971, allocations: 1.107 MB / 0.7546 GB, free: 91.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003443/1.971, allocations: 1.571 MB / 0.7562 GB, free: 89.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.232e-05/1.971, allocations: 8 kB / 0.7562 GB, free: 89.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001937/1.973, allocations: 440.4 kB / 0.7566 GB, free: 88.97 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001166/1.975, allocations: 163.7 kB / 0.7567 GB, free: 88.81 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001659/1.976, allocations: 1.013 MB / 0.7577 GB, free: 87.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0011/1.977, allocations: 55.86 kB / 0.7578 GB, free: 87.71 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001061/1.978, allocations: 39.92 kB / 0.7578 GB, free: 87.68 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/1.978, allocations: 4 kB / 0.7578 GB, free: 87.67 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002389/1.98, allocations: 0.9258 MB / 0.7587 GB, free: 86.74 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/1.98, allocations: 4 kB / 0.7587 GB, free: 86.74 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008708/1.981, allocations: 241 kB / 0.759 GB, free: 86.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001133/1.982, allocations: 167.8 kB / 0.7591 GB, free: 86.34 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009339/1.983, allocations: 0.8021 MB / 0.7599 GB, free: 85.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007129/1.984, allocations: 43.89 kB / 0.7599 GB, free: 85.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.363e-05/1.984, allocations: 36.08 kB / 0.76 GB, free: 85.43 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[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 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.0006298/1.984, allocations: 328.8 kB / 0.7603 GB, free: 85.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002452/1.985, allocations: 79.06 kB / 0.7604 GB, free: 85.02 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002889/1.988, allocations: 1.095 MB / 0.7614 GB, free: 83.91 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.031e-05/1.988, allocations: 11.94 kB / 0.7615 GB, free: 83.9 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/1.988, allocations: 0 / 0.7615 GB, free: 83.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.464e-05/1.988, allocations: 3.984 kB / 0.7615 GB, free: 83.9 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004496/1.992, allocations: 1.994 MB / 0.7634 GB, free: 81.86 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.673e-06/1.992, allocations: 4 kB / 0.7634 GB, free: 81.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001027/1.993, allocations: 123.9 kB / 0.7635 GB, free: 81.73 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001878/1.995, allocations: 448.5 kB / 0.764 GB, free: 81.29 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001129/1.995, allocations: 19.92 kB / 0.764 GB, free: 81.27 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001659/1.997, allocations: 1.033 MB / 0.765 GB, free: 80.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.706e-06/1.997, allocations: 0 / 0.765 GB, free: 80.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003757/2.001, allocations: 1.591 MB / 0.7665 GB, free: 78.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006278/2.001, allocations: 252 kB / 0.7668 GB, free: 78.34 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001877/2.002, allocations: 15.95 kB / 0.7668 GB, free: 78.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/2.003, allocations: 51.89 kB / 0.7668 GB, free: 78.27 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002044/2.003, allocations: 52.58 kB / 0.7669 GB, free: 78.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001022/2.003, allocations: 35.97 kB / 0.7669 GB, free: 78.18 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008405/2.004, allocations: 471 kB / 0.7674 GB, free: 77.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.203e-06/2.004, allocations: 0 / 0.7674 GB, free: 77.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002466/2.006, allocations: 0.6424 MB / 0.768 GB, free: 77.09 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (tank1.medium.T,tank1.level,tank2.medium.T,tank2.level) * Number of discrete variables: 4 (tank1.regularFlow[1],tank1.inFlow[1],tank2.regularFlow[1],tank2.inFlow[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 57 * 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 {4 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.005606/2.012, allocations: 2.626 MB / 0.7706 GB, free: 74.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004097/2.016, allocations: 1.357 MB / 0.7719 GB, free: 73.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/2.016, allocations: 3.938 kB / 0.7719 GB, free: 73.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00151/2.018, allocations: 467.4 kB / 0.7723 GB, free: 72.65 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002796/2.021, allocations: 350.1 kB / 0.7727 GB, free: 72.31 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007453/2.028, allocations: 5.461 MB / 0.778 GB, free: 66.7 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005332/2.029, allocations: 1.007 MB / 0.779 GB, free: 65.67 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007439/2.029, allocations: 291.3 kB / 0.7793 GB, free: 65.38 MB / 410.7 MB Notification: Performance of SimCode: time 1.322e-06/2.029, allocations: 0 / 0.7793 GB, free: 65.38 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.083/5.113, allocations: 22.35 MB / 0.8011 GB, free: 43.05 MB / 410.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Fluid.Examples.Tanks.EmptyTanks_res.mat does not exist to compare? outputFormat=mat