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.MovingActuatedDrive.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) 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.555/1.555, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.256e-05/2.262e-05, allocations: 7.938 kB / 222.5 MB, free: 8.684 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06822/0.06826, allocations: 38.76 MB / 261.3 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3047/0.373, allocations: 86.62 MB / 347.9 MB, free: 2.031 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002505/0.3733, allocations: 80.77 kB / 348 MB, free: 1.992 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5426/0.9159, allocations: 94.99 MB / 443 MB, free: 77.31 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.333e-06/0.916, allocations: 0 / 443 MB, free: 77.31 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002423/0.9162, allocations: 103.6 kB / 443.1 MB, free: 77.31 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.0222/0.9385, allocations: 5.493 MB / 448.6 MB, free: 75.27 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.052e-05/0.9385, allocations: 11.38 kB / 448.6 MB, free: 75.27 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01339/0.9519, allocations: 2.316 MB / 450.9 MB, free: 74.92 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01452/0.9665, allocations: 4.916 MB / 455.8 MB, free: 74.25 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002822/0.9668, allocations: 167.8 kB / 456 MB, free: 74.25 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002097/0.9689, allocations: 307.2 kB / 456.3 MB, free: 74.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01584/0.9848, allocations: 7.747 MB / 464 MB, free: 73.1 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02383/1.009, allocations: 11.53 MB / 475.5 MB, free: 66.99 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002414/1.009, allocations: 71.17 kB / 475.6 MB, free: 66.95 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001419/1.01, allocations: 34.03 kB / 475.6 MB, free: 66.95 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002086/1.012, allocations: 1.202 MB / 476.9 MB, free: 66.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06853/1.081, allocations: 54.84 MB / 0.5192 GB, free: 15.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006049/1.087, allocations: 4.362 MB / 0.5235 GB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004464/1.092, allocations: 3.107 MB / 0.5265 GB, free: 7.777 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001186/1.093, allocations: 0.6864 MB / 0.5272 GB, free: 6.992 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.646e-05/1.093, allocations: 59.81 kB / 0.5273 GB, free: 6.926 MB / 346.7 MB Notification: Performance of pre-optimization done (n=221): time 6.457e-06/1.093, allocations: 0 / 0.5273 GB, free: 6.926 MB / 346.7 MB Notification: Performance of matching and sorting (n=252): time 0.2609/1.354, allocations: 22.29 MB / 0.549 GB, free: 67.94 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/1.354, allocations: 155.4 kB / 0.5492 GB, free: 67.78 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00719/1.361, allocations: 3.367 MB / 0.5525 GB, free: 67.41 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006192/1.362, allocations: 29.67 kB / 0.5525 GB, free: 67.38 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002569/1.364, allocations: 3.599 MB / 0.556 GB, free: 65.23 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001412/1.366, allocations: 0.9221 MB / 0.5569 GB, free: 64.69 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007605/1.367, allocations: 3.812 kB / 0.5569 GB, free: 64.69 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000482/1.367, allocations: 0.6182 MB / 0.5575 GB, free: 64.36 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005524/1.373, allocations: 2.877 MB / 0.5603 GB, free: 64.34 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007837/1.381, allocations: 7.049 MB / 0.5672 GB, free: 58.41 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008328/1.389, allocations: 4.447 MB / 0.5715 GB, free: 57.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001602/1.389, allocations: 39.78 kB / 0.5716 GB, free: 57.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=939) (initialization): time 0.02352/1.413, allocations: 9.952 MB / 0.5813 GB, free: 54.04 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001193/1.413, allocations: 71.69 kB / 0.5814 GB, free: 54.04 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001572/1.413, allocations: 148.1 kB / 0.5815 GB, free: 54.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003822/1.417, allocations: 1.137 MB / 0.5826 GB, free: 53.86 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008206/1.425, allocations: 1.788 MB / 0.5844 GB, free: 53.66 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008908/1.434, allocations: 5.637 MB / 0.5899 GB, free: 50.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007717/1.442, allocations: 292.7 kB / 0.5901 GB, free: 50.77 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001554/1.443, allocations: 452.1 kB / 0.5906 GB, free: 50.71 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 680 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (900): * Single equations (assignments): 896 * 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.001655/1.445, allocations: 486 kB / 0.591 GB, free: 50.32 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009659/1.446, allocations: 377.4 kB / 0.5914 GB, free: 50.11 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01156/1.458, allocations: 5.292 MB / 0.5966 GB, free: 48.26 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.669e-05/1.458, allocations: 26.14 kB / 0.5966 GB, free: 48.26 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.74e-05/1.458, allocations: 7.344 kB / 0.5966 GB, free: 48.26 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.5e-05/1.458, allocations: 9.047 kB / 0.5966 GB, free: 48.26 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02545/1.483, allocations: 11.01 MB / 0.6074 GB, free: 42.49 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-05/1.483, allocations: 0 / 0.6074 GB, free: 42.49 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003346/1.487, allocations: 0.5084 MB / 0.6079 GB, free: 42.09 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003123/1.49, allocations: 0.9238 MB / 0.6088 GB, free: 41.46 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005459/1.49, allocations: 14.86 kB / 0.6088 GB, free: 41.45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00796/1.498, allocations: 5.332 MB / 0.614 GB, free: 36.76 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.149e-05/1.498, allocations: 12.56 kB / 0.614 GB, free: 36.75 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01651/1.515, allocations: 9.438 MB / 0.6232 GB, free: 28.4 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002515/1.518, allocations: 0.8517 MB / 0.624 GB, free: 27.61 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009233/1.518, allocations: 11.52 kB / 0.6241 GB, free: 27.6 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002785/1.521, allocations: 140.2 kB / 0.6242 GB, free: 27.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005696/1.522, allocations: 155.8 kB / 0.6243 GB, free: 27.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002984/1.522, allocations: 71.94 kB / 0.6244 GB, free: 27.36 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004074/1.526, allocations: 2.232 MB / 0.6266 GB, free: 25.4 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.456e-06/1.526, allocations: 0 / 0.6266 GB, free: 25.4 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.008036/1.534, allocations: 1.082 MB / 0.6276 GB, free: 24.32 MB / 346.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 () * 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.0007503/1.535, allocations: 163.3 kB / 0.6278 GB, free: 24.17 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01222/1.547, allocations: 6.877 MB / 0.6345 GB, free: 18.03 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.042e-06/1.547, allocations: 0 / 0.6345 GB, free: 18.03 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004802/1.552, allocations: 2.625 MB / 0.6371 GB, free: 15.69 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002708/1.555, allocations: 349.6 kB / 0.6374 GB, free: 15.39 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02366/1.579, allocations: 10.48 MB / 0.6476 GB, free: 5.262 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007319/1.586, allocations: 3.901 MB / 0.6515 GB, free: 1.344 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002119/1.588, allocations: 353.3 kB / 0.6518 GB, free: 1.004 MB / 346.7 MB Notification: Performance of SimCode: time 1.741e-06/1.588, allocations: 0 / 0.6518 GB, free: 1.004 MB / 346.7 MB Notification: Performance of Templates: time 0.3434/1.932, allocations: 88.1 MB / 0.7378 GB, free: 45.61 MB / 362.7 MB