Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadModel(ModelicaTest): time 2.142/2.142, allocations: 234.9 MB / 250.5 MB, free: 9.477 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000434/0.000434, allocations: 8 kB / 314.3 MB, free: 9.531 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2734/0.2739, allocations: 54.88 MB / 369.2 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.002768/0.2767, allocations: 1.774 MB / 371 MB, free: 8.902 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001443/0.2782, allocations: 0.7184 MB / 371.7 MB, free: 8.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.2784, allocations: 8 kB / 371.7 MB, free: 8.172 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001161/0.2785, allocations: 27.77 kB / 371.7 MB, free: 8.145 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001967/0.2787, allocations: 71.78 kB / 371.8 MB, free: 8.074 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004104/0.2791, allocations: 95.81 kB / 371.9 MB, free: 7.98 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003431/0.2795, allocations: 208 kB / 372.1 MB, free: 7.777 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002016/0.2797, allocations: 72.55 kB / 372.1 MB, free: 7.703 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002423/0.28, allocations: 131.5 kB / 372.3 MB, free: 7.574 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002398/0.2802, allocations: 135.5 kB / 372.4 MB, free: 7.441 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.416e-05/0.2803, allocations: 12 kB / 372.4 MB, free: 7.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001534/0.2804, allocations: 55.95 kB / 372.5 MB, free: 7.375 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.309e-05/0.2805, allocations: 47.81 kB / 372.5 MB, free: 7.328 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.381e-05/0.2806, allocations: 65.58 kB / 372.6 MB, free: 7.258 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000367/0.281, allocations: 240.1 kB / 372.8 MB, free: 7.023 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.819e-06/0.281, allocations: 0 / 372.8 MB, free: 7.023 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.249e-06/0.281, allocations: 0 / 372.8 MB, free: 7.023 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.2811, allocations: 0 / 372.8 MB, free: 7.023 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.001027/0.2821, allocations: 0.53 MB / 373.4 MB, free: 6.445 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.859e-05/0.2821, allocations: 16.03 kB / 373.4 MB, free: 6.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.103e-05/0.2822, allocations: 23.72 kB / 373.4 MB, free: 6.406 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003537/0.2826, allocations: 246.6 kB / 373.6 MB, free: 6.125 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.148e-05/0.2827, allocations: 16.44 kB / 373.6 MB, free: 6.105 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.855e-05/0.2827, allocations: 23.91 kB / 373.7 MB, free: 6.082 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000671/0.2834, allocations: 259.2 kB / 373.9 MB, free: 5.828 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.2835, allocations: 0 / 373.9 MB, free: 5.828 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.071e-05/0.2835, allocations: 12 kB / 373.9 MB, free: 5.816 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.2835, allocations: 7.953 kB / 373.9 MB, free: 5.809 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006849/0.2842, allocations: 245.5 kB / 374.2 MB, free: 5.566 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.286, allocations: 0.7402 MB / 374.9 MB, free: 4.777 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007134/0.2867, allocations: 246.5 kB / 375.2 MB, free: 4.527 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.186e-05/0.2868, allocations: 4 kB / 375.2 MB, free: 4.523 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.598e-05/0.2868, allocations: 34.56 kB / 375.2 MB, free: 4.48 MB / 298.7 MB Notification: Performance of pre-optimization done (n=25): time 3.114e-06/0.2869, allocations: 0 / 375.2 MB, free: 4.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=33): time 0.004226/0.2911, allocations: 1.503 MB / 376.7 MB, free: 2.867 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.326e-05/0.2912, allocations: 59.36 kB / 376.8 MB, free: 2.797 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002833/0.2915, allocations: 194.5 kB / 377 MB, free: 2.594 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.259e-05/0.2915, allocations: 37.69 kB / 377 MB, free: 2.551 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001514/0.2917, allocations: 199.1 kB / 377.2 MB, free: 2.355 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001347/0.2919, allocations: 114.4 kB / 377.3 MB, free: 2.242 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.719e-05/0.2919, allocations: 4 kB / 377.3 MB, free: 2.238 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001773/0.2921, allocations: 330.8 kB / 377.6 MB, free: 1.906 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003737/0.2925, allocations: 123.9 kB / 377.7 MB, free: 1.785 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004039/0.2929, allocations: 163.4 kB / 377.9 MB, free: 1.613 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003414/0.2933, allocations: 115.9 kB / 378 MB, free: 1.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.818e-06/0.2933, allocations: 0 / 378 MB, free: 1.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001271/0.2946, allocations: 449.7 kB / 378.5 MB, free: 1.051 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/0.2946, allocations: 4 kB / 378.5 MB, free: 1.047 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.119e-06/0.2946, allocations: 0 / 378.5 MB, free: 1.047 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006987/0.2953, allocations: 240.7 kB / 378.7 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003038/0.2957, allocations: 59.84 kB / 378.8 MB, free: 0.75 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001066/0.2967, allocations: 0.7515 MB / 379.5 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003427/0.2971, allocations: 52.08 kB / 379.6 MB, free: 15.92 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.376e-05/0.2972, allocations: 16 kB / 379.6 MB, free: 15.9 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 (bearingFriction1.free,$PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * 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 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.000234/0.2974, allocations: 150.8 kB / 379.7 MB, free: 15.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.43e-05/0.2975, allocations: 23.72 kB / 379.7 MB, free: 15.72 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9e-05/0.2976, allocations: 34.66 kB / 379.8 MB, free: 15.69 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.543e-06/0.2976, allocations: 8 kB / 379.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.242e-06/0.2976, allocations: 3.953 kB / 379.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.344e-06/0.2977, allocations: 3.984 kB / 379.8 MB, free: 15.68 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002233/0.2999, allocations: 0.9518 MB / 380.7 MB, free: 14.66 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.796e-06/0.2999, allocations: 3.953 kB / 380.7 MB, free: 14.65 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003065/0.3003, allocations: 51.91 kB / 380.8 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005815/0.3008, allocations: 216.7 kB / 381 MB, free: 14.39 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.905e-05/0.3009, allocations: 11.98 kB / 381 MB, free: 14.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009851/0.3019, allocations: 0.7162 MB / 381.7 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.517e-06/0.3019, allocations: 3.938 kB / 381.7 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0016/0.3035, allocations: 0.6373 MB / 382.4 MB, free: 12.97 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001981/0.3038, allocations: 124.8 kB / 382.5 MB, free: 12.83 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.04e-05/0.3038, allocations: 12 kB / 382.5 MB, free: 12.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003457/0.3042, allocations: 52.02 kB / 382.6 MB, free: 12.77 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001424/0.3044, allocations: 51.89 kB / 382.6 MB, free: 12.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.76e-05/0.3044, allocations: 11.98 kB / 382.6 MB, free: 12.7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001799/0.3046, allocations: 144.5 kB / 382.8 MB, free: 12.56 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-07/0.3046, allocations: 0 / 382.8 MB, free: 12.56 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004947/0.3051, allocations: 80 kB / 382.8 MB, free: 12.48 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 23 * 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 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002393/0.3054, allocations: 135.2 kB / 383 MB, free: 12.34 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009861/0.3064, allocations: 308.4 kB / 383.3 MB, free: 12.04 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.479e-06/0.3064, allocations: 7.938 kB / 383.3 MB, free: 12.04 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004815/0.3069, allocations: 164 kB / 383.4 MB, free: 11.88 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003632/0.3073, allocations: 36.61 kB / 383.5 MB, free: 11.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002496/0.3098, allocations: 0.9769 MB / 384.5 MB, free: 10.83 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004728/0.3103, allocations: 0.7568 MB / 385.2 MB, free: 10.04 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.52e-05/0.3104, allocations: 23.42 kB / 385.2 MB, free: 10.02 MB / 314.7 MB Notification: Performance of SimCode: time 1.586e-06/0.3104, allocations: 0 / 385.2 MB, free: 10.02 MB / 314.7 MB Notification: Performance of Templates: time 0.008046/0.3185, allocations: 3.927 MB / 389.2 MB, free: 6.086 MB / 314.7 MB