Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Blocks.Examples.PID_Controller.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.Blocks.Examples.PID_Controller,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PI.I.y|inertia1.phi|inertia1.w|integrator.y|spring.phi_rel|spring.w_rel",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Blocks.Examples.PID_Controller") Notification: Performance of loadModel(Modelica): time 1.808/1.808, allocations: 171.3 MB / 179.2 MB, free: 7.594 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.624e-05/1.64e-05, allocations: 4 kB / 222.5 MB, free: 8.715 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0704/0.07043, allocations: 38.76 MB / 261.3 MB, free: 1.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2865/0.357, allocations: 70.67 MB / 331.9 MB, free: 1.629 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002111/0.3573, allocations: 67.22 kB / 332 MB, free: 1.598 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03453/0.3918, allocations: 8.269 MB / 340.3 MB, free: 10.74 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.029e-06/0.3919, allocations: 0 / 340.3 MB, free: 10.74 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.488e-05/0.3919, allocations: 8 kB / 340.3 MB, free: 10.73 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001389/0.3933, allocations: 0.6581 MB / 340.9 MB, free: 10.06 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.3934, allocations: 12.03 kB / 340.9 MB, free: 10.05 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001566/0.3935, allocations: 47.44 kB / 341 MB, free: 10 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008362/0.3944, allocations: 375 kB / 341.4 MB, free: 9.629 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.014e-05/0.3945, allocations: 38.48 kB / 341.4 MB, free: 9.586 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.141e-05/0.3946, allocations: 27.34 kB / 341.4 MB, free: 9.562 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005956/0.3952, allocations: 225.2 kB / 341.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006786/0.3959, allocations: 305.6 kB / 341.9 MB, free: 9.18 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.479e-05/0.3959, allocations: 4 kB / 341.9 MB, free: 9.176 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.339e-05/0.396, allocations: 3.938 kB / 342 MB, free: 9.172 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.28e-05/0.396, allocations: 8 kB / 342 MB, free: 9.164 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002587/0.3986, allocations: 1.106 MB / 343.1 MB, free: 8.23 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006618/0.3993, allocations: 233.6 kB / 343.3 MB, free: 8.066 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002221/0.3995, allocations: 96.22 kB / 343.4 MB, free: 8.004 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.405e-05/0.3996, allocations: 4 kB / 343.4 MB, free: 8 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.304e-05/0.3996, allocations: 46.81 kB / 343.4 MB, free: 7.949 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 3.79e-06/0.3997, allocations: 0 / 343.4 MB, free: 7.949 MB / 282.7 MB Notification: Performance of matching and sorting (n=31): time 0.001991/0.4017, allocations: 0.9063 MB / 344.3 MB, free: 7.09 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.587e-05/0.4018, allocations: 102.8 kB / 344.4 MB, free: 6.965 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004114/0.4022, allocations: 256.8 kB / 344.7 MB, free: 6.75 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.444e-05/0.4022, allocations: 29.7 kB / 344.7 MB, free: 6.715 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001886/0.4024, allocations: 268.6 kB / 345 MB, free: 6.492 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.4026, allocations: 104 kB / 345.1 MB, free: 6.402 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.034e-05/0.4026, allocations: 0 / 345.1 MB, free: 6.402 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.4028, allocations: 329.1 kB / 345.4 MB, free: 6.078 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002419/0.403, allocations: 102 kB / 345.5 MB, free: 6.016 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000301/0.4034, allocations: 158.3 kB / 345.7 MB, free: 5.887 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002603/0.4036, allocations: 118.1 kB / 345.8 MB, free: 5.809 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.4036, allocations: 0 / 345.8 MB, free: 5.809 MB / 282.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006869/0.4043, allocations: 292.5 kB / 346.1 MB, free: 5.59 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/0.4044, allocations: 4 kB / 346.1 MB, free: 5.586 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.55e-06/0.4044, allocations: 128 / 346.1 MB, free: 5.586 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.4044, allocations: 8 kB / 346.1 MB, free: 5.578 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007727/0.4052, allocations: 151.1 kB / 346.2 MB, free: 5.434 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.4052, allocations: 7.938 kB / 346.2 MB, free: 5.426 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004126/0.4057, allocations: 39.95 kB / 346.3 MB, free: 5.387 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.4057, allocations: 11.06 kB / 346.3 MB, free: 5.379 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 46 * 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.0001557/0.4059, allocations: 124 kB / 346.4 MB, free: 5.254 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001078/0.406, allocations: 31.62 kB / 346.4 MB, free: 5.223 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.4061, allocations: 37.36 kB / 346.5 MB, free: 5.199 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.4062, allocations: 4 kB / 346.5 MB, free: 5.195 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.4062, allocations: 3.938 kB / 346.5 MB, free: 5.191 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.763e-06/0.4062, allocations: 3.984 kB / 346.5 MB, free: 5.188 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001472/0.4077, allocations: 0.7298 MB / 347.2 MB, free: 4.555 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.474e-06/0.4077, allocations: 4 kB / 347.2 MB, free: 4.551 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006139/0.4083, allocations: 104 kB / 347.3 MB, free: 4.449 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.122e-06/0.4084, allocations: 0 / 347.3 MB, free: 4.449 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.356e-05/0.4084, allocations: 7.938 kB / 347.3 MB, free: 4.445 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.249e-06/0.4084, allocations: 4 kB / 347.3 MB, free: 4.441 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.969e-06/0.4084, allocations: 3.953 kB / 347.3 MB, free: 4.438 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009701/0.4094, allocations: 0.5336 MB / 347.9 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002359/0.4097, allocations: 131.1 kB / 348 MB, free: 3.832 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.931e-05/0.4098, allocations: 11.42 kB / 348 MB, free: 3.824 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005264/0.4103, allocations: 51.95 kB / 348.1 MB, free: 3.773 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.68e-05/0.4104, allocations: 19.78 kB / 348.1 MB, free: 3.758 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.613e-05/0.4105, allocations: 11.98 kB / 348.1 MB, free: 3.746 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003184/0.4108, allocations: 203.8 kB / 348.3 MB, free: 3.586 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.74e-07/0.4108, allocations: 0 / 348.3 MB, free: 3.586 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005741/0.4114, allocations: 64 kB / 348.3 MB, free: 3.523 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 31 * 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.0002015/0.4116, allocations: 107.1 kB / 348.5 MB, free: 3.41 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006306/0.4122, allocations: 240.3 kB / 348.7 MB, free: 3.25 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.433e-06/0.4123, allocations: 3.188 kB / 348.7 MB, free: 3.25 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002714/0.4126, allocations: 114.9 kB / 348.8 MB, free: 3.172 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006573/0.4132, allocations: 66.92 kB / 348.9 MB, free: 3.121 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002295/0.4155, allocations: 0.8474 MB / 349.7 MB, free: 2.285 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005691/0.4162, allocations: 0.8105 MB / 350.5 MB, free: 1.449 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001814/0.4163, allocations: 35.42 kB / 350.6 MB, free: 1.414 MB / 282.7 MB Notification: Performance of SimCode: time 1.663e-06/0.4164, allocations: 0 / 350.6 MB, free: 1.414 MB / 282.7 MB Notification: Performance of Templates: time 0.009789/0.4262, allocations: 4.579 MB / 355.1 MB, free: 12.9 MB / 298.7 MB