Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_3.2.2_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadModel(Modelica): time 2.212/2.212, allocations: 194.8 MB / 211.7 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005592/0.0005595, allocations: 12 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.1191, allocations: 44.5 MB / 309 MB, free: 380 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4832/0.6025, allocations: 75.78 MB / 384.8 MB, free: 15.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003238/0.6029, allocations: 82.41 kB / 384.9 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04974/0.6526, allocations: 9.345 MB / 394.2 MB, free: 14.56 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.905e-06/0.6527, allocations: 0 / 394.2 MB, free: 14.56 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.504e-05/0.6527, allocations: 3.906 kB / 394.2 MB, free: 14.56 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001741/0.6545, allocations: 0.5817 MB / 394.8 MB, free: 14.12 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.6546, allocations: 11.5 kB / 394.8 MB, free: 14.12 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006199/0.6552, allocations: 49.2 kB / 394.9 MB, free: 14.1 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007603/0.656, allocations: 282.8 kB / 395.2 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001865/0.6562, allocations: 87.17 kB / 395.3 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001136/0.6563, allocations: 26.12 kB / 395.3 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001306/0.6576, allocations: 369.9 kB / 395.6 MB, free: 13.74 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.482e-05/0.6577, allocations: 4 kB / 395.6 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.322e-05/0.6578, allocations: 12.53 kB / 395.7 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.263e-05/0.6578, allocations: 7.688 kB / 395.7 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001628/0.6595, allocations: 408 kB / 396.1 MB, free: 13.73 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003209/0.6627, allocations: 1.174 MB / 397.2 MB, free: 13.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001252/0.6641, allocations: 331.8 kB / 397.6 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.915e-05/0.6642, allocations: 11.56 kB / 397.6 MB, free: 13.14 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.746e-05/0.6642, allocations: 33.94 kB / 397.6 MB, free: 13.1 MB / 314.7 MB Notification: Performance of pre-optimization done (n=43): time 4.278e-06/0.6642, allocations: 0 / 397.6 MB, free: 13.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=45): time 0.009505/0.6738, allocations: 1.877 MB / 399.5 MB, free: 12.45 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.27e-05/0.6739, allocations: 92.14 kB / 399.6 MB, free: 12.35 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007121/0.6746, allocations: 210.6 kB / 399.8 MB, free: 12.24 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001716/0.6748, allocations: 36.89 kB / 399.8 MB, free: 12.21 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001406/0.675, allocations: 135.3 kB / 399.9 MB, free: 12.1 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002974/0.6753, allocations: 149.7 kB / 400.1 MB, free: 12.01 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.151e-05/0.6754, allocations: 10.38 kB / 400.1 MB, free: 12.01 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.6756, allocations: 337.4 kB / 400.4 MB, free: 11.7 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/0.6768, allocations: 167.7 kB / 400.6 MB, free: 11.69 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00123/0.678, allocations: 219.8 kB / 400.8 MB, free: 11.64 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/0.6792, allocations: 161.4 kB / 401 MB, free: 11.63 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.035e-05/0.6792, allocations: 6.359 kB / 401 MB, free: 11.63 MB / 314.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00376/0.683, allocations: 0.5448 MB / 401.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.152e-05/0.6831, allocations: 5.281 kB / 401.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.6831, allocations: 1.25 kB / 401.5 MB, free: 11.55 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002265/0.6854, allocations: 235.6 kB / 401.8 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005943/0.686, allocations: 56.88 kB / 401.8 MB, free: 11.54 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00545/0.6915, allocations: 2.702 MB / 404.5 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005123/0.6921, allocations: 32.08 kB / 404.5 MB, free: 10.11 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.913e-05/0.6922, allocations: 14.94 kB / 404.6 MB, free: 10.11 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0002504/0.6924, allocations: 157.2 kB / 404.7 MB, free: 9.996 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.949e-05/0.6925, allocations: 27.47 kB / 404.7 MB, free: 9.98 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001143/0.6927, allocations: 45.69 kB / 404.8 MB, free: 9.969 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.254e-06/0.6927, allocations: 11.7 kB / 404.8 MB, free: 9.965 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.6927, allocations: 0 / 404.8 MB, free: 9.965 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.6927, allocations: 3.141 kB / 404.8 MB, free: 9.965 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00262/0.6953, allocations: 1.07 MB / 405.9 MB, free: 9.637 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.6954, allocations: 3.953 kB / 405.9 MB, free: 9.633 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004046/0.6958, allocations: 47.09 kB / 405.9 MB, free: 9.633 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009855/0.6968, allocations: 231 kB / 406.1 MB, free: 9.609 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.912e-05/0.6969, allocations: 13.88 kB / 406.2 MB, free: 9.609 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005246/0.7021, allocations: 2.655 MB / 408.8 MB, free: 8.094 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.455e-06/0.7022, allocations: 0 / 408.8 MB, free: 8.094 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002832/0.705, allocations: 0.7964 MB / 409.6 MB, free: 7.852 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000445/0.7055, allocations: 138.1 kB / 409.7 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00016/0.7057, allocations: 11.09 kB / 409.8 MB, free: 7.73 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007407/0.7065, allocations: 27.41 kB / 409.8 MB, free: 7.723 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003604/0.7068, allocations: 69.88 kB / 409.8 MB, free: 7.691 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001049/0.707, allocations: 19.28 kB / 409.9 MB, free: 7.684 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004741/0.7075, allocations: 163.6 kB / 410 MB, free: 7.586 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.713e-06/0.7075, allocations: 0 / 410 MB, free: 7.586 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001494/0.709, allocations: 149.5 kB / 410.2 MB, free: 7.574 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0004687/0.7095, allocations: 149.4 kB / 410.3 MB, free: 7.469 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002857/0.7124, allocations: 0.6127 MB / 410.9 MB, free: 7.246 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.7124, allocations: 3.938 kB / 410.9 MB, free: 7.242 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001809/0.7143, allocations: 425.6 kB / 411.4 MB, free: 7.051 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008782/0.7152, allocations: 22.55 kB / 411.4 MB, free: 7.047 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003923/0.7192, allocations: 0.824 MB / 412.2 MB, free: 6.512 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004957/0.7197, allocations: 0.7893 MB / 413 MB, free: 5.766 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005886/0.7204, allocations: 57.98 kB / 413 MB, free: 5.742 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002343/0.7206, allocations: 26.95 kB / 413.1 MB, free: 5.73 MB / 314.7 MB Notification: Performance of SimCode: time 1.583e-06/0.7206, allocations: 0 / 413.1 MB, free: 5.73 MB / 314.7 MB Notification: Performance of Templates: time 0.0175/0.7382, allocations: 6.259 MB / 419.3 MB, free: 2.574 MB / 314.7 MB