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/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.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.658/1.658, allocations: 171.3 MB / 179.2 MB, free: 7.5 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.529e-05/1.543e-05, allocations: 4 kB / 222.5 MB, free: 8.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07003/0.07007, allocations: 38.77 MB / 261.3 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2804/0.3505, allocations: 70.31 MB / 331.6 MB, free: 2.016 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.3508, allocations: 66.53 kB / 331.7 MB, free: 1.984 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04253/0.3933, allocations: 9.878 MB / 341.5 MB, free: 9.797 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.137e-06/0.3934, allocations: 0 / 341.5 MB, free: 9.797 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.471e-05/0.3934, allocations: 4 kB / 341.5 MB, free: 9.793 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.001261/0.3947, allocations: 0.5932 MB / 342.1 MB, free: 9.176 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.017e-05/0.3947, allocations: 12.03 kB / 342.1 MB, free: 9.164 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004048/0.3952, allocations: 51.52 kB / 342.2 MB, free: 9.113 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005138/0.3957, allocations: 282.3 kB / 342.5 MB, free: 8.824 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001584/0.3959, allocations: 83.88 kB / 342.5 MB, free: 8.734 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.52e-05/0.396, allocations: 16 kB / 342.6 MB, free: 8.719 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009312/0.3969, allocations: 405.9 kB / 343 MB, free: 8.43 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007648/0.3977, allocations: 333.6 kB / 343.3 MB, free: 8.172 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.649e-05/0.3977, allocations: 3.906 kB / 343.3 MB, free: 8.168 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.713e-05/0.3978, allocations: 0 / 343.3 MB, free: 8.168 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.249e-05/0.3978, allocations: 12 kB / 343.3 MB, free: 8.156 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00187/0.3997, allocations: 0.8466 MB / 344.1 MB, free: 7.438 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007592/0.4005, allocations: 330.8 kB / 344.5 MB, free: 7.215 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003963/0.4009, allocations: 187.7 kB / 344.7 MB, free: 7.102 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.332e-05/0.401, allocations: 12.41 kB / 344.7 MB, free: 7.09 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.365e-05/0.401, allocations: 38.12 kB / 344.7 MB, free: 7.047 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 3.561e-06/0.401, allocations: 0 / 344.7 MB, free: 7.047 MB / 282.7 MB Notification: Performance of matching and sorting (n=55): time 0.003942/0.405, allocations: 1.433 MB / 346.1 MB, free: 5.805 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.762e-05/0.4051, allocations: 81.67 kB / 346.2 MB, free: 5.707 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002839/0.4054, allocations: 185.4 kB / 346.4 MB, free: 5.543 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.066e-05/0.4055, allocations: 29.7 kB / 346.4 MB, free: 5.508 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001469/0.4056, allocations: 205.3 kB / 346.6 MB, free: 5.32 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002044/0.4059, allocations: 170.4 kB / 346.8 MB, free: 5.172 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-05/0.4059, allocations: 4 kB / 346.8 MB, free: 5.168 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001795/0.4061, allocations: 329.9 kB / 347.1 MB, free: 4.848 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003703/0.4065, allocations: 156.2 kB / 347.3 MB, free: 4.75 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004042/0.4069, allocations: 193.5 kB / 347.5 MB, free: 4.625 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000501/0.4074, allocations: 163.7 kB / 347.6 MB, free: 4.512 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.32e-06/0.4074, allocations: 0 / 347.6 MB, free: 4.512 MB / 282.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001311/0.4088, allocations: 0.5034 MB / 348.1 MB, free: 4.141 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.4088, allocations: 4 kB / 348.1 MB, free: 4.137 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.483e-05/0.4088, allocations: 4 kB / 348.1 MB, free: 4.133 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009571/0.4098, allocations: 232.2 kB / 348.4 MB, free: 3.957 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004444/0.4103, allocations: 78.62 kB / 348.4 MB, free: 3.883 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004875/0.4151, allocations: 2.594 MB / 351 MB, free: 1.641 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004391/0.4156, allocations: 31.94 kB / 351.1 MB, free: 1.609 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.209e-05/0.4157, allocations: 19.98 kB / 351.1 MB, free: 1.59 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real 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 () * 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.0002433/0.416, allocations: 120.4 kB / 351.2 MB, free: 1.469 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001139/0.4161, allocations: 35.58 kB / 351.2 MB, free: 1.434 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001165/0.4162, allocations: 43.39 kB / 351.3 MB, free: 1.391 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.454e-06/0.4163, allocations: 8 kB / 351.3 MB, free: 1.383 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.78e-06/0.4163, allocations: 0 / 351.3 MB, free: 1.383 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.4163, allocations: 7.969 kB / 351.3 MB, free: 1.375 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002709/0.419, allocations: 1.097 MB / 352.4 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.737e-06/0.4191, allocations: 0 / 352.4 MB, free: 236 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004655/0.4195, allocations: 75.88 kB / 352.5 MB, free: 160 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009031/0.4205, allocations: 220.7 kB / 352.7 MB, free: 15.94 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-05/0.4205, allocations: 11.98 kB / 352.7 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004729/0.4253, allocations: 2.5 MB / 355.2 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.996e-06/0.4253, allocations: 0 / 355.2 MB, free: 13.31 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001953/0.4273, allocations: 0.8223 MB / 356 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002885/0.4276, allocations: 156.7 kB / 356.2 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.192e-05/0.4277, allocations: 7.953 kB / 356.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004234/0.4282, allocations: 31.91 kB / 356.2 MB, free: 12.26 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002307/0.4284, allocations: 76.48 kB / 356.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.263e-05/0.4285, allocations: 23.98 kB / 356.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002079/0.4287, allocations: 152.2 kB / 356.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.64e-07/0.4287, allocations: 0 / 356.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009023/0.4296, allocations: 132 kB / 356.6 MB, free: 11.88 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) * 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.0003045/0.43, allocations: 135.1 kB / 356.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00141/0.4314, allocations: 0.5918 MB / 357.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.974e-06/0.4314, allocations: 0 / 357.3 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008797/0.4323, allocations: 417.6 kB / 357.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004153/0.4327, allocations: 20.05 kB / 357.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001637/0.4344, allocations: 0.6089 MB / 358.3 MB, free: 10.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005631/0.435, allocations: 0.8046 MB / 359.1 MB, free: 9.219 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002338/0.4352, allocations: 43.41 kB / 359.2 MB, free: 9.176 MB / 298.7 MB Notification: Performance of SimCode: time 1.607e-06/0.4352, allocations: 3.938 kB / 359.2 MB, free: 9.172 MB / 298.7 MB Notification: Performance of Templates: time 0.01205/0.4473, allocations: 5.667 MB / 364.9 MB, free: 3.496 MB / 298.7 MB