Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadModel(ModelicaTest): time 1.971/1.971, allocations: 209.4 MB / 217.3 MB, free: 4.141 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.146e-05/1.151e-05, allocations: 0 / 271.3 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2611/0.2612, allocations: 48.69 MB / 320 MB, free: 14.4 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1171/0.3783, allocations: 76.13 MB / 396.1 MB, free: 4.309 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002413/0.3786, allocations: 67.97 kB / 396.2 MB, free: 4.242 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01744/0.396, allocations: 4.297 MB / 400.5 MB, free: 15.94 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.258e-06/0.3961, allocations: 0 / 400.5 MB, free: 15.94 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.794e-05/0.3961, allocations: 8 kB / 400.5 MB, free: 15.93 MB / 346.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.0009637/0.3971, allocations: 0.5138 MB / 401 MB, free: 15.37 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.3972, allocations: 8.031 kB / 401 MB, free: 15.36 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.445e-05/0.3972, allocations: 23.72 kB / 401.1 MB, free: 15.34 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003616/0.3976, allocations: 243.3 kB / 401.3 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.222e-05/0.3977, allocations: 8 kB / 401.3 MB, free: 15.05 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.366e-05/0.3977, allocations: 12 kB / 401.3 MB, free: 15.04 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005421/0.3983, allocations: 208.8 kB / 401.5 MB, free: 14.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005455/0.3989, allocations: 230.3 kB / 401.7 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.608e-05/0.3989, allocations: 3.906 kB / 401.7 MB, free: 14.6 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.252e-05/0.3989, allocations: 0 / 401.7 MB, free: 14.6 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.489e-06/0.399, allocations: 4 kB / 401.7 MB, free: 14.6 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001683/0.4007, allocations: 0.6776 MB / 402.4 MB, free: 13.88 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006035/0.4013, allocations: 227.6 kB / 402.6 MB, free: 13.65 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002776/0.4016, allocations: 124.8 kB / 402.8 MB, free: 13.53 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.301e-05/0.4016, allocations: 7.938 kB / 402.8 MB, free: 13.52 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.4017, allocations: 34.56 kB / 402.8 MB, free: 13.48 MB / 346.7 MB Notification: Performance of pre-optimization done (n=25): time 6.425e-06/0.4017, allocations: 7.984 kB / 402.8 MB, free: 13.47 MB / 346.7 MB Notification: Performance of matching and sorting (n=33): time 0.003223/0.4049, allocations: 1.161 MB / 404 MB, free: 12.21 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.23e-05/0.405, allocations: 55.41 kB / 404 MB, free: 12.15 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002175/0.4052, allocations: 153.5 kB / 404.2 MB, free: 11.99 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.718e-05/0.4053, allocations: 25.7 kB / 404.2 MB, free: 11.96 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001502/0.4055, allocations: 207.2 kB / 404.4 MB, free: 11.76 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001264/0.4056, allocations: 110.5 kB / 404.5 MB, free: 11.65 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.07e-05/0.4057, allocations: 4 kB / 404.5 MB, free: 11.64 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001694/0.4058, allocations: 322.8 kB / 404.8 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002715/0.4061, allocations: 112 kB / 404.9 MB, free: 11.21 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003247/0.4065, allocations: 151 kB / 405.1 MB, free: 11.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003557/0.4068, allocations: 107.8 kB / 405.2 MB, free: 10.95 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.431e-06/0.4068, allocations: 3.938 kB / 405.2 MB, free: 10.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001278/0.4081, allocations: 445.2 kB / 405.6 MB, free: 10.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.455e-05/0.4082, allocations: 8.781 kB / 405.6 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.4082, allocations: 0 / 405.6 MB, free: 10.49 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006897/0.4089, allocations: 245.6 kB / 405.9 MB, free: 10.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003095/0.4092, allocations: 51.97 kB / 405.9 MB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001179/0.4104, allocations: 0.7675 MB / 406.7 MB, free: 9.406 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003522/0.4108, allocations: 48.05 kB / 406.8 MB, free: 9.359 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.115e-05/0.4109, allocations: 12 kB / 406.8 MB, free: 9.348 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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 () * 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.0002089/0.4111, allocations: 113.9 kB / 406.9 MB, free: 9.23 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.841e-05/0.4112, allocations: 23.77 kB / 406.9 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001006/0.4113, allocations: 35.39 kB / 406.9 MB, free: 9.172 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.054e-06/0.4113, allocations: 4 kB / 406.9 MB, free: 9.168 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.775e-06/0.4114, allocations: 3.938 kB / 406.9 MB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.4114, allocations: 0 / 406.9 MB, free: 9.164 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002244/0.4136, allocations: 0.9257 MB / 407.9 MB, free: 8.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.593e-06/0.4137, allocations: 0 / 407.9 MB, free: 8.18 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003185/0.414, allocations: 55.91 kB / 407.9 MB, free: 8.125 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000591/0.4146, allocations: 216.7 kB / 408.1 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.407e-05/0.4146, allocations: 0 / 408.1 MB, free: 7.91 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001038/0.4157, allocations: 0.7279 MB / 408.9 MB, free: 7.156 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.251e-06/0.4157, allocations: 4.062 kB / 408.9 MB, free: 7.152 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001528/0.4173, allocations: 0.643 MB / 409.5 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002111/0.4175, allocations: 120.9 kB / 409.6 MB, free: 6.344 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.478e-05/0.4176, allocations: 4 kB / 409.6 MB, free: 6.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003527/0.4179, allocations: 44.02 kB / 409.7 MB, free: 6.297 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/0.4181, allocations: 63.83 kB / 409.7 MB, free: 6.234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.441e-05/0.4182, allocations: 12 kB / 409.7 MB, free: 6.223 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001549/0.4184, allocations: 124.6 kB / 409.9 MB, free: 6.102 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.92e-07/0.4184, allocations: 0 / 409.9 MB, free: 6.102 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005115/0.4189, allocations: 67.94 kB / 409.9 MB, free: 6.035 MB / 346.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) * 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.0002458/0.4192, allocations: 124.3 kB / 410.1 MB, free: 5.906 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0008037/0.42, allocations: 287.7 kB / 410.3 MB, free: 5.625 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.182e-06/0.42, allocations: 3.938 kB / 410.3 MB, free: 5.621 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003788/0.4204, allocations: 143.8 kB / 410.5 MB, free: 5.48 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.4208, allocations: 26.83 kB / 410.5 MB, free: 5.457 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.423, allocations: 0.6806 MB / 411.2 MB, free: 4.746 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004874/0.4235, allocations: 0.7605 MB / 411.9 MB, free: 3.961 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.4236, allocations: 27.42 kB / 412 MB, free: 3.934 MB / 346.7 MB Notification: Performance of SimCode: time 1.745e-06/0.4236, allocations: 0 / 412 MB, free: 3.934 MB / 346.7 MB Notification: Performance of Templates: time 0.007837/0.4314, allocations: 3.686 MB / 415.7 MB, free: 252 kB / 346.7 MB