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.Elementary.ForceAndTorque.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.Elementary.ForceAndTorque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque") Notification: Performance of loadModel(Modelica): time 1.97/1.97, allocations: 194.8 MB / 211.6 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000371/0.0003713, allocations: 8 kB / 263.9 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08096/0.08136, allocations: 44.51 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.ForceAndTorque): time 0.06758/0.149, allocations: 47.5 MB / 355.9 MB, free: 1.395 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02912/0.1782, allocations: 11.28 MB / 367.1 MB, free: 6.078 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008972/0.1872, allocations: 231.5 kB / 367.4 MB, free: 5.852 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007442/0.1947, allocations: 2.415 MB / 369.8 MB, free: 3.426 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.2488/0.4435, allocations: 6.882 MB / 376.7 MB, free: 9.387 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003456/0.447, allocations: 0.6287 MB / 377.3 MB, free: 9.383 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01952/0.4666, allocations: 9.904 MB / 387.2 MB, free: 8.41 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008051/0.4747, allocations: 5.067 MB / 392.3 MB, free: 7.91 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002029/0.4768, allocations: 1.132 MB / 393.4 MB, free: 7.91 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002509/0.4793, allocations: 1.497 MB / 394.9 MB, free: 7.824 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008514/0.4802, allocations: 168.3 kB / 395.1 MB, free: 7.82 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00258/0.4828, allocations: 0.9855 MB / 396 MB, free: 7.598 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002344/0.4852, allocations: 1.789 MB / 397.8 MB, free: 7.238 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00114/0.4864, allocations: 0.9434 MB / 398.8 MB, free: 7.207 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007387/0.4938, allocations: 6.405 MB / 405.2 MB, free: 3.758 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.642e-06/0.4938, allocations: 0 / 405.2 MB, free: 3.758 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.21e-06/0.4939, allocations: 0 / 405.2 MB, free: 3.758 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0002075/0.4941, allocations: 4 kB / 405.2 MB, free: 3.754 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1734 * Number of variables: 1734 Notification: Performance of Generate backend data structure: time 0.01153/0.5056, allocations: 4.881 MB / 410.1 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.5057, allocations: 8.031 kB / 410.1 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03206/0.5377, allocations: 5.135 MB / 415.2 MB, free: 11.99 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008195/0.546, allocations: 3.079 MB / 418.3 MB, free: 9.746 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000309/0.5463, allocations: 270.4 kB / 418.6 MB, free: 9.602 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001383/0.5477, allocations: 347.5 kB / 418.9 MB, free: 9.383 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.028/0.5758, allocations: 11.78 MB / 430.7 MB, free: 232 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001729/0.576, allocations: 40.62 kB / 430.7 MB, free: 216 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001081/0.5771, allocations: 168.8 kB / 430.9 MB, free: 164 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004482/0.5816, allocations: 2.229 MB / 433.1 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02621/0.6078, allocations: 9.978 MB / 443.1 MB, free: 7.375 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07577/0.6836, allocations: 44.31 MB / 487.4 MB, free: 240 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01876/0.7024, allocations: 5.412 MB / 492.8 MB, free: 10.7 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01872/0.7212, allocations: 8.052 MB / 0.4891 GB, free: 2.516 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.199e-05/0.7214, allocations: 58.22 kB / 0.4892 GB, free: 2.453 MB / 394.7 MB Notification: Performance of pre-optimization done (n=216): time 6.879e-06/0.7214, allocations: 0 / 0.4892 GB, free: 2.453 MB / 394.7 MB Notification: Performance of matching and sorting (n=237): time 0.07378/0.7952, allocations: 20.68 MB / 0.5094 GB, free: 13.61 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001339/0.7953, allocations: 180.2 kB / 0.5095 GB, free: 13.39 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01081/0.8062, allocations: 4.846 MB / 0.5143 GB, free: 8.543 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005183/0.8067, allocations: 65.22 kB / 0.5143 GB, free: 8.477 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003735/0.8105, allocations: 3.277 MB / 0.5175 GB, free: 5.219 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001526/0.812, allocations: 0.8846 MB / 0.5184 GB, free: 4.344 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006382/0.8127, allocations: 132 kB / 0.5185 GB, free: 4.215 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0006293/0.8134, allocations: 0.5921 MB / 0.5191 GB, free: 3.613 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006383/0.8198, allocations: 2.566 MB / 0.5216 GB, free: 1.043 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2265/1.046, allocations: 6.444 MB / 0.5279 GB, free: 151.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0084/1.055, allocations: 3.991 MB / 0.5318 GB, free: 150.9 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002085/1.055, allocations: 43.34 kB / 0.5318 GB, free: 150.9 MB / 426.7 MB Notification: Performance of matching and sorting (n=871) (initialization): time 0.02915/1.084, allocations: 9.452 MB / 0.5411 GB, free: 147.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001806/1.084, allocations: 66.58 kB / 0.5411 GB, free: 147.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002122/1.085, allocations: 139 kB / 0.5413 GB, free: 147.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003078/1.088, allocations: 0.9681 MB / 0.5422 GB, free: 147.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006975/1.095, allocations: 1.573 MB / 0.5438 GB, free: 147.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01005/1.105, allocations: 6.274 MB / 0.5499 GB, free: 143.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006392/1.111, allocations: 370.1 kB / 0.5502 GB, free: 143.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001348/1.113, allocations: 409.1 kB / 0.5506 GB, free: 143.8 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 621 * Number of states: 0 () * Number of discrete variables: 39 (fixed2.color[3],fixed2.color[2],fixed2.color[1],revolute1.cylinderColor[3],revolute1.cylinderColor[2],revolute1.cylinderColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],forceAndTorque.connectionLineColor[3],forceAndTorque.connectionLineColor[2],forceAndTorque.connectionLineColor[1],forceAndTorque.torqueColor[3],forceAndTorque.torqueColor[2],forceAndTorque.torqueColor[1],forceAndTorque.forceColor[3],forceAndTorque.forceColor[2],forceAndTorque.forceColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (813): * Single equations (assignments): 807 * Array equations: 5 * 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 {(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005925/1.119, allocations: 2.364 MB / 0.5529 GB, free: 142.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009156/1.12, allocations: 411.3 kB / 0.5533 GB, free: 142.7 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0102/1.13, allocations: 4.393 MB / 0.5576 GB, free: 141 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.344e-05/1.13, allocations: 24.7 kB / 0.5576 GB, free: 141 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-05/1.13, allocations: 8 kB / 0.5576 GB, free: 141 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-05/1.13, allocations: 11.67 kB / 0.5577 GB, free: 141 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03252/1.162, allocations: 10.54 MB / 0.5679 GB, free: 131.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.6e-05/1.163, allocations: 4 kB / 0.5679 GB, free: 131.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004401/1.167, allocations: 427.3 kB / 0.5684 GB, free: 130.7 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004388/1.171, allocations: 0.7676 MB / 0.5691 GB, free: 129.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007212/1.172, allocations: 45.25 kB / 0.5691 GB, free: 129.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01104/1.183, allocations: 5.789 MB / 0.5748 GB, free: 124 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.243e-06/1.183, allocations: 11.94 kB / 0.5748 GB, free: 124 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01377/1.197, allocations: 7.674 MB / 0.5823 GB, free: 116.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002408/1.2, allocations: 0.8387 MB / 0.5831 GB, free: 115.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001065/1.201, allocations: 43.94 kB / 0.5832 GB, free: 115.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002906/1.204, allocations: 147.7 kB / 0.5833 GB, free: 115.4 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006562/1.204, allocations: 149.7 kB / 0.5834 GB, free: 115.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000242/1.205, allocations: 65.56 kB / 0.5835 GB, free: 115.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005872/1.21, allocations: 3.124 MB / 0.5866 GB, free: 112 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.094e-06/1.21, allocations: 0 / 0.5866 GB, free: 112 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007493/1.218, allocations: 1.165 MB / 0.5877 GB, free: 110.9 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute2.phi,revolute2.w,revolute1.phi,revolute1.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 (198): * Single equations (assignments): 194 * 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 {(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009628/1.219, allocations: 207.6 kB / 0.5879 GB, free: 110.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0119/1.231, allocations: 6.232 MB / 0.594 GB, free: 104.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.307e-06/1.231, allocations: 0 / 0.594 GB, free: 104.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004906/1.236, allocations: 2.316 MB / 0.5962 GB, free: 102.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003317/1.239, allocations: 471.8 kB / 0.5967 GB, free: 101.7 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02472/1.264, allocations: 13.5 MB / 0.6099 GB, free: 88.05 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006477/1.271, allocations: 3.75 MB / 0.6135 GB, free: 84.26 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001769/1.272, allocations: 347.4 kB / 0.6139 GB, free: 83.92 MB / 426.7 MB Notification: Performance of SimCode: time 1.791e-06/1.272, allocations: 0 / 0.6139 GB, free: 83.92 MB / 426.7 MB Notification: Performance of Templates: time 0.3829/1.655, allocations: 85.84 MB / 0.6977 GB, free: 144 MB / 426.7 MB