Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Media.Examples.WaterIF97.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadModel(Modelica): time 1.531/1.531, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003509/0.0003509, allocations: 11.98 kB / 233.2 MB, free: 3.023 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06622/0.06659, allocations: 38.77 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.872/5.939, allocations: 2.504 GB / 2.77 GB, free: 52.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002/5.939, allocations: 67.78 kB / 2.77 GB, free: 52.65 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5375/6.477, allocations: 105.9 MB / 2.873 GB, free: 73.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.424e-06/6.477, allocations: 3.938 kB / 2.873 GB, free: 73.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.259e-05/6.477, allocations: 0 / 2.873 GB, free: 73.77 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.006196/6.483, allocations: 1.154 MB / 2.875 GB, free: 73.12 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/6.483, allocations: 7.875 kB / 2.875 GB, free: 73.12 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005923/6.484, allocations: 46.7 kB / 2.875 GB, free: 73.12 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002435/6.484, allocations: 223.9 kB / 2.875 GB, free: 72.91 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.222e-05/6.484, allocations: 11.5 kB / 2.875 GB, free: 72.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.97e-05/6.484, allocations: 18.39 kB / 2.875 GB, free: 72.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/6.485, allocations: 395.1 kB / 2.875 GB, free: 72.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.343e-05/6.485, allocations: 6.281 kB / 2.875 GB, free: 72.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.452e-05/6.486, allocations: 8.031 kB / 2.875 GB, free: 72.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.529e-06/6.486, allocations: 6.188 kB / 2.875 GB, free: 72.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001625/6.487, allocations: 366.7 kB / 2.876 GB, free: 72.79 MB / 362.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001445/6.489, allocations: 1.183 MB / 2.877 GB, free: 71.8 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000993/6.49, allocations: 297.8 kB / 2.877 GB, free: 71.71 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1018/6.592, allocations: 47.11 MB / 2.923 GB, free: 35.86 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/6.592, allocations: 42.19 kB / 2.923 GB, free: 35.81 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.937e-06/6.592, allocations: 4 kB / 2.923 GB, free: 35.81 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.008202/6.6, allocations: 1.62 MB / 2.925 GB, free: 34.66 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/6.6, allocations: 110.9 kB / 2.925 GB, free: 34.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.992e-05/6.6, allocations: 104.8 kB / 2.925 GB, free: 34.42 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/6.6, allocations: 30.83 kB / 2.925 GB, free: 34.38 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.246e-05/6.6, allocations: 178.7 kB / 2.925 GB, free: 34.21 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.996e-05/6.6, allocations: 121.7 kB / 2.925 GB, free: 34.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.736e-05/6.6, allocations: 4 kB / 2.925 GB, free: 34.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 5.573e-05/6.6, allocations: 326.5 kB / 2.926 GB, free: 33.78 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004557/6.601, allocations: 139.9 kB / 2.926 GB, free: 33.66 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005041/6.601, allocations: 213.5 kB / 2.926 GB, free: 33.46 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004808/6.602, allocations: 151.9 kB / 2.926 GB, free: 33.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.893e-06/6.602, allocations: 0 / 2.926 GB, free: 33.32 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001326/6.603, allocations: 430.9 kB / 2.926 GB, free: 32.94 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.855e-05/6.603, allocations: 8.625 kB / 2.926 GB, free: 32.93 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.702e-06/6.603, allocations: 0 / 2.926 GB, free: 32.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003201/6.604, allocations: 44.94 kB / 2.926 GB, free: 32.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005626/6.604, allocations: 94.66 kB / 2.927 GB, free: 32.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003304/6.604, allocations: 0.5442 MB / 2.927 GB, free: 32.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003646/6.605, allocations: 39.06 kB / 2.927 GB, free: 32.22 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.622e-05/6.605, allocations: 19.78 kB / 2.927 GB, free: 32.21 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 (medium.phase,state.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * 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 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000162/6.605, allocations: 137.8 kB / 2.927 GB, free: 32.06 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001317/6.605, allocations: 15.86 kB / 2.927 GB, free: 32.05 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0024/6.608, allocations: 1.459 MB / 2.929 GB, free: 30.74 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.46e-05/6.608, allocations: 19.5 kB / 2.929 GB, free: 30.73 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.691e-06/6.608, allocations: 4 kB / 2.929 GB, free: 30.73 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.434e-06/6.608, allocations: 3.703 kB / 2.929 GB, free: 30.73 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003343/6.611, allocations: 1.996 MB / 2.931 GB, free: 28.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.562e-06/6.611, allocations: 7.938 kB / 2.931 GB, free: 28.91 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005448/6.612, allocations: 86.91 kB / 2.931 GB, free: 28.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004275/6.612, allocations: 79.8 kB / 2.931 GB, free: 28.78 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.552e-05/6.612, allocations: 11.8 kB / 2.931 GB, free: 28.77 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003249/6.613, allocations: 0.5938 MB / 2.931 GB, free: 28.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.809e-06/6.613, allocations: 3.938 kB / 2.931 GB, free: 28.16 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002444/6.615, allocations: 1.774 MB / 2.933 GB, free: 26.46 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.044e-05/6.615, allocations: 132.4 kB / 2.933 GB, free: 26.31 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.826e-05/6.615, allocations: 8 kB / 2.933 GB, free: 26.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004748/6.616, allocations: 27.72 kB / 2.933 GB, free: 26.29 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.982e-05/6.616, allocations: 31.62 kB / 2.933 GB, free: 26.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.586e-05/6.616, allocations: 15.89 kB / 2.933 GB, free: 26.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.242e-05/6.616, allocations: 90.98 kB / 2.933 GB, free: 26.17 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.83e-07/6.616, allocations: 4 kB / 2.933 GB, free: 26.16 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003748/6.62, allocations: 0.9507 MB / 2.934 GB, free: 25.23 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (medium.p,medium.h,V) * Number of discrete variables: 11 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.region3boundary,$cse6.region3boundary,medium.phase,$cse1.phase,$cse1.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0064/6.626, allocations: 1.24 MB / 2.936 GB, free: 24.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0015/6.628, allocations: 0.6029 MB / 2.936 GB, free: 23.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.72e-06/6.628, allocations: 0 / 2.936 GB, free: 23.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009231/6.629, allocations: 0.5161 MB / 2.937 GB, free: 23.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007436/6.629, allocations: 74.78 kB / 2.937 GB, free: 23.14 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002562/6.632, allocations: 1.598 MB / 2.938 GB, free: 21.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002778/6.632, allocations: 0.8279 MB / 2.939 GB, free: 20.88 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002041/6.632, allocations: 35.28 kB / 2.939 GB, free: 20.84 MB / 362.7 MB Notification: Performance of SimCode: time 1.579e-06/6.632, allocations: 4 kB / 2.939 GB, free: 20.84 MB / 362.7 MB Notification: Performance of Templates: time 0.03545/6.668, allocations: 23.74 MB / 2.962 GB, free: 3.004 MB / 362.7 MB