Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadModel(Modelica): time 2.013/2.013, allocations: 194.9 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005374/0.0005377, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1064, allocations: 44.5 MB / 309 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4307/0.5372, allocations: 76.37 MB / 385.3 MB, free: 14.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003238/0.5376, allocations: 81.55 kB / 385.4 MB, free: 14.83 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04558/0.5832, allocations: 9.947 MB / 395.4 MB, free: 13.93 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.885e-06/0.5832, allocations: 0 / 395.4 MB, free: 13.93 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.797e-05/0.5833, allocations: 11.97 kB / 395.4 MB, free: 13.92 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001696/0.585, allocations: 0.623 MB / 396 MB, free: 13.46 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.585, allocations: 11.44 kB / 396 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00052/0.5856, allocations: 53.91 kB / 396.1 MB, free: 13.43 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006419/0.5862, allocations: 285.3 kB / 396.4 MB, free: 13.21 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001613/0.5864, allocations: 92.11 kB / 396.4 MB, free: 13.15 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.625e-05/0.5865, allocations: 30.44 kB / 396.5 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.5878, allocations: 417.1 kB / 396.9 MB, free: 13.09 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.845e-05/0.5879, allocations: 3.984 kB / 396.9 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.135e-05/0.5879, allocations: 14.47 kB / 396.9 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.036e-05/0.588, allocations: 7.781 kB / 396.9 MB, free: 13.08 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00164/0.5896, allocations: 474.9 kB / 397.4 MB, free: 13.07 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00212/0.5918, allocations: 0.9115 MB / 398.3 MB, free: 12.71 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001302/0.5931, allocations: 385.9 kB / 398.7 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.165e-05/0.5932, allocations: 4.312 kB / 398.7 MB, free: 12.68 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.024e-05/0.5933, allocations: 42.7 kB / 398.7 MB, free: 12.63 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 4.038e-06/0.5933, allocations: 3.844 kB / 398.7 MB, free: 12.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=55): time 0.008678/0.602, allocations: 2.149 MB / 400.9 MB, free: 11.95 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.126e-05/0.6021, allocations: 85.45 kB / 400.9 MB, free: 11.85 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004524/0.6025, allocations: 234.2 kB / 401.2 MB, free: 11.75 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001016/0.6027, allocations: 39.89 kB / 401.2 MB, free: 11.71 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.988e-05/0.6028, allocations: 192.3 kB / 401.4 MB, free: 11.55 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001833/0.6029, allocations: 189.5 kB / 401.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.476e-05/0.603, allocations: 10.38 kB / 401.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.062e-05/0.6031, allocations: 326.8 kB / 401.9 MB, free: 11.12 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007574/0.6039, allocations: 196.4 kB / 402.1 MB, free: 11.12 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000795/0.6047, allocations: 243.1 kB / 402.3 MB, free: 11.09 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000724/0.6054, allocations: 184.7 kB / 402.5 MB, free: 11.08 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.6054, allocations: 3.953 kB / 402.5 MB, free: 11.08 MB / 314.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.002112/0.6076, allocations: 0.6124 MB / 403.1 MB, free: 11.01 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.647e-05/0.6076, allocations: 3.844 kB / 403.1 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.6077, allocations: 0 / 403.1 MB, free: 11.01 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00121/0.6089, allocations: 245.4 kB / 403.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006561/0.6096, allocations: 74.05 kB / 403.4 MB, free: 10.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006027/0.6156, allocations: 2.746 MB / 406.2 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006901/0.6164, allocations: 40.83 kB / 406.2 MB, free: 9.562 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.77e-05/0.6165, allocations: 20.38 kB / 406.3 MB, free: 9.562 MB / 314.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 (33): * Single equations (assignments): 32 * 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 25} Notification: Performance of prepare postOptimizeDAE: time 0.0003176/0.6168, allocations: 158.3 kB / 406.4 MB, free: 9.445 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001308/0.617, allocations: 30.91 kB / 406.4 MB, free: 9.43 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001558/0.6171, allocations: 45.48 kB / 406.5 MB, free: 9.418 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.688e-06/0.6172, allocations: 11.8 kB / 406.5 MB, free: 9.414 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.6172, allocations: 0 / 406.5 MB, free: 9.414 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.6172, allocations: 6.672 kB / 406.5 MB, free: 9.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003539/0.6207, allocations: 1.251 MB / 407.8 MB, free: 9.055 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.6208, allocations: 3.844 kB / 407.8 MB, free: 9.055 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006317/0.6214, allocations: 65.39 kB / 407.8 MB, free: 9.039 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001055/0.6225, allocations: 232.2 kB / 408 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.421e-05/0.6226, allocations: 19.42 kB / 408.1 MB, free: 8.977 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005469/0.6281, allocations: 2.66 MB / 410.7 MB, free: 7.375 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.6282, allocations: 0 / 410.7 MB, free: 7.375 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003067/0.6312, allocations: 0.9394 MB / 411.7 MB, free: 7.105 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003138/0.6316, allocations: 156.5 kB / 411.8 MB, free: 6.977 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.6317, allocations: 14.66 kB / 411.8 MB, free: 6.973 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005405/0.6323, allocations: 38.22 kB / 411.9 MB, free: 6.961 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000281/0.6326, allocations: 78.5 kB / 411.9 MB, free: 6.922 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.16e-05/0.6326, allocations: 19.42 kB / 412 MB, free: 6.918 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003099/0.633, allocations: 181.4 kB / 412.1 MB, free: 6.816 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.633, allocations: 0 / 412.1 MB, free: 6.816 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009635/0.634, allocations: 162 kB / 412.3 MB, free: 6.805 MB / 314.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 (31): * Single equations (assignments): 30 * 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 Backend phase and start with SimCode phase: time 0.0003346/0.6343, allocations: 141.9 kB / 412.4 MB, free: 6.703 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002258/0.6366, allocations: 0.6895 MB / 413.1 MB, free: 6.469 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.6366, allocations: 0 / 413.1 MB, free: 6.469 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001275/0.6379, allocations: 478.7 kB / 413.6 MB, free: 6.27 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004936/0.6384, allocations: 30.11 kB / 413.6 MB, free: 6.266 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.6408, allocations: 0.9662 MB / 414.6 MB, free: 5.641 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.6411, allocations: 0.7985 MB / 415.4 MB, free: 4.887 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002976/0.6414, allocations: 42.44 kB / 415.4 MB, free: 4.871 MB / 314.7 MB Notification: Performance of SimCode: time 9.82e-07/0.6415, allocations: 0 / 415.4 MB, free: 4.871 MB / 314.7 MB Notification: Performance of Templates: time 0.01284/0.6543, allocations: 5.765 MB / 421.2 MB, free: 1.973 MB / 314.7 MB