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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.715/1.715, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.428e-05/3.439e-05, allocations: 0 / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2271, allocations: 38.77 MB / 267.6 MB, free: 9.438 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1375/0.3647, allocations: 70.98 MB / 338.6 MB, free: 2.352 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000443/0.3652, allocations: 67.97 kB / 338.6 MB, free: 2.285 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08438/0.4496, allocations: 9.927 MB / 348.6 MB, free: 8.328 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.211e-06/0.4497, allocations: 0 / 348.6 MB, free: 8.328 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.616e-05/0.4497, allocations: 8 kB / 348.6 MB, free: 8.32 MB / 298.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.00203/0.4518, allocations: 0.5918 MB / 349.2 MB, free: 7.684 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.783e-05/0.4518, allocations: 8.031 kB / 349.2 MB, free: 7.676 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006836/0.4525, allocations: 55.5 kB / 349.2 MB, free: 7.621 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008366/0.4534, allocations: 290.4 kB / 349.5 MB, free: 7.297 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002475/0.4537, allocations: 96.12 kB / 349.6 MB, free: 7.191 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.4539, allocations: 32 kB / 349.6 MB, free: 7.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00155/0.4554, allocations: 378.8 kB / 350 MB, free: 6.773 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.001e-05/0.4555, allocations: 7.906 kB / 350 MB, free: 6.766 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.546e-05/0.4556, allocations: 12 kB / 350 MB, free: 6.754 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.958e-05/0.4557, allocations: 11.94 kB / 350 MB, free: 6.742 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001753/0.4574, allocations: 414.9 kB / 350.4 MB, free: 6.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003303/0.4608, allocations: 0.9039 MB / 351.3 MB, free: 5.371 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001502/0.4623, allocations: 357.3 kB / 351.7 MB, free: 5.016 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008087/0.4632, allocations: 202.2 kB / 351.9 MB, free: 4.816 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.455e-05/0.4633, allocations: 8.422 kB / 351.9 MB, free: 4.809 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.326e-05/0.4634, allocations: 39 kB / 351.9 MB, free: 4.762 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 5.723e-06/0.4634, allocations: 0 / 351.9 MB, free: 4.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.006526/0.4699, allocations: 1.539 MB / 353.5 MB, free: 3.129 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.505e-05/0.4701, allocations: 81.67 kB / 353.6 MB, free: 3.031 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005771/0.4707, allocations: 211 kB / 353.8 MB, free: 2.816 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001144/0.4708, allocations: 37.7 kB / 353.8 MB, free: 2.773 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001961/0.471, allocations: 195.5 kB / 354 MB, free: 2.582 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003327/0.4714, allocations: 189.3 kB / 354.2 MB, free: 2.395 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.625e-05/0.4715, allocations: 8 kB / 354.2 MB, free: 2.387 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002259/0.4717, allocations: 326.8 kB / 354.5 MB, free: 2.059 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007693/0.4725, allocations: 173 kB / 354.7 MB, free: 1.887 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008286/0.4734, allocations: 212.7 kB / 354.9 MB, free: 1.676 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007247/0.4741, allocations: 159.2 kB / 355 MB, free: 1.52 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.107e-06/0.4741, allocations: 0 / 355 MB, free: 1.52 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002352/0.4765, allocations: 0.5395 MB / 355.6 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.38e-05/0.4766, allocations: 9.094 kB / 355.6 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.4766, allocations: 0 / 355.6 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001651/0.4783, allocations: 246.8 kB / 355.8 MB, free: 0.7188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007296/0.479, allocations: 67.88 kB / 355.9 MB, free: 0.6523 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2325/0.7116, allocations: 2.668 MB / 358.6 MB, free: 78.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004703/0.7121, allocations: 36.94 kB / 358.6 MB, free: 78.94 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-05/0.7122, allocations: 23.44 kB / 358.6 MB, free: 78.94 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 () * 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.0001674/0.7124, allocations: 138.3 kB / 358.7 MB, free: 78.82 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.7125, allocations: 30.5 kB / 358.8 MB, free: 78.82 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001111/0.7126, allocations: 53.14 kB / 358.8 MB, free: 78.82 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-05/0.7126, allocations: 6.578 kB / 358.8 MB, free: 78.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.441e-06/0.7127, allocations: 0.5312 kB / 358.8 MB, free: 78.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.308e-06/0.7127, allocations: 2.766 kB / 358.8 MB, free: 78.82 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002512/0.7152, allocations: 1.19 MB / 360 MB, free: 78.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.7152, allocations: 2.781 kB / 360 MB, free: 78.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004642/0.7157, allocations: 71.3 kB / 360.1 MB, free: 78.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008266/0.7166, allocations: 232 kB / 360.3 MB, free: 78.47 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.647e-05/0.7166, allocations: 15.14 kB / 360.3 MB, free: 78.47 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00408/0.7207, allocations: 2.577 MB / 362.9 MB, free: 76.61 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.246e-06/0.7208, allocations: 3.891 kB / 362.9 MB, free: 76.61 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001759/0.7226, allocations: 0.8693 MB / 363.8 MB, free: 76.17 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002446/0.7228, allocations: 153.5 kB / 363.9 MB, free: 76.04 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.943e-05/0.7229, allocations: 13.59 kB / 364 MB, free: 76.03 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004686/0.7234, allocations: 41.94 kB / 364 MB, free: 76.02 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002179/0.7237, allocations: 79.48 kB / 364.1 MB, free: 76.01 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.783e-05/0.7237, allocations: 17.94 kB / 364.1 MB, free: 76.01 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002145/0.724, allocations: 175.1 kB / 364.3 MB, free: 75.9 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.51e-07/0.724, allocations: 0 / 364.3 MB, free: 75.9 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0008731/0.7249, allocations: 159.3 kB / 364.4 MB, free: 75.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.0002674/0.7251, allocations: 158.9 kB / 364.6 MB, free: 75.78 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001276/0.7264, allocations: 0.6239 MB / 365.2 MB, free: 75.47 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.7265, allocations: 0 / 365.2 MB, free: 75.47 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007705/0.7272, allocations: 442.9 kB / 365.6 MB, free: 75.23 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004245/0.7277, allocations: 33.09 kB / 365.7 MB, free: 75.22 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001424/0.7291, allocations: 0.6408 MB / 366.3 MB, free: 74.88 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002647/0.7294, allocations: 0.8067 MB / 367.1 MB, free: 74.18 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002095/0.7296, allocations: 45.84 kB / 367.2 MB, free: 74.17 MB / 298.7 MB Notification: Performance of SimCode: time 1.722e-06/0.7297, allocations: 0 / 367.2 MB, free: 74.17 MB / 298.7 MB Notification: Performance of Templates: time 0.009363/0.739, allocations: 5.734 MB / 372.9 MB, free: 71.11 MB / 298.7 MB