Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Utilities.Examples.readRealParameterModel.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Utilities.Examples.readRealParameterModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|J|phi_rel0|w_rel0",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Utilities.Examples.readRealParameterModel") Notification: Performance of loadModel(Modelica): time 1.584/1.584, allocations: 171.3 MB / 179.2 MB, free: 7.477 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.24e-05/1.256e-05, allocations: 0 / 222.5 MB, free: 8.703 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06872/0.06876, allocations: 38.77 MB / 261.3 MB, free: 1.848 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2727/0.3415, allocations: 66.83 MB / 328.1 MB, free: 5.426 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000195/0.3418, allocations: 67.22 kB / 328.2 MB, free: 5.395 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02726/0.369, allocations: 6.865 MB / 335 MB, free: 12 kB / 266.7 MB Notification: Performance of FrontEnd: time 2.396e-06/0.3691, allocations: 0 / 335 MB, free: 12 kB / 266.7 MB Notification: Performance of Transformations before backend: time 1.084e-05/0.3691, allocations: 0 / 335 MB, free: 12 kB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005544/0.3697, allocations: 409.7 kB / 335.4 MB, free: 15.57 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.56e-05/0.3697, allocations: 12.03 kB / 335.4 MB, free: 15.56 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.444e-05/0.3698, allocations: 79.09 kB / 335.5 MB, free: 15.48 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001989/0.37, allocations: 242.4 kB / 335.8 MB, free: 15.21 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.399e-05/0.3701, allocations: 150.6 kB / 335.9 MB, free: 15.06 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.206e-05/0.3702, allocations: 150.6 kB / 336.1 MB, free: 14.91 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.684e-05/0.3703, allocations: 154.5 kB / 336.2 MB, free: 14.76 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.929e-05/0.3703, allocations: 106.4 kB / 336.3 MB, free: 14.65 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.079e-05/0.3704, allocations: 75.28 kB / 336.4 MB, free: 14.57 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.426e-05/0.3705, allocations: 158.5 kB / 336.5 MB, free: 14.42 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.223e-05/0.3706, allocations: 153.6 kB / 336.7 MB, free: 14.27 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003287/0.3709, allocations: 426.5 kB / 337.1 MB, free: 13.82 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.857e-05/0.371, allocations: 168.6 kB / 337.3 MB, free: 13.64 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.644e-05/0.3711, allocations: 84.14 kB / 337.3 MB, free: 13.56 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.451e-05/0.3711, allocations: 75.28 kB / 337.4 MB, free: 13.48 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.436e-05/0.3712, allocations: 113.8 kB / 337.5 MB, free: 13.36 MB / 282.7 MB Notification: Performance of pre-optimization done (n=0): time 1.773e-06/0.3712, allocations: 0 / 337.5 MB, free: 13.36 MB / 282.7 MB Notification: Performance of matching and sorting (n=0): time 8.213e-05/0.3713, allocations: 33.59 kB / 337.6 MB, free: 13.32 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/0.3713, allocations: 55.34 kB / 337.6 MB, free: 13.26 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001023/0.3715, allocations: 92.56 kB / 337.7 MB, free: 13.16 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.3715, allocations: 33.7 kB / 337.7 MB, free: 13.12 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.452e-05/0.3716, allocations: 150.6 kB / 337.9 MB, free: 12.98 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.531e-06/0.3716, allocations: 0 / 337.9 MB, free: 12.98 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.24e-07/0.3716, allocations: 0 / 337.9 MB, free: 12.98 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.3718, allocations: 310.8 kB / 338.2 MB, free: 12.66 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.278e-06/0.3718, allocations: 0 / 338.2 MB, free: 12.66 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.735e-06/0.3718, allocations: 0 / 338.2 MB, free: 12.66 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.669e-05/0.3718, allocations: 78.28 kB / 338.3 MB, free: 12.59 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.758e-05/0.3719, allocations: 83.27 kB / 338.4 MB, free: 12.51 MB / 282.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 7.579e-05/0.372, allocations: 33.75 kB / 338.4 MB, free: 12.47 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.99e-05/0.372, allocations: 83.22 kB / 338.5 MB, free: 12.39 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.992e-05/0.3721, allocations: 75.28 kB / 338.5 MB, free: 12.31 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.088e-05/0.3722, allocations: 154.6 kB / 338.7 MB, free: 12.16 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.876e-05/0.3722, allocations: 75.28 kB / 338.8 MB, free: 12.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.292e-05/0.3723, allocations: 154.5 kB / 338.9 MB, free: 11.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.943e-05/0.3724, allocations: 83.23 kB / 339 MB, free: 11.85 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.768e-05/0.3725, allocations: 79.27 kB / 339.1 MB, free: 11.77 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * 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.0001428/0.3726, allocations: 263.2 kB / 339.3 MB, free: 11.51 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.963e-05/0.3727, allocations: 101 kB / 339.4 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.555e-05/0.3728, allocations: 104.7 kB / 339.5 MB, free: 11.3 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.111e-05/0.3729, allocations: 188.2 kB / 339.7 MB, free: 11.11 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.598e-05/0.373, allocations: 184.2 kB / 339.9 MB, free: 10.92 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.501e-05/0.3731, allocations: 176.3 kB / 340.1 MB, free: 10.74 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002772/0.3734, allocations: 390.8 kB / 340.4 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.034e-05/0.3734, allocations: 105 kB / 340.6 MB, free: 10.21 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.147e-05/0.3735, allocations: 101 kB / 340.6 MB, free: 10.1 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.933e-05/0.3736, allocations: 184.2 kB / 340.8 MB, free: 9.914 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.136e-05/0.3737, allocations: 188.2 kB / 341 MB, free: 9.723 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.712e-05/0.3738, allocations: 176.3 kB / 341.2 MB, free: 9.543 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.741e-05/0.3739, allocations: 180.4 kB / 341.4 MB, free: 9.359 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001771/0.3741, allocations: 311 kB / 341.7 MB, free: 9.035 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.3742, allocations: 189.9 kB / 341.9 MB, free: 8.824 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.975e-05/0.3743, allocations: 188.2 kB / 342 MB, free: 8.637 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001072/0.3744, allocations: 101 kB / 342.1 MB, free: 8.531 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.801e-05/0.3745, allocations: 180.2 kB / 342.3 MB, free: 8.348 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.244e-05/0.3746, allocations: 101 kB / 342.4 MB, free: 8.242 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.792e-05/0.3747, allocations: 83.28 kB / 342.5 MB, free: 8.16 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.78e-07/0.3747, allocations: 0 / 342.5 MB, free: 8.16 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007484/0.3755, allocations: 147.4 kB / 342.6 MB, free: 8.027 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.001241/0.3767, allocations: 0.5409 MB / 343.2 MB, free: 7.508 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 3.304e-05/0.3768, allocations: 4 kB / 343.2 MB, free: 7.504 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3768, allocations: 0 / 343.2 MB, free: 7.504 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.607e-06/0.3768, allocations: 0 / 343.2 MB, free: 7.504 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004002/0.3772, allocations: 0.526 MB / 343.7 MB, free: 6.977 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002069/0.3774, allocations: 160.9 kB / 343.9 MB, free: 6.789 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003285/0.3778, allocations: 0.6729 MB / 344.5 MB, free: 6.09 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.563e-05/0.3778, allocations: 15.42 kB / 344.5 MB, free: 6.074 MB / 282.7 MB Notification: Performance of SimCode: time 1.365e-06/0.3778, allocations: 0 / 344.5 MB, free: 6.074 MB / 282.7 MB Notification: Performance of Templates: time 0.006576/0.3844, allocations: 3.145 MB / 347.7 MB, free: 2.934 MB / 282.7 MB