Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.9638/0.9638, allocations: 111.1 MB / 127.3 MB, free: 6.148 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002523/0.0002526, allocations: 4 kB / 158.9 MB, free: 15.24 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05336/0.05363, allocations: 25.16 MB / 184 MB, free: 6.031 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2116/0.2653, allocations: 35.81 MB / 219.8 MB, free: 6.086 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/0.2655, allocations: 65.47 kB / 219.9 MB, free: 6.078 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02727/0.2928, allocations: 6.661 MB / 226.6 MB, free: 3.586 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2929, allocations: 0 / 226.6 MB, free: 3.586 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.575e-05/0.2929, allocations: 15.08 kB / 226.6 MB, free: 3.578 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.001149/0.2941, allocations: 0.5562 MB / 227.1 MB, free: 3.098 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.632e-05/0.2941, allocations: 7.531 kB / 227.1 MB, free: 3.098 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.59e-05/0.2942, allocations: 30.69 kB / 227.2 MB, free: 3.082 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002956/0.2945, allocations: 247.8 kB / 227.4 MB, free: 2.844 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.623e-05/0.2946, allocations: 22.09 kB / 227.4 MB, free: 2.844 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.117e-05/0.2946, allocations: 21.91 kB / 227.5 MB, free: 2.844 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008951/0.2955, allocations: 345.7 kB / 227.8 MB, free: 2.719 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.473e-05/0.2956, allocations: 12.55 kB / 227.8 MB, free: 2.707 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.664e-05/0.2956, allocations: 11.72 kB / 227.8 MB, free: 2.707 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.559e-05/0.2957, allocations: 7.719 kB / 227.8 MB, free: 2.707 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009612/0.2967, allocations: 299.2 kB / 228.1 MB, free: 2.652 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0019/0.2986, allocations: 0.854 MB / 229 MB, free: 2.164 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001052/0.2996, allocations: 375.4 kB / 229.3 MB, free: 2.09 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.099e-05/0.2997, allocations: 7.844 kB / 229.4 MB, free: 2.086 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.2997, allocations: 38.38 kB / 229.4 MB, free: 2.043 MB / 170.7 MB Notification: Performance of pre-optimization done (n=36): time 2.876e-06/0.2998, allocations: 0 / 229.4 MB, free: 2.043 MB / 170.7 MB Notification: Performance of matching and sorting (n=42): time 0.005899/0.3057, allocations: 1.902 MB / 231.3 MB, free: 0.6641 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.142e-05/0.3057, allocations: 89.09 kB / 231.4 MB, free: 0.5586 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002433/0.306, allocations: 212.8 kB / 231.6 MB, free: 376 kB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 4.957e-05/0.3061, allocations: 36.7 kB / 231.6 MB, free: 340 kB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.186e-05/0.3061, allocations: 193.4 kB / 231.8 MB, free: 160 kB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001199/0.3063, allocations: 142.3 kB / 231.9 MB, free: 44 kB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.646e-05/0.3063, allocations: 2.875 kB / 232 MB, free: 44 kB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001763/0.3065, allocations: 331.8 kB / 232.3 MB, free: 15.72 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006285/0.3072, allocations: 188.2 kB / 232.5 MB, free: 15.58 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006785/0.3078, allocations: 225.8 kB / 232.7 MB, free: 15.41 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006234/0.3085, allocations: 190.2 kB / 232.9 MB, free: 15.28 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.3085, allocations: 0 / 232.9 MB, free: 15.28 MB / 186.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.00171/0.3102, allocations: 0.5363 MB / 233.4 MB, free: 14.87 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.3103, allocations: 8 kB / 233.4 MB, free: 14.86 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.697e-06/0.3103, allocations: 0 / 233.4 MB, free: 14.86 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007616/0.311, allocations: 171.2 kB / 233.6 MB, free: 14.73 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005115/0.3116, allocations: 67.14 kB / 233.6 MB, free: 14.66 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004484/0.3161, allocations: 2.326 MB / 236 MB, free: 12.61 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004526/0.3166, allocations: 35.09 kB / 236 MB, free: 12.58 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.766e-05/0.3167, allocations: 19.69 kB / 236 MB, free: 12.57 MB / 186.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 () * Number of clocked 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.0002701/0.3169, allocations: 147.4 kB / 236.2 MB, free: 12.43 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.274e-05/0.3171, allocations: 31.73 kB / 236.2 MB, free: 12.4 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001061/0.3172, allocations: 43.98 kB / 236.2 MB, free: 12.38 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.788e-06/0.3172, allocations: 8.031 kB / 236.2 MB, free: 12.38 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.3172, allocations: 0 / 236.2 MB, free: 12.38 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.3172, allocations: 7.875 kB / 236.3 MB, free: 12.37 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00299/0.3202, allocations: 1.128 MB / 237.4 MB, free: 11.44 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.1e-06/0.3203, allocations: 0 / 237.4 MB, free: 11.44 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005356/0.3208, allocations: 67.92 kB / 237.4 MB, free: 11.37 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006702/0.3215, allocations: 145.4 kB / 237.6 MB, free: 11.26 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.117e-05/0.3216, allocations: 15.36 kB / 237.6 MB, free: 11.25 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004188/0.3258, allocations: 2.236 MB / 239.8 MB, free: 9.246 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/0.3258, allocations: 11.97 kB / 239.9 MB, free: 9.234 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002437/0.3283, allocations: 0.8573 MB / 240.7 MB, free: 8.57 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002478/0.3285, allocations: 142.6 kB / 240.9 MB, free: 8.426 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001037/0.3286, allocations: 10.88 kB / 240.9 MB, free: 8.422 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004171/0.3291, allocations: 38.78 kB / 240.9 MB, free: 8.391 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002449/0.3293, allocations: 69.89 kB / 241 MB, free: 8.332 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.43e-05/0.3294, allocations: 19.55 kB / 241 MB, free: 8.316 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002034/0.3296, allocations: 148 kB / 241.1 MB, free: 8.191 MB / 186.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.3297, allocations: 0 / 241.1 MB, free: 8.191 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.000769/0.3304, allocations: 113.1 kB / 241.2 MB, free: 8.094 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) * Number of clocked states: 0 () * 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.000287/0.3307, allocations: 140.4 kB / 241.4 MB, free: 7.957 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001739/0.3325, allocations: 0.601 MB / 242 MB, free: 7.465 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.3325, allocations: 0 / 242 MB, free: 7.465 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.3335, allocations: 404.2 kB / 242.4 MB, free: 7.129 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004098/0.334, allocations: 26.42 kB / 242.4 MB, free: 7.113 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002056/0.336, allocations: 0.8671 MB / 243.3 MB, free: 6.285 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004532/0.3365, allocations: 0.784 MB / 244.1 MB, free: 5.477 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000192/0.3367, allocations: 38.72 kB / 244.1 MB, free: 5.441 MB / 186.7 MB Notification: Performance of SimCode: time 9.62e-07/0.3367, allocations: 0 / 244.1 MB, free: 5.441 MB / 186.7 MB Notification: Performance of Templates: time 0.01105/0.3478, allocations: 4.728 MB / 248.8 MB, free: 0.7383 MB / 186.7 MB