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.SimpleLiquidWater.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.SimpleLiquidWater,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Media.Examples.SimpleLiquidWater") Notification: Performance of loadModel(Modelica): time 1.6/1.6, allocations: 171.1 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003512, allocations: 8 kB / 233.1 MB, free: 0.9766 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07069/0.07106, allocations: 38.77 MB / 271.9 MB, free: 10.11 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SimpleLiquidWater): time 0.005381/0.07649, allocations: 3.654 MB / 275.6 MB, free: 6.434 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002318/0.07885, allocations: 1.52 MB / 277.1 MB, free: 4.906 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.348e-05/0.07897, allocations: 4 kB / 277.1 MB, free: 4.902 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002318/0.07922, allocations: 39.8 kB / 277.1 MB, free: 4.863 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003512/0.07958, allocations: 103.6 kB / 277.2 MB, free: 4.762 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008135/0.08042, allocations: 219.5 kB / 277.5 MB, free: 4.547 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003113/0.08074, allocations: 175.7 kB / 277.6 MB, free: 4.375 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.393e-05/0.0808, allocations: 13.12 kB / 277.6 MB, free: 4.363 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002971/0.08112, allocations: 119.7 kB / 277.8 MB, free: 4.246 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001287/0.08126, allocations: 63.77 kB / 277.8 MB, free: 4.184 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.979e-05/0.08131, allocations: 4 kB / 277.8 MB, free: 4.18 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002904/0.08161, allocations: 87.89 kB / 277.9 MB, free: 4.094 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.577e-05/0.0817, allocations: 35.89 kB / 277.9 MB, free: 4.059 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.808e-05/0.08178, allocations: 49.64 kB / 278 MB, free: 4.004 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000303/0.08209, allocations: 144 kB / 278.1 MB, free: 3.863 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.553e-06/0.08211, allocations: 0 / 278.1 MB, free: 3.863 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.421e-06/0.08213, allocations: 0 / 278.1 MB, free: 3.863 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.103e-06/0.08215, allocations: 4 kB / 278.1 MB, free: 3.859 MB / 234.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.001002/0.08316, allocations: 455.1 kB / 278.6 MB, free: 3.363 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.596e-05/0.08321, allocations: 8.031 kB / 278.6 MB, free: 3.355 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002296/0.08345, allocations: 19.91 kB / 278.6 MB, free: 3.336 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002905/0.08376, allocations: 202.9 kB / 278.8 MB, free: 3.098 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.08379, allocations: 12.28 kB / 278.8 MB, free: 3.086 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.945e-05/0.08385, allocations: 23.91 kB / 278.8 MB, free: 3.062 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005224/0.08438, allocations: 212.6 kB / 279 MB, free: 2.832 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.065e-05/0.08442, allocations: 3.984 kB / 279.1 MB, free: 2.828 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.444e-05/0.08447, allocations: 8 kB / 279.1 MB, free: 2.82 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.08449, allocations: 8 kB / 279.1 MB, free: 2.812 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004642/0.08497, allocations: 151.8 kB / 279.2 MB, free: 2.664 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001672/0.08666, allocations: 0.9479 MB / 280.2 MB, free: 1.641 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005028/0.08719, allocations: 146.8 kB / 280.3 MB, free: 1.488 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007409/0.08795, allocations: 0.5031 MB / 280.8 MB, free: 0.9219 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.948e-05/0.08801, allocations: 38.52 kB / 280.8 MB, free: 0.875 MB / 234.7 MB Notification: Performance of pre-optimization done (n=14): time 2.836e-06/0.08802, allocations: 0 / 280.8 MB, free: 0.875 MB / 234.7 MB Notification: Performance of matching and sorting (n=20): time 0.003072/0.0911, allocations: 0.7659 MB / 281.6 MB, free: 60 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.1708/0.2619, allocations: 51.41 kB / 281.7 MB, free: 16.3 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002133/0.2622, allocations: 147.2 kB / 281.8 MB, free: 16.2 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.58e-05/0.2623, allocations: 30.42 kB / 281.8 MB, free: 16.16 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.406e-05/0.2624, allocations: 210.8 kB / 282 MB, free: 16 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.613e-05/0.2624, allocations: 71.59 kB / 282.1 MB, free: 15.96 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.288e-05/0.2625, allocations: 6.906 kB / 282.1 MB, free: 15.96 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 6.544e-05/0.2626, allocations: 322.8 kB / 282.4 MB, free: 15.64 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003565/0.2629, allocations: 85.28 kB / 282.5 MB, free: 15.64 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003774/0.2633, allocations: 195.4 kB / 282.7 MB, free: 15.52 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004158/0.2638, allocations: 108.2 kB / 282.8 MB, free: 15.52 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.621e-06/0.2638, allocations: 1.094 kB / 282.8 MB, free: 15.52 MB / 234.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.0009561/0.2647, allocations: 314.8 kB / 283.1 MB, free: 15.46 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.2648, allocations: 6.594 kB / 283.1 MB, free: 15.46 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.465e-05/0.2648, allocations: 6.406 kB / 283.1 MB, free: 15.46 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.47e-05/0.2648, allocations: 9.031 kB / 283.1 MB, free: 15.46 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004902/0.2653, allocations: 89.38 kB / 283.2 MB, free: 15.45 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/0.2654, allocations: 7.172 kB / 283.2 MB, free: 15.45 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003026/0.2657, allocations: 17.44 kB / 283.3 MB, free: 15.45 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.908e-05/0.2658, allocations: 14.84 kB / 283.3 MB, free: 15.45 MB / 234.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.0001475/0.2659, allocations: 139 kB / 283.4 MB, free: 15.33 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.073e-05/0.266, allocations: 17.25 kB / 283.4 MB, free: 15.32 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008666/0.2669, allocations: 238.9 kB / 283.7 MB, free: 15.28 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.695e-06/0.2669, allocations: 3.531 kB / 283.7 MB, free: 15.28 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.441e-06/0.2669, allocations: 2.203 kB / 283.7 MB, free: 15.28 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.281e-06/0.2669, allocations: 0.7969 kB / 283.7 MB, free: 15.28 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00167/0.2686, allocations: 0.5967 MB / 284.3 MB, free: 14.93 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.2687, allocations: 1.406 kB / 284.3 MB, free: 14.93 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004245/0.2691, allocations: 58.31 kB / 284.3 MB, free: 14.93 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.053e-05/0.2691, allocations: 7 kB / 284.3 MB, free: 14.93 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.12e-05/0.2692, allocations: 7.594 kB / 284.3 MB, free: 14.93 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.05e-06/0.2692, allocations: 2.781 kB / 284.3 MB, free: 14.93 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.896e-06/0.2692, allocations: 1.125 kB / 284.3 MB, free: 14.93 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001058/0.2703, allocations: 410.1 kB / 284.7 MB, free: 14.75 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.559e-05/0.2703, allocations: 91.58 kB / 284.8 MB, free: 14.65 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.35e-05/0.2704, allocations: 8.344 kB / 284.8 MB, free: 14.65 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000345/0.2708, allocations: 13.58 kB / 284.8 MB, free: 14.65 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.627e-05/0.2708, allocations: 13.61 kB / 284.9 MB, free: 14.65 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.956e-05/0.2709, allocations: 14.27 kB / 284.9 MB, free: 14.64 MB / 234.7 MB Notification: Performance of sorting global known variables: time 9.848e-05/0.271, allocations: 112.1 kB / 285 MB, free: 14.56 MB / 234.7 MB Notification: Performance of sort global known variables: time 7.4e-07/0.271, allocations: 0 / 285 MB, free: 14.56 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0005762/0.2716, allocations: 59.62 kB / 285 MB, free: 14.55 MB / 234.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.0002241/0.2718, allocations: 133.6 kB / 285.2 MB, free: 14.45 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0007602/0.2726, allocations: 220.2 kB / 285.4 MB, free: 14.39 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.572e-06/0.2726, allocations: 0 / 285.4 MB, free: 14.39 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003085/0.273, allocations: 98.09 kB / 285.5 MB, free: 14.36 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004241/0.2734, allocations: 31.94 kB / 285.5 MB, free: 14.35 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001248/0.2747, allocations: 0.5855 MB / 286.1 MB, free: 13.98 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001893/0.2749, allocations: 0.7216 MB / 286.8 MB, free: 13.28 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000157/0.275, allocations: 31.59 kB / 286.9 MB, free: 13.27 MB / 234.7 MB Notification: Performance of SimCode: time 1.578e-06/0.2751, allocations: 5.125 kB / 286.9 MB, free: 13.27 MB / 234.7 MB Notification: Performance of Templates: time 0.006496/0.2816, allocations: 2.571 MB / 289.4 MB, free: 13.05 MB / 234.7 MB