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.LossyGearDemo2.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2") Notification: Performance of loadModel(Modelica): time 0.9945/0.9945, allocations: 111.3 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 2.544e-05/2.563e-05, allocations: 4 kB / 148.1 MB, free: 6.223 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04664/0.0467, allocations: 25.17 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2033/0.2501, allocations: 36.3 MB / 209.6 MB, free: 6.777 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003071/0.2504, allocations: 62.62 kB / 209.6 MB, free: 6.777 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07435/0.3248, allocations: 8.304 MB / 217.9 MB, free: 5.234 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.334e-06/0.3249, allocations: 7.719 kB / 218 MB, free: 5.23 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.3249, allocations: 3.875 kB / 218 MB, free: 5.23 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.001161/0.3261, allocations: 0.644 MB / 218.6 MB, free: 4.719 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.3261, allocations: 9.875 kB / 218.6 MB, free: 4.719 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001082/0.3262, allocations: 41.88 kB / 218.7 MB, free: 4.699 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003665/0.3266, allocations: 287.1 kB / 218.9 MB, free: 4.441 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.05e-05/0.3267, allocations: 20.47 kB / 219 MB, free: 4.438 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-05/0.3268, allocations: 19.22 kB / 219 MB, free: 4.438 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008006/0.3276, allocations: 405.3 kB / 219.4 MB, free: 4.395 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008236/0.3284, allocations: 425.2 kB / 219.8 MB, free: 4.258 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.86e-05/0.3285, allocations: 11.33 kB / 219.8 MB, free: 4.25 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.482e-05/0.3285, allocations: 0 / 219.8 MB, free: 4.25 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.241e-05/0.3286, allocations: 10.31 kB / 219.8 MB, free: 4.25 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002413/0.331, allocations: 1.096 MB / 220.9 MB, free: 3.695 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000942/0.332, allocations: 478 kB / 221.4 MB, free: 3.617 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004631/0.3325, allocations: 249.9 kB / 221.6 MB, free: 3.594 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.259e-05/0.3326, allocations: 7.812 kB / 221.6 MB, free: 3.594 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.3326, allocations: 38.19 kB / 221.7 MB, free: 3.555 MB / 170.7 MB Notification: Performance of pre-optimization done (n=47): time 3.699e-06/0.3326, allocations: 0 / 221.7 MB, free: 3.555 MB / 170.7 MB Notification: Performance of matching and sorting (n=55): time 0.004374/0.337, allocations: 1.803 MB / 223.5 MB, free: 2.793 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/0.337, allocations: 89.42 kB / 223.5 MB, free: 2.695 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002268/0.3373, allocations: 207.9 kB / 223.8 MB, free: 2.582 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 8.691e-05/0.3374, allocations: 37.34 kB / 223.8 MB, free: 2.547 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.688e-05/0.3375, allocations: 220.7 kB / 224 MB, free: 2.359 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001401/0.3376, allocations: 174.3 kB / 224.2 MB, free: 2.23 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.886e-05/0.3377, allocations: 3.875 kB / 224.2 MB, free: 2.23 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.612e-05/0.3378, allocations: 333.4 kB / 224.5 MB, free: 1.906 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004675/0.3383, allocations: 240 kB / 224.7 MB, free: 1.891 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005076/0.3388, allocations: 293.7 kB / 225 MB, free: 1.824 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006014/0.3394, allocations: 220.6 kB / 225.2 MB, free: 1.793 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.618e-06/0.3394, allocations: 0 / 225.2 MB, free: 1.793 MB / 170.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001782/0.3412, allocations: 0.7338 MB / 226 MB, free: 1.645 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.3412, allocations: 11.78 kB / 226 MB, free: 1.641 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.397e-06/0.3413, allocations: 0 / 226 MB, free: 1.641 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001338/0.3426, allocations: 455.6 kB / 226.4 MB, free: 1.527 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000632/0.3433, allocations: 92.38 kB / 226.5 MB, free: 1.5 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001835/0.3451, allocations: 1.023 MB / 227.5 MB, free: 0.9141 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007534/0.3459, allocations: 70.3 kB / 227.6 MB, free: 0.8906 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.346, allocations: 30.67 kB / 227.6 MB, free: 0.8867 MB / 170.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real gear.sa:VARIABLE(unit = "1" ) "Path parameter for acceleration and torque loss" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,$PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,gear.ideal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 40 * 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 prepare postOptimizeDAE: time 0.0002637/0.3463, allocations: 123.9 kB / 227.8 MB, free: 0.7656 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000145/0.3465, allocations: 38.75 kB / 227.8 MB, free: 0.7461 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001551/0.3467, allocations: 52.45 kB / 227.9 MB, free: 0.7305 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.568e-06/0.3467, allocations: 7.781 kB / 227.9 MB, free: 0.7305 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.532e-06/0.3467, allocations: 0 / 227.9 MB, free: 0.7305 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.095e-05/0.3467, allocations: 3.984 kB / 227.9 MB, free: 0.7266 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00389/0.3506, allocations: 1.448 MB / 229.3 MB, free: 136 kB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.3507, allocations: 3.938 kB / 229.3 MB, free: 136 kB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004629/0.3511, allocations: 74.12 kB / 229.4 MB, free: 116 kB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001103/0.3523, allocations: 441.6 kB / 229.8 MB, free: 0 / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.856e-05/0.3524, allocations: 10.28 kB / 229.8 MB, free: 0 / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001456/0.3538, allocations: 0.9843 MB / 230.8 MB, free: 15.41 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.3539, allocations: 0 / 230.8 MB, free: 15.41 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002179/0.356, allocations: 1.092 MB / 231.9 MB, free: 15.11 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003153/0.3564, allocations: 169.8 kB / 232.1 MB, free: 14.97 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.3565, allocations: 11.14 kB / 232.1 MB, free: 14.97 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004769/0.357, allocations: 61.97 kB / 232.1 MB, free: 14.95 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002474/0.3573, allocations: 97.5 kB / 232.2 MB, free: 14.9 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.728e-05/0.3573, allocations: 29.44 kB / 232.3 MB, free: 14.89 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001923/0.3576, allocations: 166.2 kB / 232.4 MB, free: 14.8 MB / 186.7 MB Notification: Performance of sort global known variables: time 8.71e-07/0.3576, allocations: 0 / 232.4 MB, free: 14.8 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.00064/0.3582, allocations: 122.5 kB / 232.5 MB, free: 14.79 MB / 186.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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 33 * 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 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.000322/0.3586, allocations: 153.3 kB / 232.7 MB, free: 14.68 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001117/0.3597, allocations: 0.5332 MB / 233.2 MB, free: 14.64 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.489e-06/0.3597, allocations: 0 / 233.2 MB, free: 14.64 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006382/0.3604, allocations: 298.3 kB / 233.5 MB, free: 14.6 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003891/0.3608, allocations: 19.83 kB / 233.5 MB, free: 14.6 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001709/0.3625, allocations: 0.6894 MB / 234.2 MB, free: 14.2 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005544/0.3631, allocations: 0.8123 MB / 235 MB, free: 13.37 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001871/0.3633, allocations: 43.03 kB / 235.1 MB, free: 13.33 MB / 186.7 MB Notification: Performance of SimCode: time 1.715e-06/0.3633, allocations: 0 / 235.1 MB, free: 13.33 MB / 186.7 MB Notification: Performance of Templates: time 0.01156/0.3749, allocations: 5.799 MB / 240.9 MB, free: 7.566 MB / 186.7 MB