Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive") Notification: Performance of loadModel(Modelica): time 1.9/1.9, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007513/0.0007517, allocations: 12 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1176, allocations: 44.5 MB / 308.4 MB, free: 1.023 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Rotational3DEffects.MovingActuatedDrive): time 0.07381/0.1915, allocations: 54.22 MB / 362.6 MB, free: 10.66 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.2903/0.4818, allocations: 12.47 MB / 375 MB, free: 7.297 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01008/0.492, allocations: 264.8 kB / 375.3 MB, free: 7.297 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008149/0.5002, allocations: 2.757 MB / 378.1 MB, free: 7.293 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02478/0.525, allocations: 7.713 MB / 385.8 MB, free: 6.711 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003948/0.529, allocations: 0.6278 MB / 386.4 MB, free: 6.551 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005231/0.5343, allocations: 2.532 MB / 388.9 MB, free: 6.133 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009587/0.5439, allocations: 5.77 MB / 394.7 MB, free: 4.496 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002494/0.5464, allocations: 1.211 MB / 395.9 MB, free: 4.289 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002902/0.5494, allocations: 1.63 MB / 397.5 MB, free: 3.934 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008621/0.5503, allocations: 173.9 kB / 397.7 MB, free: 3.934 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002387/0.5527, allocations: 0.8426 MB / 398.6 MB, free: 3.742 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002227/0.555, allocations: 1.841 MB / 400.4 MB, free: 3.375 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001269/0.5563, allocations: 0.9993 MB / 401.4 MB, free: 3.344 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009723/0.566, allocations: 6.754 MB / 408.2 MB, free: 0 / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.215e-06/0.566, allocations: 0 / 408.2 MB, free: 0 / 314.7 MB Notification: Performance of FrontEnd: time 3.138e-06/0.5661, allocations: 64 / 408.2 MB, free: 0 / 314.7 MB Notification: Performance of Transformations before backend: time 0.000249/0.5663, allocations: 4.047 kB / 408.2 MB, free: 15.99 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1848 * Number of variables: 1848 Notification: Performance of Generate backend data structure: time 0.0207/0.5871, allocations: 6.078 MB / 414.2 MB, free: 12.51 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.5871, allocations: 9.438 kB / 414.2 MB, free: 12.51 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01078/0.5979, allocations: 2.337 MB / 416.6 MB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007347/0.6053, allocations: 2.906 MB / 419.5 MB, free: 8.465 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003603/0.6057, allocations: 302.7 kB / 419.8 MB, free: 8.301 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001766/0.6075, allocations: 410.8 kB / 420.2 MB, free: 8.039 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03069/0.6382, allocations: 12.6 MB / 432.8 MB, free: 14.24 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001834/0.6384, allocations: 52.06 kB / 432.8 MB, free: 14.21 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008255/0.6393, allocations: 194.7 kB / 433 MB, free: 14.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004309/0.6436, allocations: 2.145 MB / 435.2 MB, free: 12.39 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02966/0.6733, allocations: 11.14 MB / 446.3 MB, free: 4.578 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08336/0.7567, allocations: 47.54 MB / 493.9 MB, free: 8.047 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02044/0.7772, allocations: 5.312 MB / 499.2 MB, free: 2.59 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001053/0.7783, allocations: 394.6 kB / 499.6 MB, free: 2.164 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.636e-05/0.7784, allocations: 54.5 kB / 499.6 MB, free: 2.105 MB / 394.7 MB Notification: Performance of pre-optimization done (n=221): time 7.067e-06/0.7784, allocations: 0 / 499.6 MB, free: 2.105 MB / 394.7 MB Notification: Performance of matching and sorting (n=252): time 0.09781/0.8762, allocations: 26.52 MB / 0.5138 GB, free: 7.453 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.8764, allocations: 158.5 kB / 0.5139 GB, free: 7.27 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01014/0.8865, allocations: 4.693 MB / 0.5185 GB, free: 2.566 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006293/0.8872, allocations: 61.7 kB / 0.5186 GB, free: 2.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2211/1.108, allocations: 3.454 MB / 0.522 GB, free: 156 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001587/1.11, allocations: 0.9483 MB / 0.5229 GB, free: 155.6 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008216/1.111, allocations: 138.8 kB / 0.523 GB, free: 155.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006203/1.112, allocations: 0.6022 MB / 0.5236 GB, free: 155.3 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007754/1.119, allocations: 3.057 MB / 0.5266 GB, free: 155.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009687/1.129, allocations: 7.108 MB / 0.5335 GB, free: 149 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009176/1.138, allocations: 4.545 MB / 0.538 GB, free: 147.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002192/1.139, allocations: 43.28 kB / 0.538 GB, free: 147.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=907) (initialization): time 0.0262/1.165, allocations: 10.84 MB / 0.5486 GB, free: 143.4 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001505/1.165, allocations: 66.69 kB / 0.5487 GB, free: 143.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001918/1.165, allocations: 140.2 kB / 0.5488 GB, free: 143.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003919/1.169, allocations: 1.147 MB / 0.5499 GB, free: 143.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008211/1.177, allocations: 1.732 MB / 0.5516 GB, free: 143 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0103/1.188, allocations: 6.117 MB / 0.5576 GB, free: 139.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007354/1.195, allocations: 424.2 kB / 0.558 GB, free: 139.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001576/1.197, allocations: 433.5 kB / 0.5584 GB, free: 139.1 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 648 * 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 (868): * Single equations (assignments): 864 * 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.005727/1.202, allocations: 2.434 MB / 0.5608 GB, free: 136.9 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009306/1.203, allocations: 418.6 kB / 0.5612 GB, free: 136.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01274/1.216, allocations: 5.633 MB / 0.5667 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.882e-05/1.216, allocations: 24 kB / 0.5667 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.585e-05/1.216, allocations: 4 kB / 0.5667 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.743e-05/1.216, allocations: 15.95 kB / 0.5667 GB, free: 130.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02765/1.244, allocations: 12.24 MB / 0.5787 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-05/1.244, allocations: 4 kB / 0.5787 GB, free: 118.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003604/1.248, allocations: 0.504 MB / 0.5792 GB, free: 118 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003562/1.251, allocations: 0.9467 MB / 0.5801 GB, free: 117 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006635/1.252, allocations: 47.98 kB / 0.5801 GB, free: 117 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008821/1.261, allocations: 5.833 MB / 0.5858 GB, free: 111 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.389e-06/1.261, allocations: 4 kB / 0.5858 GB, free: 111 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01838/1.279, allocations: 9.55 MB / 0.5952 GB, free: 101.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002678/1.282, allocations: 0.9133 MB / 0.5961 GB, free: 100.4 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001212/1.283, allocations: 44.55 kB / 0.5961 GB, free: 100.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003109/1.286, allocations: 180.9 kB / 0.5963 GB, free: 100.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007787/1.287, allocations: 163.8 kB / 0.5964 GB, free: 100 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003284/1.288, allocations: 67.38 kB / 0.5965 GB, free: 99.96 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006027/1.294, allocations: 2.953 MB / 0.5994 GB, free: 97.01 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.399e-06/1.294, allocations: 0 / 0.5994 GB, free: 97.01 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007781/1.301, allocations: 1.281 MB / 0.6006 GB, free: 95.74 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (227): * Single equations (assignments): 223 * 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.0009739/1.302, allocations: 200.1 kB / 0.6008 GB, free: 95.54 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0142/1.317, allocations: 7.31 MB / 0.608 GB, free: 88.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.993e-06/1.317, allocations: 0 / 0.608 GB, free: 88.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005486/1.322, allocations: 2.748 MB / 0.6106 GB, free: 85.49 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003129/1.325, allocations: 459.8 kB / 0.6111 GB, free: 85.04 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02669/1.352, allocations: 14.66 MB / 0.6254 GB, free: 70.31 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006905/1.359, allocations: 3.91 MB / 0.6292 GB, free: 66.36 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002332/1.361, allocations: 367.3 kB / 0.6296 GB, free: 66 MB / 426.7 MB Notification: Performance of SimCode: time 2.333e-06/1.361, allocations: 0 / 0.6296 GB, free: 66 MB / 426.7 MB Notification: Performance of Templates: time 0.3597/1.721, allocations: 91.89 MB / 0.7193 GB, free: 123.6 MB / 426.7 MB