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.SimpleLiquidWater.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.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Media.Examples.SimpleLiquidWater") Notification: Performance of loadModel(Modelica): time 2.024/2.024, allocations: 194.9 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003555/0.0003556, allocations: 11.98 kB / 264.5 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1053/0.1057, allocations: 44.5 MB / 309 MB, free: 1.07 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.9649/1.071, allocations: 268.5 MB / 0.5639 GB, free: 110.1 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/1.071, allocations: 76.19 kB / 0.564 GB, free: 110.1 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03411/1.105, allocations: 9.39 MB / 0.5731 GB, free: 105 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.595e-06/1.105, allocations: 0 / 0.5731 GB, free: 105 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.428e-05/1.105, allocations: 4 kB / 0.5732 GB, free: 105 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.001113/1.106, allocations: 454.3 kB / 0.5736 GB, free: 104.5 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.069e-05/1.106, allocations: 8.031 kB / 0.5736 GB, free: 104.5 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002355/1.107, allocations: 27.8 kB / 0.5736 GB, free: 104.5 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002457/1.107, allocations: 213.5 kB / 0.5738 GB, free: 104.2 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.959e-05/1.107, allocations: 7.906 kB / 0.5738 GB, free: 104.2 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.26e-05/1.107, allocations: 11.56 kB / 0.5738 GB, free: 104.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005787/1.108, allocations: 212.4 kB / 0.574 GB, free: 104 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.159e-05/1.108, allocations: 8 kB / 0.5741 GB, free: 104 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.01e-05/1.108, allocations: 7 kB / 0.5741 GB, free: 104 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/1.108, allocations: 4 kB / 0.5741 GB, free: 104 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005512/1.108, allocations: 147.2 kB / 0.5742 GB, free: 103.9 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001684/1.11, allocations: 0.9449 MB / 0.5751 GB, free: 103 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006048/1.111, allocations: 146.1 kB / 0.5753 GB, free: 102.9 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006282/1.111, allocations: 0.5001 MB / 0.5758 GB, free: 102.3 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.707e-05/1.111, allocations: 34.12 kB / 0.5758 GB, free: 102.3 MB / 410.7 MB Notification: Performance of pre-optimization done (n=14): time 3.196e-06/1.111, allocations: 0 / 0.5758 GB, free: 102.3 MB / 410.7 MB Notification: Performance of matching and sorting (n=20): time 0.004147/1.115, allocations: 0.7611 MB / 0.5765 GB, free: 101.6 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.481e-05/1.116, allocations: 51.41 kB / 0.5766 GB, free: 101.5 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001756/1.116, allocations: 159.8 kB / 0.5767 GB, free: 101.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.323e-05/1.116, allocations: 29.7 kB / 0.5768 GB, free: 101.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.618e-05/1.116, allocations: 209 kB / 0.577 GB, free: 101.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.879e-05/1.116, allocations: 81.75 kB / 0.577 GB, free: 101.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.441e-05/1.116, allocations: 7.75 kB / 0.577 GB, free: 101.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.683e-05/1.116, allocations: 330 kB / 0.5774 GB, free: 100.8 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004059/1.117, allocations: 73.33 kB / 0.5774 GB, free: 100.7 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004694/1.117, allocations: 195.3 kB / 0.5776 GB, free: 100.5 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004515/1.117, allocations: 101.3 kB / 0.5777 GB, free: 100.4 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/1.117, allocations: 0 / 0.5777 GB, free: 100.4 MB / 410.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.00111/1.119, allocations: 319 kB / 0.578 GB, free: 100.2 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.505e-05/1.119, allocations: 12.03 kB / 0.578 GB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.154e-05/1.119, allocations: 4 kB / 0.578 GB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.146e-05/1.119, allocations: 7.953 kB / 0.578 GB, free: 100.2 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006703/1.119, allocations: 83.83 kB / 0.5781 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.598e-05/1.119, allocations: 7.938 kB / 0.5781 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003965/1.12, allocations: 15.48 kB / 0.5781 GB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.818e-05/1.12, allocations: 19.55 kB / 0.5782 GB, free: 100 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001653/1.12, allocations: 132.6 kB / 0.5783 GB, free: 99.91 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.383e-05/1.12, allocations: 11.91 kB / 0.5783 GB, free: 99.9 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001065/1.121, allocations: 236.5 kB / 0.5785 GB, free: 99.72 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/1.121, allocations: 4 kB / 0.5785 GB, free: 99.72 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/1.121, allocations: 0 / 0.5785 GB, free: 99.72 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/1.121, allocations: 4 kB / 0.5785 GB, free: 99.71 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001884/1.123, allocations: 0.5985 MB / 0.5791 GB, free: 99.13 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.03e-06/1.123, allocations: 0 / 0.5791 GB, free: 99.13 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005356/1.124, allocations: 51.94 kB / 0.5792 GB, free: 99.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.547e-06/1.124, allocations: 4 kB / 0.5792 GB, free: 99.07 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.155e-05/1.124, allocations: 11.8 kB / 0.5792 GB, free: 99.07 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.133e-06/1.124, allocations: 7.938 kB / 0.5792 GB, free: 99.06 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/1.124, allocations: 0 / 0.5792 GB, free: 99.06 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/1.125, allocations: 403.3 kB / 0.5796 GB, free: 98.71 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.359e-05/1.125, allocations: 96.86 kB / 0.5797 GB, free: 98.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.821e-05/1.125, allocations: 7.688 kB / 0.5797 GB, free: 98.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003933/1.126, allocations: 11.92 kB / 0.5797 GB, free: 98.58 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.233e-05/1.126, allocations: 19.86 kB / 0.5797 GB, free: 98.56 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/1.126, allocations: 15.06 kB / 0.5797 GB, free: 98.55 MB / 410.7 MB Notification: Performance of sorting global known variables: time 9.87e-05/1.126, allocations: 109.3 kB / 0.5798 GB, free: 98.45 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.126, allocations: 0 / 0.5798 GB, free: 98.45 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0005368/1.126, allocations: 66.62 kB / 0.5799 GB, free: 98.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 20 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002809/1.127, allocations: 143.5 kB / 0.58 GB, free: 98.25 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0009882/1.128, allocations: 219.2 kB / 0.5802 GB, free: 98.08 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.798e-06/1.128, allocations: 0 / 0.5802 GB, free: 98.08 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003999/1.128, allocations: 90 kB / 0.5803 GB, free: 98.01 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004797/1.129, allocations: 40.33 kB / 0.5804 GB, free: 97.98 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001441/1.13, allocations: 0.58 MB / 0.5809 GB, free: 97.39 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001899/1.13, allocations: 0.7168 MB / 0.5816 GB, free: 96.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001829/1.131, allocations: 27.42 kB / 0.5816 GB, free: 96.62 MB / 410.7 MB Notification: Performance of SimCode: time 1.133e-06/1.131, allocations: 0 / 0.5816 GB, free: 96.62 MB / 410.7 MB Notification: Performance of Templates: time 0.006698/1.137, allocations: 2.741 MB / 0.5843 GB, free: 93.88 MB / 410.7 MB