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.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.1_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.804/1.804, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004756/0.0004758, allocations: 8 kB / 233.9 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08799/0.08851, allocations: 38.76 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3557/0.4443, allocations: 71.07 MB / 343.7 MB, free: 2.371 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002851/0.4446, allocations: 74.38 kB / 343.8 MB, free: 2.336 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04798/0.4926, allocations: 9.952 MB / 353.7 MB, free: 9.926 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4927, allocations: 0 / 353.7 MB, free: 9.926 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.176e-05/0.4927, allocations: 4 kB / 353.7 MB, free: 9.922 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.001725/0.4944, allocations: 0.6319 MB / 354.3 MB, free: 9.266 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.4945, allocations: 12.03 kB / 354.4 MB, free: 9.254 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004895/0.495, allocations: 47.61 kB / 354.4 MB, free: 9.207 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007014/0.4957, allocations: 294.2 kB / 354.7 MB, free: 8.906 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001695/0.4959, allocations: 90.8 kB / 354.8 MB, free: 8.816 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.496, allocations: 31.25 kB / 354.8 MB, free: 8.797 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001267/0.4973, allocations: 408.1 kB / 355.2 MB, free: 8.496 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.597e-05/0.4974, allocations: 7.891 kB / 355.2 MB, free: 8.488 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.354e-05/0.4974, allocations: 12.5 kB / 355.2 MB, free: 8.484 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.4975, allocations: 11.94 kB / 355.2 MB, free: 8.473 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001696/0.4992, allocations: 476.1 kB / 355.7 MB, free: 8.117 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002065/0.5013, allocations: 0.8968 MB / 356.6 MB, free: 7.352 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001318/0.5026, allocations: 391.7 kB / 357 MB, free: 7.078 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.922e-05/0.5027, allocations: 12.17 kB / 357 MB, free: 7.07 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.718e-05/0.5027, allocations: 42.62 kB / 357 MB, free: 7.023 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 3.367e-06/0.5027, allocations: 0 / 357 MB, free: 7.023 MB / 282.7 MB Notification: Performance of matching and sorting (n=55): time 0.008765/0.5115, allocations: 2.146 MB / 359.2 MB, free: 5.223 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.059e-05/0.5116, allocations: 81.67 kB / 359.3 MB, free: 5.125 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004645/0.5121, allocations: 246.1 kB / 359.5 MB, free: 4.906 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.695e-05/0.5122, allocations: 36.64 kB / 359.5 MB, free: 4.871 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.5123, allocations: 141.3 kB / 359.7 MB, free: 4.754 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002134/0.5125, allocations: 179.1 kB / 359.9 MB, free: 4.602 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.234e-05/0.5126, allocations: 7.188 kB / 359.9 MB, free: 4.602 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.5128, allocations: 340.9 kB / 360.2 MB, free: 4.27 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00079/0.5136, allocations: 196.3 kB / 360.4 MB, free: 4.137 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008064/0.5144, allocations: 244.8 kB / 360.6 MB, free: 3.957 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000735/0.5151, allocations: 192.2 kB / 360.8 MB, free: 3.84 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.5152, allocations: 3.984 kB / 360.8 MB, free: 3.836 MB / 282.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002122/0.5173, allocations: 0.6138 MB / 361.4 MB, free: 3.391 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.171e-05/0.5173, allocations: 8.578 kB / 361.4 MB, free: 3.383 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.5174, allocations: 0 / 361.4 MB, free: 3.383 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001194/0.5186, allocations: 243.5 kB / 361.7 MB, free: 3.195 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005828/0.5192, allocations: 79.12 kB / 361.8 MB, free: 3.121 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006009/0.5252, allocations: 2.744 MB / 364.5 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006416/0.5259, allocations: 43.08 kB / 364.5 MB, free: 0.8086 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.718e-05/0.526, allocations: 23.88 kB / 364.6 MB, free: 0.7891 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.0003013/0.5263, allocations: 164.7 kB / 364.7 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000117/0.5264, allocations: 31.62 kB / 364.8 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000135/0.5266, allocations: 48.55 kB / 364.8 MB, free: 0.6016 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.766e-06/0.5266, allocations: 4 kB / 364.8 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.5266, allocations: 0 / 364.8 MB, free: 0.5977 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.374e-05/0.5266, allocations: 3.984 kB / 364.8 MB, free: 0.5938 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003519/0.5302, allocations: 1.257 MB / 366.1 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.5302, allocations: 0 / 366.1 MB, free: 15.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006227/0.5308, allocations: 71.84 kB / 366.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001084/0.5319, allocations: 226.7 kB / 366.4 MB, free: 15.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-05/0.532, allocations: 19.3 kB / 366.4 MB, free: 15.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00567/0.5377, allocations: 2.654 MB / 369 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/0.5378, allocations: 0 / 369 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003026/0.5408, allocations: 0.9364 MB / 370 MB, free: 12.44 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003187/0.5412, allocations: 158.8 kB / 370.1 MB, free: 12.29 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001092/0.5413, allocations: 18.62 kB / 370.1 MB, free: 12.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005409/0.5418, allocations: 34.47 kB / 370.2 MB, free: 12.25 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002773/0.5421, allocations: 75.3 kB / 370.2 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.399e-05/0.5422, allocations: 23.55 kB / 370.3 MB, free: 12.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003434/0.5426, allocations: 181.4 kB / 370.4 MB, free: 12.02 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.5426, allocations: 4 kB / 370.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009326/0.5435, allocations: 159.4 kB / 370.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) * 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.0003442/0.5439, allocations: 149.2 kB / 370.8 MB, free: 11.73 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00235/0.5462, allocations: 0.6918 MB / 371.4 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.947e-06/0.5463, allocations: 0 / 371.4 MB, free: 11.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001335/0.5476, allocations: 479 kB / 371.9 MB, free: 10.8 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004833/0.5481, allocations: 30.47 kB / 371.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002565/0.5507, allocations: 0.941 MB / 372.9 MB, free: 9.91 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005216/0.5513, allocations: 0.8087 MB / 373.7 MB, free: 9.074 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004596/0.5517, allocations: 66.92 kB / 373.8 MB, free: 9.012 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002015/0.552, allocations: 27.42 kB / 373.8 MB, free: 8.984 MB / 298.7 MB Notification: Performance of SimCode: time 1.372e-06/0.552, allocations: 0 / 373.8 MB, free: 8.984 MB / 298.7 MB Notification: Performance of Templates: time 0.02067/0.5727, allocations: 6.823 MB / 380.6 MB, free: 2.18 MB / 298.7 MB