Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|position1.w|position2.w|r1.phi|r2.phi|revolute.phi|revolute.w|rotor1D.phi|rotor1D.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") Notification: Performance of loadModel(Modelica): time 1.615/1.615, allocations: 171.1 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004685/0.0004685, allocations: 8 kB / 233.8 MB, free: 0.9766 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08541/0.0859, allocations: 38.77 MB / 272.6 MB, free: 10.13 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3778/0.4638, allocations: 87.34 MB / 359.9 MB, free: 11.76 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003623/0.4642, allocations: 95.94 kB / 360 MB, free: 11.66 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6383/1.102, allocations: 97.42 MB / 457.4 MB, free: 78.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.085e-06/1.103, allocations: 4 kB / 457.4 MB, free: 78.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003025/1.103, allocations: 100.8 kB / 457.5 MB, free: 78.81 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: 1847 * Number of variables: 1847 Notification: Performance of Generate backend data structure: time 0.03177/1.135, allocations: 5.766 MB / 463.3 MB, free: 76.31 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/1.135, allocations: 15.14 kB / 463.3 MB, free: 76.3 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0176/1.152, allocations: 2.32 MB / 465.6 MB, free: 75.93 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.018/1.17, allocations: 4.935 MB / 470.5 MB, free: 74.05 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000458/1.171, allocations: 390.7 kB / 470.9 MB, free: 73.9 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003024/1.174, allocations: 0.5175 MB / 471.4 MB, free: 73.75 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0401/1.214, allocations: 13.05 MB / 484.5 MB, free: 65.46 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003106/1.214, allocations: 63.41 kB / 484.6 MB, free: 65.39 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002508/1.217, allocations: 259 kB / 484.8 MB, free: 65.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002674/1.22, allocations: 1.188 MB / 486 MB, free: 63.98 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03511/1.255, allocations: 11.22 MB / 497.2 MB, free: 52.75 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3776/1.632, allocations: 57.05 MB / 0.5413 GB, free: 34.97 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02734/1.66, allocations: 5.196 MB / 0.5464 GB, free: 34.31 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001882/1.662, allocations: 0.6858 MB / 0.547 GB, free: 33.75 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.253e-05/1.662, allocations: 58.56 kB / 0.5471 GB, free: 33.71 MB / 346.7 MB Notification: Performance of pre-optimization done (n=221): time 5.881e-06/1.662, allocations: 0 / 0.5471 GB, free: 33.71 MB / 346.7 MB Notification: Performance of matching and sorting (n=252): time 0.1245/1.786, allocations: 26.27 MB / 0.5727 GB, free: 30.14 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.51e-05/1.787, allocations: 156 kB / 0.5729 GB, free: 29.98 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01132/1.798, allocations: 4.58 MB / 0.5774 GB, free: 28.9 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0008511/1.799, allocations: 62.48 kB / 0.5774 GB, free: 28.84 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003293/1.802, allocations: 3.476 MB / 0.5808 GB, free: 26.12 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001804/1.804, allocations: 0.9468 MB / 0.5817 GB, free: 25.43 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001106/1.805, allocations: 138.2 kB / 0.5819 GB, free: 25.32 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005716/1.806, allocations: 0.6041 MB / 0.5825 GB, free: 24.89 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008411/1.814, allocations: 3.048 MB / 0.5854 GB, free: 23.88 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01083/1.825, allocations: 7.106 MB / 0.5924 GB, free: 17.48 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01069/1.836, allocations: 4.547 MB / 0.5968 GB, free: 15.93 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001583/1.836, allocations: 46.38 kB / 0.5969 GB, free: 15.93 MB / 346.7 MB Notification: Performance of matching and sorting (n=909) (initialization): time 0.03026/1.866, allocations: 10.81 MB / 0.6074 GB, free: 12.59 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001139/1.866, allocations: 72.45 kB / 0.6075 GB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002298/1.867, allocations: 145.4 kB / 0.6076 GB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004944/1.872, allocations: 1.138 MB / 0.6087 GB, free: 11.54 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01169/1.883, allocations: 1.736 MB / 0.6104 GB, free: 10.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01161/1.895, allocations: 6.028 MB / 0.6163 GB, free: 4.777 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008857/1.904, allocations: 433.3 kB / 0.6167 GB, free: 4.418 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001877/1.906, allocations: 437.4 kB / 0.6172 GB, free: 4.016 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 650 * Number of states: 0 () * Number of discrete variables: 39 (fixed.color[3],fixed.color[2],fixed.color[1],r2.cylinderColor[3],r2.cylinderColor[2],r2.cylinderColor[1],r1.cylinderColor[3],r1.cylinderColor[2],r1.cylinderColor[1],rotor1D.cylinderColor[3],rotor1D.cylinderColor[2],rotor1D.cylinderColor[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 (870): * Single equations (assignments): 866 * 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.007575/1.913, allocations: 2.437 MB / 0.6195 GB, free: 1.867 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001215/1.915, allocations: 414.7 kB / 0.6199 GB, free: 1.457 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02332/1.938, allocations: 5.868 MB / 0.6257 GB, free: 13.71 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.14e-05/1.938, allocations: 30.81 kB / 0.6257 GB, free: 13.69 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.718e-05/1.938, allocations: 4 kB / 0.6257 GB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.614e-05/1.938, allocations: 11.48 kB / 0.6257 GB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0415/1.98, allocations: 12.19 MB / 0.6376 GB, free: 2.066 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.239e-05/1.98, allocations: 4 kB / 0.6376 GB, free: 2.062 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005607/1.985, allocations: 0.5094 MB / 0.6381 GB, free: 1.555 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004766/1.99, allocations: 0.9379 MB / 0.639 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007859/1.991, allocations: 40 kB / 0.6391 GB, free: 0.5742 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01279/2.004, allocations: 5.754 MB / 0.6447 GB, free: 10.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.707e-06/2.004, allocations: 13.81 kB / 0.6447 GB, free: 10.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02669/2.031, allocations: 9.461 MB / 0.6539 GB, free: 1.121 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003762/2.034, allocations: 0.9056 MB / 0.6548 GB, free: 196 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001698/2.036, allocations: 44 kB / 0.6549 GB, free: 152 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004655/2.041, allocations: 181.2 kB / 0.655 GB, free: 15.97 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009744/2.042, allocations: 153.7 kB / 0.6552 GB, free: 15.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000349/2.042, allocations: 64 kB / 0.6552 GB, free: 15.76 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.008284/2.051, allocations: 2.876 MB / 0.6581 GB, free: 12.89 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.52e-07/2.051, allocations: 0 / 0.6581 GB, free: 12.89 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.009192/2.06, allocations: 1.269 MB / 0.6593 GB, free: 11.62 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 8 (revolute.phi,revolute.w,rotor1D.phi,rotor1D.w,position1.phi,position1.w,position2.phi,position2.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 (225): * Single equations (assignments): 221 * 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 Backend phase and start with SimCode phase: time 0.001144/2.061, allocations: 192.7 kB / 0.6595 GB, free: 11.44 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.02078/2.082, allocations: 7.295 MB / 0.6666 GB, free: 4.156 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.316e-06/2.082, allocations: 0 / 0.6666 GB, free: 4.156 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.008105/2.09, allocations: 2.742 MB / 0.6693 GB, free: 1.41 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004868/2.095, allocations: 462.3 kB / 0.6697 GB, free: 0.9727 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04293/2.138, allocations: 14.66 MB / 0.684 GB, free: 2.289 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2759/2.414, allocations: 3.895 MB / 0.6878 GB, free: 125 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003067/2.417, allocations: 368.3 kB / 0.6882 GB, free: 125 MB / 410.7 MB Notification: Performance of SimCode: time 1.974e-06/2.417, allocations: 0 / 0.6882 GB, free: 125 MB / 410.7 MB Notification: Performance of Templates: time 0.1782/2.595, allocations: 91.27 MB / 0.7773 GB, free: 76.07 MB / 410.7 MB