Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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: 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.613/1.613, allocations: 171.1 MB / 187.3 MB, free: 1.055 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003465/0.0003467, allocations: 8 kB / 233.8 MB, free: 3.082 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08515/0.08552, allocations: 38.77 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 7.132/7.218, allocations: 2.504 GB / 2.771 GB, free: 23.76 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002626/7.218, allocations: 68.28 kB / 2.771 GB, free: 23.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8399/8.058, allocations: 105.9 MB / 2.874 GB, free: 62.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.324e-06/8.058, allocations: 0 / 2.874 GB, free: 62.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.741e-05/8.058, allocations: 4 kB / 2.874 GB, free: 62.93 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.008739/8.067, allocations: 1.148 MB / 2.875 GB, free: 61.9 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/8.067, allocations: 12.03 kB / 2.875 GB, free: 61.89 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006978/8.068, allocations: 50.17 kB / 2.875 GB, free: 61.85 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003153/8.068, allocations: 223.9 kB / 2.875 GB, free: 61.63 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.093e-05/8.068, allocations: 14.34 kB / 2.875 GB, free: 61.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.512e-05/8.068, allocations: 17.81 kB / 2.875 GB, free: 61.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001965/8.07, allocations: 395.5 kB / 2.876 GB, free: 61.36 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.479e-05/8.07, allocations: 0 / 2.876 GB, free: 61.36 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.468e-05/8.07, allocations: 7.875 kB / 2.876 GB, free: 61.35 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/8.07, allocations: 4 kB / 2.876 GB, free: 61.35 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00238/8.073, allocations: 373 kB / 2.876 GB, free: 61.14 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.001817/8.075, allocations: 1.185 MB / 2.877 GB, free: 60.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001265/8.076, allocations: 293.4 kB / 2.878 GB, free: 59.81 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1487/8.225, allocations: 47.1 MB / 2.924 GB, free: 14.22 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.94e-05/8.225, allocations: 50.41 kB / 2.924 GB, free: 14.16 MB / 362.7 MB Notification: Performance of pre-optimization done (n=23): time 2.375e-06/8.225, allocations: 0 / 2.924 GB, free: 14.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=33): time 0.01103/8.236, allocations: 1.62 MB / 2.925 GB, free: 12.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.275e-05/8.236, allocations: 110.8 kB / 2.925 GB, free: 12.64 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/8.236, allocations: 117.6 kB / 2.925 GB, free: 12.52 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.789e-05/8.236, allocations: 31.3 kB / 2.925 GB, free: 12.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.825e-05/8.236, allocations: 174.7 kB / 2.926 GB, free: 12.31 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/8.236, allocations: 121.8 kB / 2.926 GB, free: 12.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.485e-05/8.236, allocations: 4 kB / 2.926 GB, free: 12.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.488e-05/8.236, allocations: 326.7 kB / 2.926 GB, free: 11.88 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006708/8.237, allocations: 138.7 kB / 2.926 GB, free: 11.76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006736/8.238, allocations: 208.8 kB / 2.926 GB, free: 11.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006771/8.239, allocations: 155.9 kB / 2.927 GB, free: 11.42 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/8.239, allocations: 4 kB / 2.927 GB, free: 11.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001759/8.24, allocations: 426 kB / 2.927 GB, free: 10.99 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.258e-05/8.24, allocations: 13.25 kB / 2.927 GB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/8.24, allocations: 7.984 kB / 2.927 GB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003634/8.241, allocations: 40.73 kB / 2.927 GB, free: 10.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008163/8.242, allocations: 91.88 kB / 2.927 GB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003721/8.242, allocations: 0.5485 MB / 2.928 GB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005102/8.242, allocations: 23.89 kB / 2.928 GB, free: 10.24 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.095e-05/8.243, allocations: 19.98 kB / 2.928 GB, free: 10.22 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.0001882/8.243, allocations: 138 kB / 2.928 GB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001125/8.243, allocations: 19.95 kB / 2.928 GB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003132/8.246, allocations: 1.462 MB / 2.929 GB, free: 8.578 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.175e-05/8.246, allocations: 23.95 kB / 2.929 GB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/8.246, allocations: 0 / 2.929 GB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.487e-06/8.246, allocations: 0 / 2.929 GB, free: 8.555 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004127/8.25, allocations: 1.999 MB / 2.931 GB, free: 6.492 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/8.25, allocations: 4 kB / 2.931 GB, free: 6.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007865/8.251, allocations: 91.98 kB / 2.931 GB, free: 6.398 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005317/8.252, allocations: 76.69 kB / 2.931 GB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.621e-05/8.252, allocations: 15.98 kB / 2.931 GB, free: 6.305 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003682/8.252, allocations: 0.5874 MB / 2.932 GB, free: 5.691 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/8.252, allocations: 4.031 kB / 2.932 GB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003183/8.255, allocations: 1.703 MB / 2.934 GB, free: 3.945 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.596e-05/8.255, allocations: 136.4 kB / 2.934 GB, free: 3.793 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.672e-05/8.256, allocations: 8 kB / 2.934 GB, free: 3.785 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005902/8.256, allocations: 23.98 kB / 2.934 GB, free: 3.762 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001056/8.256, allocations: 31.95 kB / 2.934 GB, free: 3.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-05/8.256, allocations: 19.98 kB / 2.934 GB, free: 3.711 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.661e-05/8.256, allocations: 91.27 kB / 2.934 GB, free: 3.621 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.462e-06/8.256, allocations: 0 / 2.934 GB, free: 3.621 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005307/8.262, allocations: 0.96 MB / 2.935 GB, free: 2.66 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.009788/8.272, allocations: 1.234 MB / 2.936 GB, free: 1.422 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002023/8.274, allocations: 0.6014 MB / 2.937 GB, free: 0.8203 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.801e-06/8.274, allocations: 0 / 2.937 GB, free: 0.8203 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001194/8.275, allocations: 0.5167 MB / 2.937 GB, free: 312 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009479/8.276, allocations: 84.58 kB / 2.937 GB, free: 228 kB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2412/8.517, allocations: 1.583 MB / 2.939 GB, free: 70.21 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003794/8.518, allocations: 0.8236 MB / 2.94 GB, free: 69.51 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002958/8.518, allocations: 42.64 kB / 2.94 GB, free: 69.51 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/8.518, allocations: 0 / 2.94 GB, free: 69.51 MB / 362.7 MB Notification: Performance of Templates: time 0.05462/8.572, allocations: 23.74 MB / 2.963 GB, free: 67.9 MB / 362.7 MB