Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.766/1.766, allocations: 171.1 MB / 187.3 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000353/0.0003531, allocations: 12 kB / 233.8 MB, free: 0.9688 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09004/0.09042, allocations: 38.76 MB / 272.5 MB, free: 10.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3655/0.456, allocations: 71.06 MB / 343.6 MB, free: 12.05 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003045/0.4564, allocations: 75.95 kB / 343.7 MB, free: 11.97 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04996/0.5064, allocations: 9.957 MB / 353.6 MB, free: 2.008 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.5064, allocations: 3.938 kB / 353.6 MB, free: 2.004 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.438e-05/0.5065, allocations: 4 kB / 353.6 MB, free: 2 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.001851/0.5083, allocations: 0.6274 MB / 354.3 MB, free: 1.324 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.5084, allocations: 8.031 kB / 354.3 MB, free: 1.316 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004846/0.5089, allocations: 51.59 kB / 354.3 MB, free: 1.266 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007044/0.5096, allocations: 290.4 kB / 354.6 MB, free: 0.9414 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001785/0.5098, allocations: 88.05 kB / 354.7 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001054/0.5099, allocations: 32 kB / 354.7 MB, free: 0.8125 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.5113, allocations: 416.9 kB / 355.1 MB, free: 404 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.852e-05/0.5114, allocations: 3.906 kB / 355.1 MB, free: 400 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.737e-05/0.5114, allocations: 16 kB / 355.1 MB, free: 384 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.5115, allocations: 11.94 kB / 355.2 MB, free: 372 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001803/0.5133, allocations: 474.2 kB / 355.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002424/0.5157, allocations: 0.9034 MB / 356.5 MB, free: 14.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00142/0.5172, allocations: 384.5 kB / 356.9 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.002e-05/0.5173, allocations: 12.42 kB / 356.9 MB, free: 14.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.149e-05/0.5174, allocations: 35 kB / 356.9 MB, free: 14.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 3.186e-06/0.5174, allocations: 0 / 356.9 MB, free: 14.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.009549/0.527, allocations: 2.152 MB / 359.1 MB, free: 12.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.726e-05/0.5271, allocations: 81.67 kB / 359.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005169/0.5276, allocations: 240.1 kB / 359.4 MB, free: 11.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001109/0.5278, allocations: 37.7 kB / 359.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001372/0.5279, allocations: 191.5 kB / 359.6 MB, free: 11.66 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002409/0.5282, allocations: 185.4 kB / 359.8 MB, free: 11.47 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.834e-05/0.5282, allocations: 11.98 kB / 359.8 MB, free: 11.46 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.5284, allocations: 326.8 kB / 360.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008578/0.5292, allocations: 197 kB / 360.3 MB, free: 10.94 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009193/0.5302, allocations: 244.6 kB / 360.6 MB, free: 10.69 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008114/0.531, allocations: 190.2 kB / 360.8 MB, free: 10.51 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.531, allocations: 0 / 360.8 MB, free: 10.51 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002253/0.5333, allocations: 0.6019 MB / 361.4 MB, free: 9.895 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.468e-05/0.5334, allocations: 8.578 kB / 361.4 MB, free: 9.887 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.241e-05/0.5334, allocations: 7.938 kB / 361.4 MB, free: 9.879 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001265/0.5347, allocations: 238.8 kB / 361.6 MB, free: 9.645 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006407/0.5354, allocations: 71.89 kB / 361.7 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006985/0.5424, allocations: 2.759 MB / 364.4 MB, free: 6.676 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006681/0.5431, allocations: 43.95 kB / 364.5 MB, free: 6.633 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.744e-05/0.5432, allocations: 16 kB / 364.5 MB, free: 6.617 MB / 298.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.0003421/0.5436, allocations: 161.8 kB / 364.7 MB, free: 6.449 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/0.5437, allocations: 31.62 kB / 364.7 MB, free: 6.418 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001559/0.5439, allocations: 51.34 kB / 364.7 MB, free: 6.371 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.441e-05/0.5439, allocations: 15.92 kB / 364.8 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.5439, allocations: 0 / 364.8 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.5439, allocations: 0 / 364.8 MB, free: 6.355 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003789/0.5477, allocations: 1.245 MB / 366 MB, free: 5.051 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.583e-06/0.5478, allocations: 0 / 366 MB, free: 5.051 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006265/0.5484, allocations: 79.83 kB / 366.1 MB, free: 4.973 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001142/0.5496, allocations: 220.8 kB / 366.3 MB, free: 4.754 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.899e-05/0.5497, allocations: 15.98 kB / 366.3 MB, free: 4.738 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006188/0.5559, allocations: 2.67 MB / 369 MB, free: 1.938 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5559, allocations: 4.062 kB / 369 MB, free: 1.934 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003296/0.5593, allocations: 0.9416 MB / 369.9 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003236/0.5596, allocations: 152.7 kB / 370.1 MB, free: 0.8008 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.5598, allocations: 15.94 kB / 370.1 MB, free: 0.7852 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005575/0.5603, allocations: 40.03 kB / 370.1 MB, free: 0.7461 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002771/0.5606, allocations: 72.3 kB / 370.2 MB, free: 0.6758 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.792e-05/0.5607, allocations: 23.98 kB / 370.2 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003579/0.5611, allocations: 177.6 kB / 370.4 MB, free: 492 kB / 298.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.5611, allocations: 0 / 370.4 MB, free: 492 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009574/0.5621, allocations: 167.9 kB / 370.6 MB, free: 324 kB / 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.0003699/0.5625, allocations: 151.1 kB / 370.7 MB, free: 160 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002563/0.565, allocations: 0.6882 MB / 371.4 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.51e-06/0.5651, allocations: 0 / 371.4 MB, free: 15.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001882/0.567, allocations: 479.8 kB / 371.9 MB, free: 14.97 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006778/0.5677, allocations: 28.97 kB / 371.9 MB, free: 14.95 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003285/0.571, allocations: 0.966 MB / 372.9 MB, free: 13.94 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006404/0.5717, allocations: 0.8087 MB / 373.7 MB, free: 13.11 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003885/0.5721, allocations: 43.41 kB / 373.7 MB, free: 13.06 MB / 314.7 MB Notification: Performance of SimCode: time 1.262e-06/0.5721, allocations: 0 / 373.7 MB, free: 13.06 MB / 314.7 MB Notification: Performance of Templates: time 0.01885/0.591, allocations: 5.742 MB / 379.5 MB, free: 7.316 MB / 314.7 MB