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 1.088/1.088, allocations: 111.1 MB / 126.7 MB, free: 6.137 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002586/0.0002588, allocations: 7.938 kB / 158.3 MB, free: 15.18 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04632/0.04661, allocations: 25.17 MB / 183.5 MB, free: 5.977 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1752/0.2219, allocations: 35.82 MB / 219.3 MB, free: 6.156 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001861/0.2221, allocations: 62.44 kB / 219.4 MB, free: 6.148 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02612/0.2482, allocations: 6.659 MB / 226 MB, free: 3.652 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.467e-06/0.2483, allocations: 0 / 226 MB, free: 3.652 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.717e-05/0.2483, allocations: 6.5 kB / 226 MB, free: 3.652 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.0008848/0.2492, allocations: 0.5577 MB / 226.6 MB, free: 3.168 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.2493, allocations: 11.59 kB / 226.6 MB, free: 3.168 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.119e-05/0.2494, allocations: 31.03 kB / 226.6 MB, free: 3.152 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002722/0.2496, allocations: 246.9 kB / 226.9 MB, free: 2.914 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.75e-05/0.2497, allocations: 19.97 kB / 226.9 MB, free: 2.914 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.952e-05/0.2498, allocations: 27.48 kB / 226.9 MB, free: 2.91 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008043/0.2506, allocations: 339.2 kB / 227.3 MB, free: 2.789 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.575e-05/0.2506, allocations: 9.078 kB / 227.3 MB, free: 2.781 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.586e-05/0.2507, allocations: 10.94 kB / 227.3 MB, free: 2.781 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.83e-05/0.2507, allocations: 9 kB / 227.3 MB, free: 2.781 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000813/0.2516, allocations: 302.5 kB / 227.6 MB, free: 2.727 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001666/0.2533, allocations: 0.8499 MB / 228.4 MB, free: 2.238 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009029/0.2542, allocations: 378.9 kB / 228.8 MB, free: 2.16 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.276e-05/0.2542, allocations: 10.14 kB / 228.8 MB, free: 2.156 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.608e-05/0.2543, allocations: 36.31 kB / 228.8 MB, free: 2.117 MB / 170.7 MB Notification: Performance of pre-optimization done (n=36): time 3.4e-06/0.2543, allocations: 0 / 228.8 MB, free: 2.117 MB / 170.7 MB Notification: Performance of matching and sorting (n=42): time 0.004747/0.2591, allocations: 1.908 MB / 230.8 MB, free: 0.6016 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.413e-05/0.2591, allocations: 85.05 kB / 230.8 MB, free: 0.5 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000217/0.2594, allocations: 191.3 kB / 231 MB, free: 336 kB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 4.528e-05/0.2594, allocations: 40.83 kB / 231.1 MB, free: 296 kB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.763e-05/0.2595, allocations: 192.8 kB / 231.3 MB, free: 116 kB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001087/0.2596, allocations: 136.1 kB / 231.4 MB, free: 0 / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.105e-05/0.2597, allocations: 6.688 kB / 231.4 MB, free: 0 / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001983/0.2599, allocations: 331.8 kB / 231.7 MB, free: 15.67 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005126/0.2604, allocations: 185.3 kB / 231.9 MB, free: 15.54 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005416/0.261, allocations: 226.2 kB / 232.1 MB, free: 15.36 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004994/0.2615, allocations: 185.3 kB / 232.3 MB, free: 15.23 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.921e-06/0.2615, allocations: 0 / 232.3 MB, free: 15.23 MB / 186.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001404/0.2629, allocations: 0.5367 MB / 232.8 MB, free: 14.83 MB / 186.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.419e-05/0.263, allocations: 11.94 kB / 232.8 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.607e-06/0.263, allocations: 0 / 232.8 MB, free: 14.82 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006538/0.2636, allocations: 161.8 kB / 233 MB, free: 14.69 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003895/0.2641, allocations: 71.45 kB / 233.1 MB, free: 14.62 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004106/0.2682, allocations: 2.333 MB / 235.4 MB, free: 12.58 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000338/0.2686, allocations: 37.62 kB / 235.4 MB, free: 12.55 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.161e-05/0.2687, allocations: 23.48 kB / 235.5 MB, free: 12.53 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.0002592/0.2689, allocations: 149.7 kB / 235.6 MB, free: 12.39 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.867e-05/0.269, allocations: 27.67 kB / 235.6 MB, free: 12.36 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.552e-05/0.2691, allocations: 46.55 kB / 235.7 MB, free: 12.34 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.268e-05/0.2692, allocations: 4.047 kB / 235.7 MB, free: 12.34 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.508e-06/0.2692, allocations: 7.984 kB / 235.7 MB, free: 12.33 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.924e-06/0.2692, allocations: 0 / 235.7 MB, free: 12.33 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002621/0.2718, allocations: 1.125 MB / 236.8 MB, free: 11.4 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.355e-06/0.2719, allocations: 0 / 236.8 MB, free: 11.4 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003949/0.2723, allocations: 67.98 kB / 236.9 MB, free: 11.34 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005685/0.2729, allocations: 148.8 kB / 237 MB, free: 11.22 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.945e-05/0.2729, allocations: 14.86 kB / 237.1 MB, free: 11.21 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003813/0.2768, allocations: 2.241 MB / 239.3 MB, free: 9.203 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.157e-06/0.2768, allocations: 0 / 239.3 MB, free: 9.203 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002121/0.2789, allocations: 0.8705 MB / 240.2 MB, free: 8.52 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002797/0.2793, allocations: 144.1 kB / 240.3 MB, free: 8.375 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.2794, allocations: 11.83 kB / 240.3 MB, free: 8.367 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000336/0.2797, allocations: 39.28 kB / 240.4 MB, free: 8.336 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002079/0.28, allocations: 67.19 kB / 240.4 MB, free: 8.281 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.635e-05/0.28, allocations: 19.98 kB / 240.4 MB, free: 8.262 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001994/0.2802, allocations: 151.1 kB / 240.6 MB, free: 8.137 MB / 186.7 MB Notification: Performance of sort global known variables: time 6.85e-07/0.2803, allocations: 0 / 240.6 MB, free: 8.137 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0007522/0.281, allocations: 115.5 kB / 240.7 MB, free: 8.039 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.0002844/0.2813, allocations: 142.9 kB / 240.8 MB, free: 7.898 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.2828, allocations: 0.5992 MB / 241.4 MB, free: 7.406 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.384e-06/0.2829, allocations: 0 / 241.4 MB, free: 7.406 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008905/0.2838, allocations: 402.2 kB / 241.8 MB, free: 7.074 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004087/0.2842, allocations: 31.73 kB / 241.9 MB, free: 7.051 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001955/0.2862, allocations: 0.8569 MB / 242.7 MB, free: 6.23 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005255/0.2867, allocations: 0.7879 MB / 243.5 MB, free: 5.414 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001623/0.2869, allocations: 31.42 kB / 243.5 MB, free: 5.383 MB / 186.7 MB Notification: Performance of SimCode: time 4.13e-06/0.2869, allocations: 0 / 243.5 MB, free: 5.383 MB / 186.7 MB Notification: Performance of Templates: time 0.009855/0.2968, allocations: 4.733 MB / 248.3 MB, free: 0.6719 MB / 186.7 MB