Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive.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.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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.ActuatedDrive") Notification: Performance of loadModel(Modelica): time 1.983/1.983, allocations: 194.8 MB / 212.3 MB, free: 3.008 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004735/0.0004737, allocations: 11.98 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09763/0.09814, allocations: 44.5 MB / 309 MB, free: 1.051 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4589/0.5571, allocations: 92.37 MB / 401.3 MB, free: 14.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003172/0.5575, allocations: 94.09 kB / 401.4 MB, free: 14.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3498/0.9073, allocations: 84.25 MB / 485.7 MB, free: 2.805 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.495e-06/0.9074, allocations: 0 / 485.7 MB, free: 2.805 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003046/0.9077, allocations: 80 kB / 485.8 MB, free: 2.727 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1525 * Number of variables: 1525 Notification: Performance of Generate backend data structure: time 0.02931/0.937, allocations: 4.726 MB / 490.5 MB, free: 13.93 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.058e-05/0.9371, allocations: 8.031 kB / 490.5 MB, free: 13.92 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01809/0.9552, allocations: 2.213 MB / 492.7 MB, free: 11.7 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01931/0.9746, allocations: 4.477 MB / 497.2 MB, free: 7.152 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005267/0.9751, allocations: 324.4 kB / 497.5 MB, free: 6.832 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002944/0.9781, allocations: 427.7 kB / 497.9 MB, free: 6.414 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03845/1.017, allocations: 10.82 MB / 0.4968 GB, free: 10.53 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003015/1.017, allocations: 59.41 kB / 0.4969 GB, free: 10.47 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002127/1.019, allocations: 203.9 kB / 0.4971 GB, free: 10.27 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002834/1.022, allocations: 0.9984 MB / 0.4981 GB, free: 9.266 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03147/1.053, allocations: 9.003 MB / 0.5068 GB, free: 248 kB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4677/1.521, allocations: 48.87 MB / 0.5546 GB, free: 56.13 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02017/1.542, allocations: 3.519 MB / 0.558 GB, free: 55.46 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01368/1.555, allocations: 4.376 MB / 0.5623 GB, free: 54.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.905e-05/1.555, allocations: 49.16 kB / 0.5623 GB, free: 54.11 MB / 410.7 MB Notification: Performance of pre-optimization done (n=139): time 6.322e-06/1.555, allocations: 3.656 kB / 0.5623 GB, free: 54.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=145): time 0.05087/1.606, allocations: 12.43 MB / 0.5745 GB, free: 51.08 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.929e-05/1.606, allocations: 143.6 kB / 0.5746 GB, free: 50.93 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01054/1.617, allocations: 4.146 MB / 0.5787 GB, free: 50.54 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004689/1.617, allocations: 48.61 kB / 0.5787 GB, free: 50.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003222/1.621, allocations: 3.101 MB / 0.5817 GB, free: 48.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001109/1.622, allocations: 0.58 MB / 0.5823 GB, free: 48.49 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008113/1.623, allocations: 119.5 kB / 0.5824 GB, free: 48.49 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004662/1.623, allocations: 0.5614 MB / 0.583 GB, free: 48.16 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005657/1.629, allocations: 1.975 MB / 0.5849 GB, free: 48.15 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008512/1.637, allocations: 5.794 MB / 0.5905 GB, free: 43.21 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008233/1.646, allocations: 3.304 MB / 0.5938 GB, free: 43.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001982/1.646, allocations: 39.53 kB / 0.5938 GB, free: 43.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=768) (initialization): time 0.02423/1.67, allocations: 8.084 MB / 0.6017 GB, free: 41.28 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001332/1.67, allocations: 66.33 kB / 0.6018 GB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002408/1.671, allocations: 138.1 kB / 0.6019 GB, free: 41.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004345/1.675, allocations: 0.9175 MB / 0.6028 GB, free: 41.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00852/1.684, allocations: 1.386 MB / 0.6042 GB, free: 40.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009811/1.693, allocations: 4.879 MB / 0.6089 GB, free: 38.34 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00702/1.701, allocations: 337.2 kB / 0.6092 GB, free: 38.22 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001468/1.702, allocations: 373.6 kB / 0.6096 GB, free: 38.18 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 619 * 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 (729): * Single equations (assignments): 725 * 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.006443/1.709, allocations: 2.088 MB / 0.6116 GB, free: 37.18 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000983/1.71, allocations: 346 kB / 0.612 GB, free: 36.99 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01023/1.72, allocations: 2.875 MB / 0.6148 GB, free: 36 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.386e-05/1.72, allocations: 16.08 kB / 0.6148 GB, free: 36 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.393e-05/1.72, allocations: 7.969 kB / 0.6148 GB, free: 36 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.183e-05/1.72, allocations: 9.578 kB / 0.6148 GB, free: 36 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0237/1.744, allocations: 7.017 MB / 0.6217 GB, free: 33.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.156e-05/1.744, allocations: 0 / 0.6217 GB, free: 33.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002521/1.746, allocations: 246.8 kB / 0.6219 GB, free: 33.49 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003879/1.75, allocations: 0.6947 MB / 0.6226 GB, free: 33.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004299/1.751, allocations: 28.61 kB / 0.6226 GB, free: 33.35 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008965/1.76, allocations: 4.46 MB / 0.627 GB, free: 30.83 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/1.76, allocations: 3.031 kB / 0.627 GB, free: 30.83 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02003/1.78, allocations: 5.11 MB / 0.6319 GB, free: 27.91 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003587/1.783, allocations: 0.6142 MB / 0.6325 GB, free: 27.32 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001925/1.785, allocations: 31.5 kB / 0.6326 GB, free: 27.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006087/1.792, allocations: 87 kB / 0.6327 GB, free: 27.24 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001196/1.793, allocations: 84.11 kB / 0.6327 GB, free: 27.19 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002783/1.793, allocations: 36 kB / 0.6328 GB, free: 27.16 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01098/1.804, allocations: 2.594 MB / 0.6353 GB, free: 25 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.643e-06/1.804, allocations: 3.656 kB / 0.6353 GB, free: 25 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.01394/1.818, allocations: 0.9593 MB / 0.6362 GB, free: 24.05 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (114): * Single equations (assignments): 110 * 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.001001/1.819, allocations: 159.4 kB / 0.6364 GB, free: 23.91 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01618/1.835, allocations: 4.752 MB / 0.641 GB, free: 19.73 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.028e-05/1.836, allocations: 4 kB / 0.641 GB, free: 19.73 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005448/1.841, allocations: 1.367 MB / 0.6424 GB, free: 18.52 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004877/1.846, allocations: 392.2 kB / 0.6427 GB, free: 18.18 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04232/1.888, allocations: 10.9 MB / 0.6534 GB, free: 8.258 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009725/1.898, allocations: 3.311 MB / 0.6566 GB, free: 5.734 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001651/1.9, allocations: 289.7 kB / 0.6569 GB, free: 5.465 MB / 410.7 MB Notification: Performance of SimCode: time 1.894e-06/1.9, allocations: 0 / 0.6569 GB, free: 5.465 MB / 410.7 MB Notification: Performance of Templates: time 0.4619/2.362, allocations: 71.66 MB / 0.7269 GB, free: 82.44 MB / 426.7 MB