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/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.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.9842/0.9842, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.9e-05/1.918e-05, allocations: 4 kB / 148.1 MB, free: 6.23 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04592/0.04597, allocations: 25.17 MB / 173.3 MB, free: 13.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1752/0.2212, allocations: 35.06 MB / 208.3 MB, free: 6.973 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001942/0.2214, allocations: 59.97 kB / 208.4 MB, free: 6.973 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02588/0.2473, allocations: 6.614 MB / 215 MB, free: 6.242 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.269e-06/0.2474, allocations: 0 / 215 MB, free: 6.242 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.555e-05/0.2474, allocations: 3.875 kB / 215 MB, free: 6.242 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0008798/0.2483, allocations: 0.5366 MB / 215.6 MB, free: 5.82 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.915e-05/0.2484, allocations: 11.5 kB / 215.6 MB, free: 5.82 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.238e-05/0.2485, allocations: 30.81 kB / 215.6 MB, free: 5.805 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002906/0.2488, allocations: 241.5 kB / 215.8 MB, free: 5.59 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.503e-05/0.2488, allocations: 7.25 kB / 215.8 MB, free: 5.59 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.662e-05/0.2489, allocations: 22.28 kB / 215.9 MB, free: 5.586 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005001/0.2494, allocations: 238 kB / 216.1 MB, free: 5.578 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005496/0.25, allocations: 278.4 kB / 216.4 MB, free: 5.52 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.175e-05/0.25, allocations: 1.281 kB / 216.4 MB, free: 5.52 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.821e-05/0.25, allocations: 0 / 216.4 MB, free: 5.52 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.258e-05/0.2501, allocations: 8.938 kB / 216.4 MB, free: 5.52 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00176/0.2519, allocations: 0.7961 MB / 217.2 MB, free: 5.105 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006155/0.2525, allocations: 342.7 kB / 217.5 MB, free: 5.043 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002896/0.2528, allocations: 167.2 kB / 217.7 MB, free: 5.023 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.839e-05/0.2529, allocations: 3.875 kB / 217.7 MB, free: 5.023 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.894e-05/0.2529, allocations: 38.47 kB / 217.7 MB, free: 4.984 MB / 170.7 MB Notification: Performance of pre-optimization done (n=36): time 3.706e-06/0.2529, allocations: 0 / 217.7 MB, free: 4.984 MB / 170.7 MB Notification: Performance of matching and sorting (n=42): time 0.002947/0.2559, allocations: 1.345 MB / 219.1 MB, free: 4.32 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.969e-05/0.2559, allocations: 84.97 kB / 219.1 MB, free: 4.223 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.2561, allocations: 162.9 kB / 219.3 MB, free: 4.121 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 4.105e-05/0.2562, allocations: 25.7 kB / 219.3 MB, free: 4.09 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.052e-05/0.2563, allocations: 198.2 kB / 219.5 MB, free: 3.914 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001147/0.2564, allocations: 141.7 kB / 219.7 MB, free: 3.809 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.864e-05/0.2564, allocations: 0 / 219.7 MB, free: 3.809 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.019e-05/0.2565, allocations: 326.1 kB / 220 MB, free: 3.488 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002872/0.2568, allocations: 149.8 kB / 220.1 MB, free: 3.477 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003054/0.2571, allocations: 191.4 kB / 220.3 MB, free: 3.434 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003638/0.2575, allocations: 144.9 kB / 220.5 MB, free: 3.414 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.148e-06/0.2575, allocations: 0 / 220.5 MB, free: 3.414 MB / 170.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009395/0.2585, allocations: 467.3 kB / 220.9 MB, free: 3.312 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.2585, allocations: 5.656 kB / 220.9 MB, free: 3.312 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.444e-06/0.2585, allocations: 7.859 kB / 220.9 MB, free: 3.309 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005412/0.2591, allocations: 148.8 kB / 221.1 MB, free: 3.277 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003449/0.2594, allocations: 65.55 kB / 221.1 MB, free: 3.262 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002863/0.2623, allocations: 2.189 MB / 223.3 MB, free: 1.805 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003183/0.2627, allocations: 27.34 kB / 223.3 MB, free: 1.797 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.601e-05/0.2628, allocations: 27.23 kB / 223.4 MB, free: 1.789 MB / 170.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: gear.flange_a.tau:VARIABLE(flow=true unit = "N.m" ) "Cut torque in the flange" 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: 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.0001921/0.263, allocations: 116.7 kB / 223.5 MB, free: 1.672 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.675e-05/0.2631, allocations: 23.41 kB / 223.5 MB, free: 1.66 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.592e-05/0.2632, allocations: 36.89 kB / 223.5 MB, free: 1.652 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.2632, allocations: 7.828 kB / 223.6 MB, free: 1.648 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.2632, allocations: 3.812 kB / 223.6 MB, free: 1.648 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.376e-06/0.2632, allocations: 3.938 kB / 223.6 MB, free: 1.645 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001956/0.2652, allocations: 1.002 MB / 224.6 MB, free: 1.18 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.261e-06/0.2652, allocations: 0 / 224.6 MB, free: 1.18 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003707/0.2656, allocations: 66.08 kB / 224.6 MB, free: 1.168 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004857/0.2661, allocations: 142.2 kB / 224.8 MB, free: 1.133 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.222e-05/0.2662, allocations: 7.859 kB / 224.8 MB, free: 1.129 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003066/0.2692, allocations: 2.097 MB / 226.9 MB, free: 15.68 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.306e-06/0.2693, allocations: 3.938 kB / 226.9 MB, free: 15.67 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001351/0.2706, allocations: 0.7673 MB / 227.6 MB, free: 15.42 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002283/0.2709, allocations: 138.2 kB / 227.8 MB, free: 15.3 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.252e-05/0.271, allocations: 7.406 kB / 227.8 MB, free: 15.3 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003194/0.2713, allocations: 27.34 kB / 227.8 MB, free: 15.29 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001781/0.2715, allocations: 61.19 kB / 227.9 MB, free: 15.26 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.202e-05/0.2716, allocations: 22.95 kB / 227.9 MB, free: 15.26 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.000143/0.2717, allocations: 140.2 kB / 228 MB, free: 15.17 MB / 186.7 MB Notification: Performance of sort global known variables: time 1.044e-06/0.2717, allocations: 0 / 228 MB, free: 15.17 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0007329/0.2725, allocations: 97.25 kB / 228.1 MB, free: 15.16 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: 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.000273/0.2728, allocations: 126.2 kB / 228.3 MB, free: 15.06 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.0009722/0.2738, allocations: 0.5148 MB / 228.8 MB, free: 14.89 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.269e-06/0.2738, allocations: 0 / 228.8 MB, free: 14.89 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000588/0.2744, allocations: 350.6 kB / 229.1 MB, free: 14.75 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003805/0.2748, allocations: 15.89 kB / 229.1 MB, free: 14.75 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.2761, allocations: 0.5596 MB / 229.7 MB, free: 14.42 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005119/0.2766, allocations: 0.7816 MB / 230.5 MB, free: 13.68 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001604/0.2768, allocations: 26.42 kB / 230.5 MB, free: 13.67 MB / 186.7 MB Notification: Performance of SimCode: time 1.872e-06/0.2768, allocations: 3.75 kB / 230.5 MB, free: 13.67 MB / 186.7 MB Notification: Performance of Templates: time 0.009001/0.2858, allocations: 4.656 MB / 235.1 MB, free: 11.33 MB / 186.7 MB