Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Media.Examples.WaterIF97.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: translateModel(Modelica.Media.Examples.WaterIF97,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|V|medium.h|medium.p",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Examples.WaterIF97") Notification: Performance of loadModel(Modelica): time 2.118/2.118, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006396/0.0006398, allocations: 8 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1522, allocations: 44.51 MB / 309 MB, free: 1.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 8.163/8.315, allocations: 2.614 GB / 2.916 GB, free: 91.46 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002262/8.316, allocations: 72.28 kB / 2.916 GB, free: 91.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7586/9.074, allocations: 107.3 MB / 3.021 GB, free: 69.91 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.395e-06/9.074, allocations: 2.516 kB / 3.021 GB, free: 69.91 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.489e-05/9.074, allocations: 6.188 kB / 3.021 GB, free: 69.91 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.009055/9.083, allocations: 1.149 MB / 3.022 GB, free: 69.39 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/9.083, allocations: 8.562 kB / 3.022 GB, free: 69.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000701/9.084, allocations: 60.88 kB / 3.022 GB, free: 69.38 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003126/9.084, allocations: 215.8 kB / 3.022 GB, free: 69.19 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.128e-05/9.085, allocations: 19.22 kB / 3.022 GB, free: 69.19 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.605e-05/9.085, allocations: 16.77 kB / 3.022 GB, free: 69.19 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001979/9.087, allocations: 393.6 kB / 3.023 GB, free: 69.09 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.51e-05/9.087, allocations: 1.344 kB / 3.023 GB, free: 69.09 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.652e-05/9.087, allocations: 13.78 kB / 3.023 GB, free: 69.09 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/9.087, allocations: 3.812 kB / 3.023 GB, free: 69.09 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002353/9.089, allocations: 365.3 kB / 3.023 GB, free: 69.09 MB / 410.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.001841/9.091, allocations: 1.197 MB / 3.024 GB, free: 68.1 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/9.092, allocations: 290.3 kB / 3.025 GB, free: 68.03 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1461/9.238, allocations: 47.19 MB / 3.071 GB, free: 38.86 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.896e-05/9.238, allocations: 37.75 kB / 3.071 GB, free: 38.82 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 3.687e-06/9.238, allocations: 1.969 kB / 3.071 GB, free: 38.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=33): time 0.01082/9.249, allocations: 1.62 MB / 3.072 GB, free: 38.49 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.469e-05/9.249, allocations: 107.5 kB / 3.072 GB, free: 38.36 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001124/9.25, allocations: 124.9 kB / 3.072 GB, free: 38.26 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.501e-05/9.25, allocations: 35.95 kB / 3.073 GB, free: 38.23 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.185e-05/9.25, allocations: 171 kB / 3.073 GB, free: 38.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001126/9.25, allocations: 118.1 kB / 3.073 GB, free: 38.01 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/9.25, allocations: 3.188 kB / 3.073 GB, free: 38.01 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.877e-05/9.25, allocations: 326.2 kB / 3.073 GB, free: 37.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006527/9.251, allocations: 142.7 kB / 3.073 GB, free: 37.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006773/9.251, allocations: 202.8 kB / 3.073 GB, free: 37.63 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006683/9.252, allocations: 152.4 kB / 3.074 GB, free: 37.62 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.935e-06/9.252, allocations: 0 / 3.074 GB, free: 37.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001744/9.254, allocations: 435.7 kB / 3.074 GB, free: 37.56 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/9.254, allocations: 7.625 kB / 3.074 GB, free: 37.56 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/9.254, allocations: 4.219 kB / 3.074 GB, free: 37.56 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003574/9.254, allocations: 41.78 kB / 3.074 GB, free: 37.55 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008284/9.255, allocations: 91.62 kB / 3.074 GB, free: 37.55 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003677/9.255, allocations: 0.5504 MB / 3.075 GB, free: 37.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004921/9.256, allocations: 28.25 kB / 3.075 GB, free: 37.03 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.904e-05/9.256, allocations: 14.88 kB / 3.075 GB, free: 37.03 MB / 410.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.0001929/9.256, allocations: 142.8 kB / 3.075 GB, free: 36.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001136/9.256, allocations: 19.25 kB / 3.075 GB, free: 36.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003129/9.259, allocations: 1.463 MB / 3.076 GB, free: 36.74 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.887e-05/9.259, allocations: 23.59 kB / 3.076 GB, free: 36.74 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/9.26, allocations: 0 / 3.076 GB, free: 36.74 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.626e-06/9.26, allocations: 0 / 3.076 GB, free: 36.74 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004122/9.264, allocations: 1.994 MB / 3.078 GB, free: 36.34 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/9.264, allocations: 3.438 kB / 3.078 GB, free: 36.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007619/9.264, allocations: 90.83 kB / 3.078 GB, free: 36.33 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005289/9.265, allocations: 73.33 kB / 3.078 GB, free: 36.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.016e-05/9.265, allocations: 11.48 kB / 3.078 GB, free: 36.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003571/9.265, allocations: 0.5925 MB / 3.079 GB, free: 35.8 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/9.265, allocations: 4.781 kB / 3.079 GB, free: 35.8 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003189/9.269, allocations: 1.703 MB / 3.081 GB, free: 35.41 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001009/9.269, allocations: 130.3 kB / 3.081 GB, free: 35.28 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.575e-05/9.269, allocations: 14.22 kB / 3.081 GB, free: 35.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005819/9.27, allocations: 28.52 kB / 3.081 GB, free: 35.28 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.528e-05/9.27, allocations: 30.97 kB / 3.081 GB, free: 35.28 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.709e-05/9.27, allocations: 14.67 kB / 3.081 GB, free: 35.28 MB / 410.7 MB Notification: Performance of sorting global known variables: time 6.135e-05/9.27, allocations: 94.5 kB / 3.081 GB, free: 35.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.91e-07/9.27, allocations: 2.719 kB / 3.081 GB, free: 35.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005071/9.275, allocations: 0.9705 MB / 3.082 GB, free: 35.05 MB / 410.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.009206/9.284, allocations: 1.238 MB / 3.083 GB, free: 34.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002003/9.286, allocations: 0.6022 MB / 3.084 GB, free: 34.74 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.531e-06/9.286, allocations: 0 / 3.084 GB, free: 34.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001227/9.287, allocations: 0.521 MB / 3.084 GB, free: 34.73 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009418/9.288, allocations: 73.78 kB / 3.084 GB, free: 34.73 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003592/9.292, allocations: 1.592 MB / 3.086 GB, free: 34.01 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003041/9.292, allocations: 0.8249 MB / 3.087 GB, free: 33.31 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002867/9.293, allocations: 42.44 kB / 3.087 GB, free: 33.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.212e-06/9.293, allocations: 0 / 3.087 GB, free: 33.3 MB / 410.7 MB Notification: Performance of Templates: time 0.05009/9.343, allocations: 23.91 MB / 3.11 GB, free: 30.48 MB / 410.7 MB