Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadModel(Modelica): time 1.565/1.565, allocations: 171.2 MB / 186.7 MB, free: 1.031 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003497/0.0003499, allocations: 8 kB / 233.2 MB, free: 3.047 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06906/0.06943, allocations: 38.78 MB / 271.9 MB, free: 12.19 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive): time 0.2353/0.3048, allocations: 41.13 MB / 313.1 MB, free: 7.594 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02309/0.3279, allocations: 9.797 MB / 322.9 MB, free: 4.699 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009535/0.3375, allocations: 201.2 kB / 323.1 MB, free: 4.668 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006117/0.3437, allocations: 2.063 MB / 325.1 MB, free: 3.477 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02018/0.3639, allocations: 5.92 MB / 331 MB, free: 128 kB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003007/0.3669, allocations: 0.5241 MB / 331.6 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004739/0.3717, allocations: 2.148 MB / 333.7 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007973/0.3797, allocations: 4.274 MB / 338 MB, free: 11.28 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002413/0.3822, allocations: 1.004 MB / 339 MB, free: 10.27 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00287/0.3851, allocations: 1.386 MB / 340.4 MB, free: 8.879 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007363/0.3859, allocations: 140 kB / 340.5 MB, free: 8.742 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002437/0.3884, allocations: 0.8114 MB / 341.3 MB, free: 7.93 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002487/0.3909, allocations: 1.547 MB / 342.9 MB, free: 6.379 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001355/0.3923, allocations: 0.8349 MB / 343.7 MB, free: 5.535 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008652/0.401, allocations: 5.542 MB / 349.2 MB, free: 15.98 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.454e-06/0.401, allocations: 0 / 349.2 MB, free: 15.98 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.174e-06/0.401, allocations: 0 / 349.2 MB, free: 15.98 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.00013/0.4012, allocations: 0 / 349.2 MB, free: 15.98 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.01718/0.4184, allocations: 4.963 MB / 354.2 MB, free: 10.95 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.256e-05/0.4184, allocations: 11.97 kB / 354.2 MB, free: 10.94 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0103/0.4287, allocations: 2.225 MB / 356.4 MB, free: 8.703 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006188/0.435, allocations: 2.502 MB / 358.9 MB, free: 6.141 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002989/0.4353, allocations: 234 kB / 359.2 MB, free: 5.91 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001203/0.4365, allocations: 315.8 kB / 359.5 MB, free: 5.602 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02479/0.4613, allocations: 10.35 MB / 369.8 MB, free: 10.56 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000172/0.4616, allocations: 43.69 kB / 369.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009098/0.4625, allocations: 151.8 kB / 370 MB, free: 10.37 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004003/0.4665, allocations: 1.865 MB / 371.9 MB, free: 8.504 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02441/0.491, allocations: 8.903 MB / 380.8 MB, free: 15.58 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06625/0.5573, allocations: 39.39 MB / 420.2 MB, free: 7.062 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01383/0.5711, allocations: 3.579 MB / 423.8 MB, free: 3.332 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009595/0.5721, allocations: 380.1 kB / 424.1 MB, free: 2.906 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.415e-05/0.5722, allocations: 47.5 kB / 424.2 MB, free: 2.852 MB / 346.7 MB Notification: Performance of pre-optimization done (n=148): time 5.795e-06/0.5722, allocations: 0 / 424.2 MB, free: 2.852 MB / 346.7 MB Notification: Performance of matching and sorting (n=154): time 0.04993/0.6222, allocations: 13.68 MB / 437.9 MB, free: 5.008 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001076/0.6223, allocations: 145.5 kB / 438 MB, free: 4.836 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008252/0.6306, allocations: 4.26 MB / 442.3 MB, free: 0.5508 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002884/0.6309, allocations: 41.7 kB / 442.3 MB, free: 0.5039 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.188/0.819, allocations: 3.078 MB / 445.4 MB, free: 125.6 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008554/0.8199, allocations: 0.616 MB / 446 MB, free: 125.2 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004785/0.8204, allocations: 117.2 kB / 446.1 MB, free: 125.2 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0004276/0.8208, allocations: 0.5615 MB / 446.7 MB, free: 124.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004613/0.8254, allocations: 2.01 MB / 448.7 MB, free: 124.6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006476/0.8319, allocations: 5.821 MB / 454.5 MB, free: 118.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006696/0.8387, allocations: 3.341 MB / 457.8 MB, free: 117.6 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001947/0.8389, allocations: 38.81 kB / 457.9 MB, free: 117.6 MB / 362.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.01958/0.8585, allocations: 8.17 MB / 466 MB, free: 114.6 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001472/0.8587, allocations: 63 kB / 466.1 MB, free: 114.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001718/0.8589, allocations: 137.8 kB / 466.2 MB, free: 114.6 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003224/0.8621, allocations: 0.9313 MB / 467.2 MB, free: 114.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005555/0.8677, allocations: 1.373 MB / 468.5 MB, free: 114.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008108/0.8759, allocations: 4.97 MB / 473.5 MB, free: 111.6 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00586/0.8818, allocations: 328.5 kB / 473.8 MB, free: 111.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001023/0.8828, allocations: 376.1 kB / 474.2 MB, free: 111.2 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 617 * Number of states: 0 () * Number of discrete variables: 33 (rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[1],fixed.color[3],fixed.color[2],fixed.color[1],torque.connectionLineColor[3],torque.connectionLineColor[2],torque.connectionLineColor[1],torque.torqueColor[3],torque.torqueColor[2],torque.torqueColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],bodyCylinder.color[3],bodyCylinder.color[2],bodyCylinder.color[1],bodyCylinder.body.sphereColor[3],bodyCylinder.body.sphereColor[2],bodyCylinder.body.sphereColor[1],bodyCylinder.frameTranslation.color[3],bodyCylinder.frameTranslation.color[2],bodyCylinder.frameTranslation.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (733): * Single equations (assignments): 729 * Array equations: 3 * 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: 1 {(3,77.8%) 13} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004132/0.887, allocations: 2.101 MB / 476.3 MB, free: 109.4 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006566/0.8877, allocations: 343.5 kB / 476.6 MB, free: 109 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006461/0.8941, allocations: 2.938 MB / 479.6 MB, free: 106.4 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.193e-05/0.8942, allocations: 16 kB / 479.6 MB, free: 106.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.178e-05/0.8943, allocations: 11.89 kB / 479.6 MB, free: 106.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.293e-05/0.8943, allocations: 3.984 kB / 479.6 MB, free: 106.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01556/0.9099, allocations: 7.507 MB / 487.1 MB, free: 98.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.491e-05/0.9099, allocations: 0 / 487.1 MB, free: 98.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001472/0.9114, allocations: 251.1 kB / 487.4 MB, free: 98.57 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002521/0.914, allocations: 0.7108 MB / 488.1 MB, free: 97.85 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002228/0.9142, allocations: 28.92 kB / 488.1 MB, free: 97.82 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006855/0.9211, allocations: 4.518 MB / 492.6 MB, free: 93.19 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.9211, allocations: 0 / 492.6 MB, free: 93.19 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009543/0.9307, allocations: 5.343 MB / 498 MB, free: 87.81 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001614/0.9323, allocations: 0.6253 MB / 498.6 MB, free: 87.16 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000709/0.9331, allocations: 24 kB / 498.6 MB, free: 87.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00184/0.9349, allocations: 85.45 kB / 498.7 MB, free: 87.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000317/0.9353, allocations: 100.8 kB / 498.8 MB, free: 86.96 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001515/0.9354, allocations: 40 kB / 498.8 MB, free: 86.92 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004402/0.9399, allocations: 2.68 MB / 0.4898 GB, free: 84.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.066e-06/0.9399, allocations: 0 / 0.4898 GB, free: 84.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005677/0.9456, allocations: 0.9812 MB / 0.4907 GB, free: 83.25 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 4 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (123): * Single equations (assignments): 119 * Array equations: 3 * 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: 1 {(1,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004711/0.9461, allocations: 161.7 kB / 0.4909 GB, free: 83.09 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.008561/0.9547, allocations: 4.856 MB / 0.4956 GB, free: 78.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.725e-06/0.9547, allocations: 256 / 0.4956 GB, free: 78.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002425/0.9571, allocations: 1.437 MB / 0.497 GB, free: 76.8 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002188/0.9594, allocations: 403.5 kB / 0.4974 GB, free: 76.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01773/0.9771, allocations: 10.99 MB / 0.5081 GB, free: 65.38 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004483/0.9816, allocations: 3.327 MB / 0.5114 GB, free: 62.02 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001159/0.9828, allocations: 279.4 kB / 0.5116 GB, free: 61.75 MB / 362.7 MB Notification: Performance of SimCode: time 1.726e-06/0.9829, allocations: 0 / 0.5116 GB, free: 61.75 MB / 362.7 MB Notification: Performance of Templates: time 0.2977/1.281, allocations: 72.4 MB / 0.5823 GB, free: 96.98 MB / 362.7 MB