Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.929/1.929, allocations: 194.8 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000389/0.0003892, allocations: 8 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07856/0.07897, allocations: 44.5 MB / 308.3 MB, free: 1.035 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.005607/0.08463, allocations: 3.67 MB / 312 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002397/0.08707, allocations: 1.528 MB / 313.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.298e-05/0.08716, allocations: 0 / 313.5 MB, free: 11.8 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002212/0.0874, allocations: 27.88 kB / 313.6 MB, free: 11.78 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003135/0.08773, allocations: 111.6 kB / 313.7 MB, free: 11.67 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008282/0.08858, allocations: 211.5 kB / 313.9 MB, free: 11.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003281/0.08892, allocations: 187.6 kB / 314.1 MB, free: 11.28 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.863e-05/0.08898, allocations: 13.12 kB / 314.1 MB, free: 11.26 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002907/0.08929, allocations: 111.7 kB / 314.2 MB, free: 11.15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001213/0.08943, allocations: 59.77 kB / 314.2 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.205e-05/0.08947, allocations: 8 kB / 314.3 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002715/0.08975, allocations: 87.89 kB / 314.3 MB, free: 11 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.986e-05/0.08984, allocations: 31.89 kB / 314.4 MB, free: 10.97 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.765e-05/0.08992, allocations: 49.7 kB / 314.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003002/0.09024, allocations: 155.8 kB / 314.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.521e-06/0.09025, allocations: 0 / 314.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.015e-06/0.09026, allocations: 0 / 314.6 MB, free: 10.76 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.674e-06/0.09028, allocations: 0 / 314.6 MB, free: 10.76 MB / 266.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.0009978/0.09129, allocations: 451.2 kB / 315 MB, free: 10.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.706e-05/0.09134, allocations: 8.031 kB / 315 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002245/0.09157, allocations: 27.77 kB / 315 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002709/0.09186, allocations: 198.9 kB / 315.2 MB, free: 10 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.0919, allocations: 16.28 kB / 315.3 MB, free: 9.988 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.21e-05/0.09195, allocations: 12 kB / 315.3 MB, free: 9.977 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005132/0.09247, allocations: 212.6 kB / 315.5 MB, free: 9.746 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.87e-05/0.09251, allocations: 7.938 kB / 315.5 MB, free: 9.738 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.09256, allocations: 4 kB / 315.5 MB, free: 9.734 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.09258, allocations: 7.984 kB / 315.5 MB, free: 9.727 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004708/0.09306, allocations: 147.8 kB / 315.6 MB, free: 9.582 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001657/0.09473, allocations: 0.9516 MB / 316.6 MB, free: 8.555 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000502/0.09526, allocations: 154.7 kB / 316.7 MB, free: 8.395 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007099/0.09598, allocations: 0.5031 MB / 317.2 MB, free: 7.828 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.208e-05/0.09604, allocations: 38.56 kB / 317.3 MB, free: 7.781 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 2.732e-06/0.09606, allocations: 7.938 kB / 317.3 MB, free: 7.773 MB / 266.7 MB Notification: Performance of matching and sorting (n=20): time 0.003047/0.09912, allocations: 0.7563 MB / 318 MB, free: 6.965 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.849e-05/0.09919, allocations: 55.41 kB / 318.1 MB, free: 6.898 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.0994, allocations: 158 kB / 318.3 MB, free: 6.738 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.001e-05/0.09945, allocations: 29.7 kB / 318.3 MB, free: 6.703 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/0.0996, allocations: 210.3 kB / 318.5 MB, free: 6.496 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.394e-05/0.0997, allocations: 67 kB / 318.6 MB, free: 6.43 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.324e-05/0.09973, allocations: 11.94 kB / 318.6 MB, free: 6.418 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001682/0.09991, allocations: 322.8 kB / 318.9 MB, free: 6.094 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003138/0.1002, allocations: 79.94 kB / 319 MB, free: 6.016 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004412/0.1007, allocations: 189.9 kB / 319.1 MB, free: 5.781 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003711/0.1011, allocations: 108.8 kB / 319.2 MB, free: 5.676 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.045e-06/0.1011, allocations: 0 / 319.2 MB, free: 5.676 MB / 266.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009233/0.102, allocations: 321.1 kB / 319.6 MB, free: 5.359 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.1021, allocations: 8 kB / 319.6 MB, free: 5.352 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.1021, allocations: 4 kB / 319.6 MB, free: 5.348 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.1021, allocations: 7.984 kB / 319.6 MB, free: 5.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004828/0.1026, allocations: 83.83 kB / 319.7 MB, free: 5.258 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/0.1026, allocations: 4 kB / 319.7 MB, free: 5.254 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002912/0.1029, allocations: 24.2 kB / 319.7 MB, free: 5.23 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.545e-05/0.103, allocations: 16 kB / 319.7 MB, free: 5.215 MB / 266.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.000177/0.1032, allocations: 129.8 kB / 319.8 MB, free: 5.078 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.16e-05/0.1033, allocations: 19.84 kB / 319.9 MB, free: 5.059 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008661/0.1042, allocations: 245.6 kB / 320.1 MB, free: 4.82 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.06e-06/0.1042, allocations: 4 kB / 320.1 MB, free: 4.816 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.35e-05/0.1042, allocations: 3.984 kB / 320.1 MB, free: 4.812 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.643e-06/0.1042, allocations: 3.938 kB / 320.1 MB, free: 4.809 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001689/0.1059, allocations: 0.6029 MB / 320.7 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.774e-06/0.106, allocations: 0 / 320.7 MB, free: 4.137 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003791/0.1063, allocations: 55.88 kB / 320.8 MB, free: 4.082 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.06e-05/0.1064, allocations: 8.125 kB / 320.8 MB, free: 4.074 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.977e-05/0.1064, allocations: 8 kB / 320.8 MB, free: 4.066 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.506e-06/0.1064, allocations: 0 / 320.8 MB, free: 4.066 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/0.1064, allocations: 4 kB / 320.8 MB, free: 4.062 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001076/0.1075, allocations: 402.6 kB / 321.2 MB, free: 3.641 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.775e-05/0.1076, allocations: 88.95 kB / 321.3 MB, free: 3.535 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.63e-05/0.1077, allocations: 4 kB / 321.3 MB, free: 3.531 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003107/0.108, allocations: 20.05 kB / 321.3 MB, free: 3.512 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.342e-05/0.1081, allocations: 11.98 kB / 321.3 MB, free: 3.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-05/0.1081, allocations: 11.98 kB / 321.3 MB, free: 3.488 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001201/0.1083, allocations: 107.2 kB / 321.4 MB, free: 3.383 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.95e-07/0.1083, allocations: 0 / 321.4 MB, free: 3.383 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005423/0.1088, allocations: 67.89 kB / 321.5 MB, free: 3.316 MB / 266.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.0002562/0.1091, allocations: 135.2 kB / 321.6 MB, free: 3.172 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007433/0.1099, allocations: 215.8 kB / 321.8 MB, free: 2.965 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.503e-06/0.1099, allocations: 0 / 321.8 MB, free: 2.965 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003178/0.1102, allocations: 95.81 kB / 321.9 MB, free: 2.871 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004003/0.1106, allocations: 32.47 kB / 321.9 MB, free: 2.84 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001292/0.1119, allocations: 0.5859 MB / 322.5 MB, free: 2.211 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004019/0.1123, allocations: 0.7167 MB / 323.3 MB, free: 1.469 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001445/0.1125, allocations: 31.42 kB / 323.3 MB, free: 1.441 MB / 266.7 MB Notification: Performance of SimCode: time 4.016e-06/0.1125, allocations: 0 / 323.3 MB, free: 1.441 MB / 266.7 MB Notification: Performance of Templates: time 0.006051/0.1186, allocations: 2.571 MB / 325.9 MB, free: 14.86 MB / 282.7 MB