Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 1.911/1.911, allocations: 194.9 MB / 211.7 MB, free: 2.984 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003672/0.000367, allocations: 16 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08256/0.08296, allocations: 44.5 MB / 308.4 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3421/0.4251, allocations: 76.39 MB / 384.8 MB, free: 18.77 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002333/0.4253, allocations: 72.39 kB / 384.9 MB, free: 18.77 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04006/0.4654, allocations: 9.966 MB / 394.9 MB, free: 17.84 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.218e-06/0.4655, allocations: 0 / 394.9 MB, free: 17.84 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.928e-05/0.4655, allocations: 3.781 kB / 394.9 MB, free: 17.84 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.001189/0.4667, allocations: 0.6146 MB / 395.5 MB, free: 17.38 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.4667, allocations: 11.5 kB / 395.5 MB, free: 17.38 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000368/0.4671, allocations: 61.08 kB / 395.6 MB, free: 17.36 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000452/0.4676, allocations: 282 kB / 395.8 MB, free: 17.13 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001255/0.4677, allocations: 93.2 kB / 395.9 MB, free: 17.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.803e-05/0.4678, allocations: 30.97 kB / 396 MB, free: 17.06 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009587/0.4688, allocations: 414.2 kB / 396.4 MB, free: 17 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.4688, allocations: 4 kB / 396.4 MB, free: 17 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.11e-05/0.4689, allocations: 10.97 kB / 396.4 MB, free: 17 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.436e-06/0.4689, allocations: 7.875 kB / 396.4 MB, free: 17 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001317/0.4703, allocations: 472.7 kB / 396.8 MB, free: 16.99 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001593/0.4719, allocations: 0.9099 MB / 397.7 MB, free: 16.63 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.4729, allocations: 391.1 kB / 398.1 MB, free: 16.6 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.228e-05/0.473, allocations: 4.375 kB / 398.1 MB, free: 16.6 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.473, allocations: 42.64 kB / 398.2 MB, free: 16.55 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.89e-06/0.4731, allocations: 4 kB / 398.2 MB, free: 16.55 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.006402/0.4795, allocations: 2.142 MB / 400.3 MB, free: 15.87 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.837e-05/0.4795, allocations: 85.36 kB / 400.4 MB, free: 15.78 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00035/0.4799, allocations: 211.5 kB / 400.6 MB, free: 15.68 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.608e-05/0.48, allocations: 40.3 kB / 400.7 MB, free: 15.65 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.592e-05/0.4801, allocations: 193.4 kB / 400.8 MB, free: 15.48 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/0.4802, allocations: 183.7 kB / 401 MB, free: 15.37 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.683e-05/0.4803, allocations: 10.38 kB / 401 MB, free: 15.37 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.766e-05/0.4804, allocations: 336.2 kB / 401.4 MB, free: 15.05 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005904/0.481, allocations: 191.6 kB / 401.5 MB, free: 15.05 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006374/0.4816, allocations: 250 kB / 401.8 MB, free: 15.02 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005966/0.4822, allocations: 186.4 kB / 402 MB, free: 15.01 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.581e-06/0.4822, allocations: 0 / 402 MB, free: 15.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001768/0.484, allocations: 0.6028 MB / 402.6 MB, free: 14.94 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.377e-05/0.4841, allocations: 6.406 kB / 402.6 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.617e-06/0.4841, allocations: 3.938 kB / 402.6 MB, free: 14.94 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009375/0.485, allocations: 253.3 kB / 402.8 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00047/0.4855, allocations: 65.86 kB / 402.9 MB, free: 14.91 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00476/0.4903, allocations: 2.747 MB / 405.6 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004932/0.4909, allocations: 39.5 kB / 405.7 MB, free: 13.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.87e-05/0.491, allocations: 20.09 kB / 405.7 MB, free: 13.5 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.0002597/0.4912, allocations: 161.4 kB / 405.9 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.4914, allocations: 34.62 kB / 405.9 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001104/0.4915, allocations: 51.66 kB / 405.9 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.082e-06/0.4915, allocations: 3.938 kB / 405.9 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.332e-06/0.4915, allocations: 3.953 kB / 406 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.621e-06/0.4915, allocations: 3.047 kB / 406 MB, free: 13.35 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002886/0.4944, allocations: 1.255 MB / 407.2 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.663e-06/0.4945, allocations: 0 / 407.2 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004598/0.4949, allocations: 71.97 kB / 407.3 MB, free: 12.99 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000904/0.4959, allocations: 231.8 kB / 407.5 MB, free: 12.97 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.033e-05/0.4959, allocations: 18.7 kB / 407.5 MB, free: 12.96 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004453/0.5004, allocations: 2.658 MB / 410.2 MB, free: 11.56 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.304e-06/0.5005, allocations: 3.953 kB / 410.2 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002422/0.5029, allocations: 0.9481 MB / 411.1 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002541/0.5032, allocations: 146.8 kB / 411.3 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.17e-05/0.5033, allocations: 15.12 kB / 411.3 MB, free: 11.25 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004368/0.5037, allocations: 44.27 kB / 411.3 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002172/0.504, allocations: 74.16 kB / 411.4 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-05/0.504, allocations: 21.81 kB / 411.4 MB, free: 11.24 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002453/0.5043, allocations: 173.8 kB / 411.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.118e-06/0.5043, allocations: 4 kB / 411.6 MB, free: 11.16 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008285/0.5052, allocations: 164.9 kB / 411.8 MB, free: 11.14 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.0002734/0.5055, allocations: 143.2 kB / 411.9 MB, free: 11.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001713/0.5072, allocations: 0.696 MB / 412.6 MB, free: 10.88 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.532e-06/0.5072, allocations: 0 / 412.6 MB, free: 10.88 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.5083, allocations: 476.2 kB / 413.1 MB, free: 10.69 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000427/0.5087, allocations: 30.55 kB / 413.1 MB, free: 10.69 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001837/0.5106, allocations: 0.9596 MB / 414.1 MB, free: 10.07 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002634/0.5109, allocations: 0.8024 MB / 414.9 MB, free: 9.316 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002053/0.5111, allocations: 38.12 kB / 414.9 MB, free: 9.301 MB / 314.7 MB Notification: Performance of SimCode: time 1.65e-06/0.5111, allocations: 3.938 kB / 414.9 MB, free: 9.297 MB / 314.7 MB Notification: Performance of Templates: time 0.009835/0.5209, allocations: 5.752 MB / 420.7 MB, free: 6.414 MB / 314.7 MB