Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 0.9952/0.9952, allocations: 111.2 MB / 124.2 MB, free: 11.14 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.899e-05/1.915e-05, allocations: 0 / 154.3 MB, free: 13.14 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1379/0.1379, allocations: 25.15 MB / 179.4 MB, free: 0.7969 MB / 138.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0549/0.1929, allocations: 35.73 MB / 215.2 MB, free: 13.37 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002285/0.1931, allocations: 71.95 kB / 215.2 MB, free: 13.3 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02944/0.2226, allocations: 6.641 MB / 221.9 MB, free: 6.648 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.992e-06/0.2226, allocations: 0 / 221.9 MB, free: 6.648 MB / 186.7 MB Notification: Performance of Transformations before backend: time 1.793e-05/0.2227, allocations: 4 kB / 221.9 MB, free: 6.645 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.001055/0.2237, allocations: 0.5375 MB / 222.4 MB, free: 6.062 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.145e-05/0.2238, allocations: 8.031 kB / 222.4 MB, free: 6.051 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.744e-05/0.2239, allocations: 35.62 kB / 222.4 MB, free: 6.016 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003736/0.2243, allocations: 250.6 kB / 222.7 MB, free: 5.73 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.859e-05/0.2243, allocations: 16.56 kB / 222.7 MB, free: 5.715 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.302e-05/0.2244, allocations: 24 kB / 222.7 MB, free: 5.691 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007302/0.2252, allocations: 319.6 kB / 223 MB, free: 5.367 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.382e-05/0.2252, allocations: 3.953 kB / 223 MB, free: 5.363 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.716e-05/0.2253, allocations: 15.98 kB / 223.1 MB, free: 5.348 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-05/0.2253, allocations: 11.98 kB / 223.1 MB, free: 5.336 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006091/0.226, allocations: 246.2 kB / 223.3 MB, free: 5.094 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001914/0.2279, allocations: 0.8556 MB / 224.2 MB, free: 4.18 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008213/0.2287, allocations: 350.4 kB / 224.5 MB, free: 3.828 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004088/0.2292, allocations: 173.4 kB / 224.7 MB, free: 3.656 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.697e-05/0.2292, allocations: 8.062 kB / 224.7 MB, free: 3.648 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.706e-05/0.2293, allocations: 42.42 kB / 224.7 MB, free: 3.598 MB / 186.7 MB Notification: Performance of pre-optimization done (n=36): time 3.213e-06/0.2293, allocations: 0 / 224.7 MB, free: 3.598 MB / 186.7 MB Notification: Performance of matching and sorting (n=42): time 0.003489/0.2328, allocations: 1.435 MB / 226.2 MB, free: 2.066 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.923e-05/0.2329, allocations: 81.11 kB / 226.2 MB, free: 1.969 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002879/0.2332, allocations: 198.6 kB / 226.4 MB, free: 1.766 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 6.268e-05/0.2333, allocations: 33.7 kB / 226.5 MB, free: 1.727 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001353/0.2334, allocations: 195.2 kB / 226.7 MB, free: 1.535 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001649/0.2336, allocations: 138 kB / 226.8 MB, free: 1.398 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.659e-05/0.2336, allocations: 8 kB / 226.8 MB, free: 1.391 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001766/0.2338, allocations: 334.7 kB / 227.1 MB, free: 1.055 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003925/0.2342, allocations: 160.6 kB / 227.3 MB, free: 0.8945 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000423/0.2347, allocations: 199.8 kB / 227.5 MB, free: 0.6914 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003743/0.2351, allocations: 156.1 kB / 227.6 MB, free: 0.5391 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.671e-06/0.2351, allocations: 0 / 227.6 MB, free: 0.5391 MB / 186.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001147/0.2362, allocations: 497.7 kB / 228.1 MB, free: 44 kB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.998e-05/0.2363, allocations: 5.562 kB / 228.1 MB, free: 40 kB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.755e-06/0.2363, allocations: 0 / 228.1 MB, free: 40 kB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006505/0.2369, allocations: 156.9 kB / 228.3 MB, free: 15.88 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00039/0.2374, allocations: 67.89 kB / 228.3 MB, free: 15.81 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003933/0.2413, allocations: 2.275 MB / 230.6 MB, free: 13.4 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000338/0.2417, allocations: 27.98 kB / 230.6 MB, free: 13.37 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.148e-05/0.2418, allocations: 23.98 kB / 230.7 MB, free: 13.35 MB / 202.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 (29): * Single equations (assignments): 28 * 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 16} Notification: Performance of prepare postOptimizeDAE: time 0.00017/0.242, allocations: 125.1 kB / 230.8 MB, free: 13.22 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.542e-05/0.2421, allocations: 27.67 kB / 230.8 MB, free: 13.19 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001046/0.2422, allocations: 46.77 kB / 230.9 MB, free: 13.15 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.309e-06/0.2422, allocations: 4 kB / 230.9 MB, free: 13.14 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.955e-06/0.2422, allocations: 0 / 230.9 MB, free: 13.14 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.802e-06/0.2422, allocations: 0 / 230.9 MB, free: 13.14 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002375/0.2446, allocations: 1.082 MB / 232 MB, free: 12 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.283e-06/0.2446, allocations: 0 / 232 MB, free: 12 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004122/0.2451, allocations: 63.89 kB / 232 MB, free: 11.94 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005636/0.2456, allocations: 154.4 kB / 232.2 MB, free: 11.79 MB / 202.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.004e-05/0.2457, allocations: 11.98 kB / 232.2 MB, free: 11.77 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003655/0.2494, allocations: 2.176 MB / 234.4 MB, free: 9.465 MB / 202.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.411e-06/0.2494, allocations: 7.969 kB / 234.4 MB, free: 9.457 MB / 202.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.2511, allocations: 0.792 MB / 235.2 MB, free: 8.637 MB / 202.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002464/0.2514, allocations: 144.8 kB / 235.3 MB, free: 8.477 MB / 202.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.243e-05/0.2515, allocations: 11.95 kB / 235.3 MB, free: 8.465 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003417/0.2518, allocations: 35.97 kB / 235.3 MB, free: 8.43 MB / 202.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002054/0.252, allocations: 67.94 kB / 235.4 MB, free: 8.363 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-05/0.2521, allocations: 19.98 kB / 235.4 MB, free: 8.344 MB / 202.7 MB Notification: Performance of sorting global known variables: time 0.0002029/0.2523, allocations: 148.5 kB / 235.6 MB, free: 8.199 MB / 202.7 MB Notification: Performance of sort global known variables: time 7.68e-07/0.2523, allocations: 0 / 235.6 MB, free: 8.199 MB / 202.7 MB Notification: Performance of remove unused functions: time 0.0007462/0.2531, allocations: 120 kB / 235.7 MB, free: 8.082 MB / 202.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 (27): * Single equations (assignments): 26 * 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 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002895/0.2534, allocations: 151 kB / 235.8 MB, free: 7.922 MB / 202.7 MB Notification: Performance of simCode: created initialization part: time 0.001226/0.2546, allocations: 0.536 MB / 236.4 MB, free: 7.371 MB / 202.7 MB Notification: Performance of simCode: created event and clocks part: time 3.345e-06/0.2547, allocations: 0 / 236.4 MB, free: 7.371 MB / 202.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007389/0.2554, allocations: 373.9 kB / 236.7 MB, free: 6.992 MB / 202.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003789/0.2558, allocations: 25.67 kB / 236.8 MB, free: 6.969 MB / 202.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001493/0.2573, allocations: 0.5743 MB / 237.3 MB, free: 6.367 MB / 202.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005197/0.2579, allocations: 0.7916 MB / 238.1 MB, free: 5.551 MB / 202.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001553/0.258, allocations: 31.42 kB / 238.2 MB, free: 5.52 MB / 202.7 MB Notification: Performance of SimCode: time 1.568e-06/0.2581, allocations: 0 / 238.2 MB, free: 5.52 MB / 202.7 MB Notification: Performance of Templates: time 0.00969/0.2678, allocations: 4.727 MB / 242.9 MB, free: 0.793 MB / 202.7 MB