Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadModel(Modelica): time 1.911/1.911, allocations: 171.2 MB / 186.7 MB, free: 1.027 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003726/0.0003727, allocations: 11.98 kB / 233.9 MB, free: 2.383 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08723/0.08763, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3553/0.443, allocations: 70.47 MB / 343.1 MB, free: 2.898 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002981/0.4433, allocations: 70.47 kB / 343.2 MB, free: 2.863 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04422/0.4876, allocations: 9.352 MB / 352.5 MB, free: 10.95 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4876, allocations: 0 / 352.5 MB, free: 10.95 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.521e-05/0.4877, allocations: 8 kB / 352.5 MB, free: 10.94 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001524/0.4892, allocations: 0.5743 MB / 353.1 MB, free: 10.34 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.53e-05/0.4893, allocations: 12.02 kB / 353.1 MB, free: 10.33 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004494/0.4897, allocations: 47.61 kB / 353.1 MB, free: 10.28 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006007/0.4904, allocations: 284.2 kB / 353.4 MB, free: 9.988 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001725/0.4905, allocations: 94.53 kB / 353.5 MB, free: 9.895 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.338e-05/0.4907, allocations: 30.66 kB / 353.5 MB, free: 9.875 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001159/0.4918, allocations: 371 kB / 353.9 MB, free: 9.59 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.288e-05/0.4919, allocations: 7.875 kB / 353.9 MB, free: 9.582 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.593e-05/0.4919, allocations: 10.94 kB / 353.9 MB, free: 9.578 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.492, allocations: 4 kB / 353.9 MB, free: 9.574 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001426/0.4934, allocations: 413.6 kB / 354.3 MB, free: 9.266 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002802/0.4962, allocations: 1.176 MB / 355.5 MB, free: 8.25 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.4973, allocations: 337.5 kB / 355.8 MB, free: 8.004 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.376e-05/0.4974, allocations: 4 kB / 355.8 MB, free: 8 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.4975, allocations: 33.88 kB / 355.9 MB, free: 7.961 MB / 282.7 MB Notification: Performance of pre-optimization done (n=43): time 3.006e-06/0.4975, allocations: 0 / 355.9 MB, free: 7.961 MB / 282.7 MB Notification: Performance of matching and sorting (n=45): time 0.008161/0.5056, allocations: 1.882 MB / 357.8 MB, free: 6.336 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.128e-05/0.5058, allocations: 84.86 kB / 357.8 MB, free: 6.234 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004307/0.5062, allocations: 210.5 kB / 358 MB, free: 6.051 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.632e-05/0.5063, allocations: 36.83 kB / 358.1 MB, free: 6.016 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/0.5064, allocations: 145 kB / 358.2 MB, free: 5.891 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001801/0.5066, allocations: 145.8 kB / 358.4 MB, free: 5.766 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.174e-05/0.5067, allocations: 10.62 kB / 358.4 MB, free: 5.762 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.5068, allocations: 339.4 kB / 358.7 MB, free: 5.434 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006516/0.5075, allocations: 163 kB / 358.9 MB, free: 5.324 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007254/0.5082, allocations: 229.9 kB / 359.1 MB, free: 5.141 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006141/0.5089, allocations: 158.6 kB / 359.2 MB, free: 5.043 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.5089, allocations: 0 / 359.2 MB, free: 5.043 MB / 282.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001891/0.5108, allocations: 0.5443 MB / 359.8 MB, free: 4.645 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.5108, allocations: 11.95 kB / 359.8 MB, free: 4.633 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.759e-06/0.5109, allocations: 4.125 kB / 359.8 MB, free: 4.629 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001215/0.5121, allocations: 234.5 kB / 360 MB, free: 4.449 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004655/0.5126, allocations: 55.72 kB / 360.1 MB, free: 4.398 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006177/0.5188, allocations: 2.695 MB / 362.8 MB, free: 2.148 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005246/0.5193, allocations: 45.52 kB / 362.8 MB, free: 2.109 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.487e-05/0.5194, allocations: 14.88 kB / 362.8 MB, free: 2.098 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: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 24} Notification: Performance of prepare postOptimizeDAE: time 0.000309/0.5198, allocations: 155.7 kB / 363 MB, free: 1.957 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000107/0.5199, allocations: 23.72 kB / 363 MB, free: 1.934 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001267/0.52, allocations: 46.73 kB / 363.1 MB, free: 1.918 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.045e-06/0.52, allocations: 4 kB / 363.1 MB, free: 1.914 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.5201, allocations: 4 kB / 363.1 MB, free: 1.91 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.5201, allocations: 0 / 363.1 MB, free: 1.91 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002947/0.523, allocations: 1.071 MB / 364.1 MB, free: 1.059 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.5231, allocations: 4 kB / 364.1 MB, free: 1.055 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004399/0.5235, allocations: 47.89 kB / 364.2 MB, free: 1.008 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001124/0.5247, allocations: 223.2 kB / 364.4 MB, free: 0.8359 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.491e-05/0.5248, allocations: 16.42 kB / 364.4 MB, free: 0.8281 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006167/0.5309, allocations: 2.654 MB / 367.1 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.969e-06/0.531, allocations: 0 / 367.1 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002826/0.5339, allocations: 0.7973 MB / 367.9 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002877/0.5342, allocations: 143.5 kB / 368 MB, free: 13.88 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.5343, allocations: 11.5 kB / 368 MB, free: 13.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004635/0.5348, allocations: 34.53 kB / 368.1 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002694/0.5351, allocations: 65.81 kB / 368.1 MB, free: 13.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.666e-05/0.5351, allocations: 15.3 kB / 368.1 MB, free: 13.78 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003061/0.5355, allocations: 160.2 kB / 368.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.4e-07/0.5355, allocations: 0 / 368.3 MB, free: 13.64 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009422/0.5364, allocations: 143.1 kB / 368.4 MB, free: 13.52 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003439/0.5368, allocations: 149.3 kB / 368.6 MB, free: 13.37 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001988/0.5388, allocations: 0.6128 MB / 369.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.5388, allocations: 0 / 369.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001199/0.54, allocations: 427.4 kB / 369.6 MB, free: 12.54 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004452/0.5405, allocations: 32.38 kB / 369.6 MB, free: 12.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002175/0.5427, allocations: 0.8215 MB / 370.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005129/0.5433, allocations: 0.7874 MB / 371.3 MB, free: 10.93 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004612/0.5437, allocations: 66.88 kB / 371.3 MB, free: 10.87 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001808/0.5439, allocations: 27.41 kB / 371.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of SimCode: time 3.547e-06/0.5439, allocations: 0 / 371.3 MB, free: 10.84 MB / 298.7 MB Notification: Performance of Templates: time 0.01946/0.5634, allocations: 6.254 MB / 377.6 MB, free: 4.605 MB / 298.7 MB