Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.631/1.631, allocations: 171.2 MB / 186.8 MB, free: 1.117 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005691/0.0005695, allocations: 8 kB / 233.2 MB, free: 3.023 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07431/0.07492, allocations: 38.77 MB / 272 MB, free: 12.18 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.338/0.413, allocations: 71.06 MB / 343.1 MB, free: 2.84 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002354/0.4133, allocations: 74.45 kB / 343.1 MB, free: 2.801 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04268/0.4559, allocations: 9.955 MB / 353.1 MB, free: 10.38 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.461e-06/0.456, allocations: 0 / 353.1 MB, free: 10.38 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.086e-05/0.456, allocations: 4 kB / 353.1 MB, free: 10.38 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001373/0.4574, allocations: 0.6239 MB / 353.7 MB, free: 9.73 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.4575, allocations: 11.97 kB / 353.7 MB, free: 9.719 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004012/0.4579, allocations: 51.59 kB / 353.8 MB, free: 9.668 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005343/0.4584, allocations: 291.9 kB / 354.1 MB, free: 9.371 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001647/0.4586, allocations: 93.67 kB / 354.2 MB, free: 9.277 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.5e-05/0.4587, allocations: 34.05 kB / 354.2 MB, free: 9.254 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.4598, allocations: 407.3 kB / 354.6 MB, free: 8.957 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.566e-05/0.4598, allocations: 11.84 kB / 354.6 MB, free: 8.945 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.367e-05/0.4599, allocations: 14.06 kB / 354.6 MB, free: 8.941 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.4599, allocations: 8 kB / 354.6 MB, free: 8.934 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001376/0.4613, allocations: 471.4 kB / 355.1 MB, free: 8.578 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001903/0.4633, allocations: 0.9001 MB / 356 MB, free: 7.812 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0011/0.4644, allocations: 386.5 kB / 356.4 MB, free: 7.539 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.305e-05/0.4644, allocations: 5.062 kB / 356.4 MB, free: 7.535 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.4645, allocations: 42.88 kB / 356.4 MB, free: 7.488 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 3.979e-06/0.4645, allocations: 4 kB / 356.4 MB, free: 7.484 MB / 282.7 MB Notification: Performance of matching and sorting (n=55): time 0.00709/0.4716, allocations: 2.155 MB / 358.6 MB, free: 5.668 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.469e-05/0.4717, allocations: 82.23 kB / 358.7 MB, free: 5.57 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000401/0.4721, allocations: 212.9 kB / 358.9 MB, free: 5.383 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.02e-05/0.4722, allocations: 40.64 kB / 358.9 MB, free: 5.344 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000138/0.4724, allocations: 198 kB / 359.1 MB, free: 5.164 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002148/0.4726, allocations: 179.2 kB / 359.3 MB, free: 5.012 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.962e-05/0.4727, allocations: 10.3 kB / 359.3 MB, free: 5.008 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.4728, allocations: 332.6 kB / 359.6 MB, free: 4.684 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006225/0.4735, allocations: 201.9 kB / 359.8 MB, free: 4.543 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006767/0.4742, allocations: 241.6 kB / 360 MB, free: 4.367 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006025/0.4748, allocations: 186.6 kB / 360.2 MB, free: 4.254 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.466e-06/0.4748, allocations: 0 / 360.2 MB, free: 4.254 MB / 282.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001758/0.4766, allocations: 0.6013 MB / 360.8 MB, free: 3.816 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.485e-05/0.4766, allocations: 4 kB / 360.8 MB, free: 3.812 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.4767, allocations: 7.891 kB / 360.8 MB, free: 3.805 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009906/0.4777, allocations: 246 kB / 361.1 MB, free: 3.617 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004642/0.4781, allocations: 74.89 kB / 361.1 MB, free: 3.547 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005381/0.4835, allocations: 2.749 MB / 363.9 MB, free: 1.273 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004514/0.484, allocations: 35.19 kB / 363.9 MB, free: 1.246 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-05/0.4841, allocations: 23.52 kB / 364 MB, free: 1.227 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0002962/0.4844, allocations: 163.5 kB / 364.1 MB, free: 1.082 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.4846, allocations: 31.62 kB / 364.1 MB, free: 1.051 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001107/0.4847, allocations: 50.48 kB / 364.2 MB, free: 1.039 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.951e-06/0.4847, allocations: 4 kB / 364.2 MB, free: 1.035 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.058e-06/0.4847, allocations: 4 kB / 364.2 MB, free: 1.031 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.943e-06/0.4847, allocations: 0 / 364.2 MB, free: 1.031 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003071/0.4878, allocations: 1.252 MB / 365.5 MB, free: 48 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.076e-06/0.4879, allocations: 0 / 365.5 MB, free: 48 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004857/0.4884, allocations: 75.62 kB / 365.5 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009087/0.4893, allocations: 221.8 kB / 365.7 MB, free: 15.8 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.798e-05/0.4894, allocations: 19.8 kB / 365.8 MB, free: 15.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005201/0.4946, allocations: 2.667 MB / 368.4 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.4946, allocations: 0 / 368.4 MB, free: 13.55 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002537/0.4972, allocations: 0.9545 MB / 369.4 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002935/0.4975, allocations: 152.9 kB / 369.5 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.69e-05/0.4976, allocations: 18.81 kB / 369.6 MB, free: 12.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004209/0.498, allocations: 35.03 kB / 369.6 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000232/0.4983, allocations: 82.28 kB / 369.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.587e-05/0.4984, allocations: 23.31 kB / 369.7 MB, free: 12.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003048/0.4987, allocations: 174.5 kB / 369.9 MB, free: 12.42 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.81e-07/0.4987, allocations: 0 / 369.9 MB, free: 12.42 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000864/0.4996, allocations: 169.6 kB / 370 MB, free: 12.28 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (31): * Single equations (assignments): 30 * 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.0003084/0.4999, allocations: 146.5 kB / 370.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001897/0.5018, allocations: 0.6828 MB / 370.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.652e-06/0.5019, allocations: 0 / 370.9 MB, free: 11.6 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001136/0.503, allocations: 481.9 kB / 371.3 MB, free: 11.22 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000435/0.5035, allocations: 37.61 kB / 371.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.5056, allocations: 0.9628 MB / 372.3 MB, free: 10.29 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005763/0.5062, allocations: 0.8048 MB / 373.1 MB, free: 9.465 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.5065, allocations: 38.66 kB / 373.2 MB, free: 9.43 MB / 298.7 MB Notification: Performance of SimCode: time 1.863e-06/0.5065, allocations: 4 kB / 373.2 MB, free: 9.426 MB / 298.7 MB Notification: Performance of Templates: time 0.01219/0.5187, allocations: 5.744 MB / 378.9 MB, free: 3.715 MB / 298.7 MB