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/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.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 1.036/1.036, allocations: 111.1 MB / 126.7 MB, free: 6.141 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002733/0.0002734, allocations: 7.938 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04628/0.04658, allocations: 25.16 MB / 183.5 MB, free: 5.98 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1802/0.2268, allocations: 37.06 MB / 220.6 MB, free: 5.812 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001654/0.227, allocations: 61 kB / 220.6 MB, free: 5.805 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03269/0.2597, allocations: 8.373 MB / 229 MB, free: 2.211 MB / 170.7 MB Notification: Performance of FrontEnd: time 3.661e-06/0.2598, allocations: 0 / 229 MB, free: 2.211 MB / 170.7 MB Notification: Performance of Transformations before backend: time 3.186e-05/0.2598, allocations: 8 kB / 229 MB, free: 2.203 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.001974/0.2618, allocations: 0.6618 MB / 229.7 MB, free: 1.52 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.877e-05/0.2619, allocations: 15.97 kB / 229.7 MB, free: 1.504 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001228/0.262, allocations: 43.44 kB / 229.7 MB, free: 1.461 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003737/0.2624, allocations: 298.2 kB / 230 MB, free: 1.152 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.985e-05/0.2625, allocations: 20.47 kB / 230 MB, free: 1.137 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.195e-05/0.2626, allocations: 39.34 kB / 230.1 MB, free: 1.109 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001042/0.2636, allocations: 0.4933 MB / 230.6 MB, free: 0.7344 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.412e-05/0.2637, allocations: 0 / 230.6 MB, free: 0.7344 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.292e-05/0.2637, allocations: 19.77 kB / 230.6 MB, free: 0.7266 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.559e-05/0.2638, allocations: 12 kB / 230.6 MB, free: 0.7148 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001146/0.2649, allocations: 477.3 kB / 231.1 MB, free: 376 kB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002752/0.2677, allocations: 1.176 MB / 232.2 MB, free: 15.37 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001366/0.2691, allocations: 0.518 MB / 232.7 MB, free: 14.97 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.068e-05/0.2692, allocations: 8.5 kB / 232.8 MB, free: 14.96 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.032e-05/0.2692, allocations: 41.38 kB / 232.8 MB, free: 14.92 MB / 186.7 MB Notification: Performance of pre-optimization done (n=47): time 3.821e-06/0.2693, allocations: 0 / 232.8 MB, free: 14.92 MB / 186.7 MB Notification: Performance of matching and sorting (n=55): time 0.007966/0.2772, allocations: 2.685 MB / 235.5 MB, free: 12.61 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.926e-05/0.2774, allocations: 85.62 kB / 235.6 MB, free: 12.51 MB / 186.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003702/0.2777, allocations: 244.9 kB / 235.8 MB, free: 12.31 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 7.941e-05/0.2778, allocations: 36.83 kB / 235.8 MB, free: 12.27 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000157/0.278, allocations: 217 kB / 236 MB, free: 12.08 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002048/0.2782, allocations: 177.4 kB / 236.2 MB, free: 11.93 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.056e-05/0.2783, allocations: 10.81 kB / 236.2 MB, free: 11.93 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001756/0.2785, allocations: 329.1 kB / 236.6 MB, free: 11.61 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007466/0.2792, allocations: 281.6 kB / 236.8 MB, free: 11.41 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007884/0.28, allocations: 334.3 kB / 237.2 MB, free: 11.16 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006998/0.2808, allocations: 257.9 kB / 237.4 MB, free: 10.99 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.869e-06/0.2808, allocations: 0 / 237.4 MB, free: 10.99 MB / 186.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002405/0.2832, allocations: 0.8365 MB / 238.2 MB, free: 10.36 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.2832, allocations: 8 kB / 238.3 MB, free: 10.35 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.098e-06/0.2833, allocations: 0 / 238.3 MB, free: 10.35 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001276/0.2846, allocations: 470.2 kB / 238.7 MB, free: 9.973 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005047/0.2851, allocations: 87.31 kB / 238.8 MB, free: 9.891 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001615/0.2867, allocations: 0.9752 MB / 239.8 MB, free: 9.047 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005728/0.2873, allocations: 78.72 kB / 239.8 MB, free: 8.98 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/0.2874, allocations: 35.41 kB / 239.9 MB, free: 8.949 MB / 186.7 MB 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 () * Number of clocked 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.0003478/0.2878, allocations: 172.3 kB / 240.1 MB, free: 8.801 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/0.2879, allocations: 35.62 kB / 240.1 MB, free: 8.766 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/0.2881, allocations: 55.17 kB / 240.1 MB, free: 8.746 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.326e-06/0.2881, allocations: 11.94 kB / 240.2 MB, free: 8.734 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.735e-06/0.2881, allocations: 0 / 240.2 MB, free: 8.734 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.2881, allocations: 7.938 kB / 240.2 MB, free: 8.727 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004004/0.2922, allocations: 1.605 MB / 241.8 MB, free: 7.422 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.455e-06/0.2922, allocations: 0 / 241.8 MB, free: 7.422 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004986/0.2927, allocations: 74.33 kB / 241.8 MB, free: 7.352 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001184/0.2939, allocations: 455.5 kB / 242.3 MB, free: 6.98 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.357e-05/0.294, allocations: 19.05 kB / 242.3 MB, free: 6.973 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001508/0.2955, allocations: 0.9363 MB / 243.2 MB, free: 6.152 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.859e-06/0.2956, allocations: 4.062 kB / 243.2 MB, free: 6.148 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002994/0.2986, allocations: 1.222 MB / 244.5 MB, free: 5.215 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003635/0.299, allocations: 180.2 kB / 244.6 MB, free: 5.027 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/0.2991, allocations: 16 kB / 244.7 MB, free: 5.012 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005041/0.2996, allocations: 67.94 kB / 244.7 MB, free: 4.945 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002673/0.2999, allocations: 96.19 kB / 244.8 MB, free: 4.852 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-05/0.3, allocations: 43.97 kB / 244.9 MB, free: 4.809 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002898/0.3003, allocations: 190 kB / 245 MB, free: 4.617 MB / 186.7 MB Notification: Performance of sort global known variables: time 7.43e-07/0.3003, allocations: 0 / 245 MB, free: 4.617 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0007038/0.301, allocations: 139.9 kB / 245.2 MB, free: 4.48 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) * Number of clocked states: 0 () * 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.0003537/0.3014, allocations: 166.9 kB / 245.3 MB, free: 4.309 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001779/0.3032, allocations: 0.6233 MB / 246 MB, free: 3.691 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 5.934e-06/0.3032, allocations: 4.062 kB / 246 MB, free: 3.688 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009723/0.3042, allocations: 337.2 kB / 246.3 MB, free: 3.355 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00046/0.3047, allocations: 44.42 kB / 246.3 MB, free: 3.312 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002393/0.3071, allocations: 1.048 MB / 247.4 MB, free: 2.223 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005531/0.3077, allocations: 0.8125 MB / 248.2 MB, free: 1.383 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001978/0.3079, allocations: 39.42 kB / 248.2 MB, free: 1.344 MB / 186.7 MB Notification: Performance of SimCode: time 1.68e-06/0.3079, allocations: 3.938 kB / 248.2 MB, free: 1.34 MB / 186.7 MB Notification: Performance of Templates: time 0.01175/0.3196, allocations: 5.889 MB / 254.1 MB, free: 11.45 MB / 202.7 MB