Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 2.097/2.097, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003456/0.0003456, allocations: 8 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09677/0.09714, allocations: 44.52 MB / 309.1 MB, free: 360 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4229/0.5201, allocations: 76.38 MB / 385.4 MB, free: 15.34 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003494/0.5206, allocations: 72.47 kB / 385.5 MB, free: 15.34 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05381/0.5744, allocations: 9.963 MB / 395.5 MB, free: 14.43 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.5744, allocations: 0 / 395.5 MB, free: 14.43 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.637e-05/0.5745, allocations: 11.78 kB / 395.5 MB, free: 14.43 MB / 314.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.001685/0.5762, allocations: 0.6198 MB / 396.1 MB, free: 13.96 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.5762, allocations: 10.94 kB / 396.1 MB, free: 13.96 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004899/0.5767, allocations: 53.91 kB / 396.2 MB, free: 13.94 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005987/0.5774, allocations: 282.6 kB / 396.4 MB, free: 13.72 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001459/0.5775, allocations: 92.86 kB / 396.5 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.288e-05/0.5776, allocations: 33.91 kB / 396.6 MB, free: 13.65 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001253/0.5789, allocations: 415 kB / 397 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/0.579, allocations: 3.75 kB / 397 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.977e-05/0.579, allocations: 10 kB / 397 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.06e-05/0.5791, allocations: 11.48 kB / 397 MB, free: 13.59 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001617/0.5807, allocations: 477.8 kB / 397.5 MB, free: 13.57 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002115/0.5829, allocations: 0.9078 MB / 398.4 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001222/0.5841, allocations: 386.1 kB / 398.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.687e-05/0.5842, allocations: 8.016 kB / 398.7 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.5843, allocations: 46.36 kB / 398.8 MB, free: 13.14 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.486e-06/0.5843, allocations: 0 / 398.8 MB, free: 13.14 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.008584/0.5929, allocations: 2.142 MB / 400.9 MB, free: 12.46 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.381e-05/0.593, allocations: 84.48 kB / 401 MB, free: 12.36 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004279/0.5934, allocations: 240.2 kB / 401.2 MB, free: 12.26 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.97e-05/0.5935, allocations: 32.39 kB / 401.3 MB, free: 12.23 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9e-05/0.5936, allocations: 138.2 kB / 401.4 MB, free: 12.13 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001739/0.5938, allocations: 180.9 kB / 401.6 MB, free: 12.01 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.337e-05/0.5939, allocations: 11.5 kB / 401.6 MB, free: 12.01 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.36e-05/0.594, allocations: 339.7 kB / 401.9 MB, free: 11.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007656/0.5947, allocations: 191.4 kB / 402.1 MB, free: 11.7 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007573/0.5955, allocations: 249.4 kB / 402.4 MB, free: 11.66 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007101/0.5962, allocations: 187.4 kB / 402.5 MB, free: 11.66 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.041e-06/0.5963, allocations: 5.391 kB / 402.6 MB, free: 11.65 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002066/0.5983, allocations: 0.612 MB / 403.2 MB, free: 11.58 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.017e-05/0.5984, allocations: 7.75 kB / 403.2 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.5984, allocations: 0 / 403.2 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001194/0.5996, allocations: 251 kB / 403.4 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006345/0.6003, allocations: 71.45 kB / 403.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005548/0.6059, allocations: 2.737 MB / 406.2 MB, free: 10.03 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006621/0.6066, allocations: 46.06 kB / 406.3 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.464e-05/0.6067, allocations: 22.92 kB / 406.3 MB, free: 10.01 MB / 314.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.0002936/0.607, allocations: 156.3 kB / 406.4 MB, free: 9.891 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.6071, allocations: 34.59 kB / 406.5 MB, free: 9.875 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001438/0.6073, allocations: 46.36 kB / 406.5 MB, free: 9.863 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.6073, allocations: 11.59 kB / 406.5 MB, free: 9.855 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.6073, allocations: 3.875 kB / 406.5 MB, free: 9.855 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.278e-06/0.6074, allocations: 7.984 kB / 406.5 MB, free: 9.848 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00342/0.6108, allocations: 1.25 MB / 407.8 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.6108, allocations: 3.969 kB / 407.8 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006077/0.6115, allocations: 66.33 kB / 407.9 MB, free: 9.289 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001137/0.6126, allocations: 236.9 kB / 408.1 MB, free: 9.227 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000115/0.6128, allocations: 15.36 kB / 408.1 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005186/0.618, allocations: 2.659 MB / 410.8 MB, free: 7.625 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.618, allocations: 0 / 410.8 MB, free: 7.625 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002877/0.6209, allocations: 0.9411 MB / 411.7 MB, free: 7.355 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000311/0.6213, allocations: 145.1 kB / 411.9 MB, free: 7.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/0.6214, allocations: 17.05 kB / 411.9 MB, free: 7.227 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005281/0.6219, allocations: 37.19 kB / 411.9 MB, free: 7.219 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002528/0.6222, allocations: 79.66 kB / 412 MB, free: 7.18 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.906e-05/0.6223, allocations: 18.7 kB / 412 MB, free: 7.176 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003241/0.6226, allocations: 176.4 kB / 412.2 MB, free: 7.078 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.162e-06/0.6226, allocations: 0 / 412.2 MB, free: 7.078 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009891/0.6236, allocations: 162.4 kB / 412.3 MB, free: 7.066 MB / 314.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.0003538/0.624, allocations: 148.3 kB / 412.5 MB, free: 6.965 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002192/0.6262, allocations: 0.696 MB / 413.2 MB, free: 6.723 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.6263, allocations: 0 / 413.2 MB, free: 6.723 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001467/0.6278, allocations: 475.3 kB / 413.6 MB, free: 6.527 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005071/0.6283, allocations: 30.53 kB / 413.7 MB, free: 6.523 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.6305, allocations: 0.936 MB / 414.6 MB, free: 5.93 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002951/0.6309, allocations: 0.8021 MB / 415.4 MB, free: 5.176 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004359/0.6313, allocations: 65.08 kB / 415.5 MB, free: 5.148 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/0.6316, allocations: 33.98 kB / 415.5 MB, free: 5.137 MB / 314.7 MB Notification: Performance of SimCode: time 2.094e-06/0.6316, allocations: 0 / 415.5 MB, free: 5.137 MB / 314.7 MB Notification: Performance of Templates: time 0.01843/0.65, allocations: 6.816 MB / 422.3 MB, free: 1.715 MB / 314.7 MB