Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque.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) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.Torque,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Revolute1.phi|Revolute1.w|Revolute2.phi|Revolute2.w|Revolute3.phi|Revolute3.w|Revolute4.phi|Revolute4.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.Torque") Notification: Performance of loadModel(ModelicaTest): time 2.237/2.237, allocations: 234.9 MB / 250.5 MB, free: 9.574 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004271/0.0004271, allocations: 12 kB / 314.4 MB, free: 9.598 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2916/0.2921, allocations: 54.86 MB / 369.3 MB, free: 12.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1536/0.4457, allocations: 101.5 MB / 470.8 MB, free: 7.09 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/0.446, allocations: 75.97 kB / 470.8 MB, free: 7.016 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7221/1.168, allocations: 131.9 MB / 0.5886 GB, free: 44.16 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.831e-06/1.168, allocations: 0 / 0.5886 GB, free: 44.16 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003493/1.169, allocations: 131.9 kB / 0.5887 GB, free: 44.03 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2388 * Number of variables: 2388 Notification: Performance of Generate backend data structure: time 0.0217/1.19, allocations: 7.184 MB / 0.5957 GB, free: 36.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.028e-05/1.19, allocations: 8.031 kB / 0.5958 GB, free: 36.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03657/1.227, allocations: 7.143 MB / 0.6027 GB, free: 29.59 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02013/1.247, allocations: 7.47 MB / 0.61 GB, free: 22.03 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005199/1.248, allocations: 0.5014 MB / 0.6105 GB, free: 21.53 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002442/1.25, allocations: 0.6644 MB / 0.6112 GB, free: 20.86 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03544/1.286, allocations: 16.2 MB / 0.627 GB, free: 3.164 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000326/1.286, allocations: 91.12 kB / 0.6271 GB, free: 3.074 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001937/1.288, allocations: 327.8 kB / 0.6274 GB, free: 2.754 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002351/1.29, allocations: 1.549 MB / 0.6289 GB, free: 1.195 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03526/1.326, allocations: 13.14 MB / 0.6417 GB, free: 4.012 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7294/2.055, allocations: 72.97 MB / 0.713 GB, free: 45.91 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02091/2.076, allocations: 6.516 MB / 0.7193 GB, free: 45.21 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01932/2.095, allocations: 9.282 MB / 0.7284 GB, free: 43.54 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.084e-05/2.095, allocations: 66.48 kB / 0.7285 GB, free: 43.5 MB / 474.8 MB Notification: Performance of pre-optimization done (n=269): time 7.121e-06/2.095, allocations: 10.44 kB / 0.7285 GB, free: 43.5 MB / 474.8 MB Notification: Performance of matching and sorting (n=311): time 0.09528/2.191, allocations: 30.08 MB / 0.7579 GB, free: 37.44 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.165e-05/2.191, allocations: 236.8 kB / 0.7581 GB, free: 37.19 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01264/2.204, allocations: 6.169 MB / 0.7641 GB, free: 35.25 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0006201/2.204, allocations: 73.23 kB / 0.7642 GB, free: 35.18 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003307/2.208, allocations: 4.586 MB / 0.7686 GB, free: 31.53 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.001471/2.209, allocations: 1.181 MB / 0.7698 GB, free: 30.67 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007694/2.21, allocations: 179 kB / 0.77 GB, free: 30.53 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0005272/2.21, allocations: 0.6995 MB / 0.7707 GB, free: 30.05 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007374/2.218, allocations: 3.569 MB / 0.7741 GB, free: 28.85 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01034/2.228, allocations: 8.843 MB / 0.7828 GB, free: 20.58 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01038/2.239, allocations: 5.497 MB / 0.7881 GB, free: 18.7 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001426/2.239, allocations: 56.44 kB / 0.7882 GB, free: 18.7 MB / 474.8 MB Notification: Performance of matching and sorting (n=1176) (initialization): time 0.03015/2.269, allocations: 13.43 MB / 0.8013 GB, free: 8.84 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001376/2.269, allocations: 87.06 kB / 0.8014 GB, free: 8.758 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002228/2.269, allocations: 184 kB / 0.8016 GB, free: 8.578 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005246/2.275, allocations: 1.71 MB / 0.8032 GB, free: 7.309 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008853/2.283, allocations: 2.133 MB / 0.8053 GB, free: 5.484 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01934/2.303, allocations: 11.66 MB / 0.8167 GB, free: 11.04 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009538/2.312, allocations: 0.5418 MB / 0.8172 GB, free: 10.58 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002198/2.315, allocations: 0.53 MB / 0.8178 GB, free: 10.07 MB / 490.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 850 * Number of states: 0 () * Number of discrete variables: 60 (fixed4.color[3],fixed4.color[2],fixed4.color[1],fixed2.color[3],fixed2.color[2],fixed2.color[1],Revolute4.cylinderColor[3],Revolute4.cylinderColor[2],Revolute4.cylinderColor[1],Revolute3.cylinderColor[3],Revolute3.cylinderColor[2],Revolute3.cylinderColor[1],Revolute2.cylinderColor[3],Revolute2.cylinderColor[2],Revolute2.cylinderColor[1],torque2.connectionLineColor[3],torque2.connectionLineColor[2],torque2.connectionLineColor[1],torque2.torqueColor[3],torque2.torqueColor[2],torque2.torqueColor[1],torque1.connectionLineColor[3],torque1.connectionLineColor[2],torque1.connectionLineColor[1],torque1.torqueColor[3],torque1.torqueColor[2],torque1.torqueColor[1],fixedRotation.color[3],fixedRotation.color[2],fixedRotation.color[1],fixed3.color[3],fixed3.color[2],fixed3.color[1],body2.color[3],body2.color[2],body2.color[1],body2.body.sphereColor[3],body2.body.sphereColor[2],body2.body.sphereColor[1],fixed1.color[3],fixed1.color[2],fixed1.color[1],body1.color[3],body1.color[2],body1.color[1],body1.body.sphereColor[3],body1.body.sphereColor[2],body1.body.sphereColor[1],Revolute1.cylinderColor[3],Revolute1.cylinderColor[2],Revolute1.cylinderColor[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]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1104): * Single equations (assignments): 1099 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 23,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009/2.324, allocations: 3.222 MB / 0.8209 GB, free: 7.23 MB / 490.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00168/2.325, allocations: 0.5901 MB / 0.8215 GB, free: 6.633 MB / 490.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01774/2.343, allocations: 6.75 MB / 0.8281 GB, free: 1.172 MB / 490.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.352e-05/2.343, allocations: 32 kB / 0.8281 GB, free: 1.141 MB / 490.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.639e-05/2.343, allocations: 8 kB / 0.8281 GB, free: 1.133 MB / 490.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.614e-05/2.343, allocations: 17.03 kB / 0.8281 GB, free: 1.129 MB / 490.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04195/2.385, allocations: 15.27 MB / 0.843 GB, free: 5.102 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-05/2.385, allocations: 8 kB / 0.8431 GB, free: 5.094 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003852/2.389, allocations: 0.5617 MB / 0.8436 GB, free: 4.648 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005325/2.395, allocations: 1.423 MB / 0.845 GB, free: 3.223 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007207/2.395, allocations: 56 kB / 0.845 GB, free: 3.168 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02102/2.416, allocations: 10.82 MB / 0.8556 GB, free: 8.109 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.131e-05/2.417, allocations: 11.89 kB / 0.8556 GB, free: 8.098 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02572/2.442, allocations: 11.83 MB / 0.8672 GB, free: 12.04 MB / 0.5262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004309/2.447, allocations: 1.153 MB / 0.8683 GB, free: 10.86 MB / 0.5262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001879/2.449, allocations: 55.2 kB / 0.8683 GB, free: 10.81 MB / 0.5262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004572/2.453, allocations: 211.7 kB / 0.8686 GB, free: 10.61 MB / 0.5262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001045/2.454, allocations: 193.9 kB / 0.8687 GB, free: 10.41 MB / 0.5262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003772/2.455, allocations: 84 kB / 0.8688 GB, free: 10.33 MB / 0.5262 GB Notification: Performance of sorting global known variables: time 0.01234/2.467, allocations: 4.414 MB / 0.8731 GB, free: 5.938 MB / 0.5262 GB Notification: Performance of sort global known variables: time 1.723e-06/2.467, allocations: 4 kB / 0.8731 GB, free: 5.934 MB / 0.5262 GB Notification: Performance of remove unused functions: time 0.01128/2.478, allocations: 1.65 MB / 0.8747 GB, free: 4.289 MB / 0.5262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 8 (Revolute1.phi,Revolute1.w,Revolute3.phi,Revolute3.w,Revolute2.phi,Revolute2.w,Revolute4.phi,Revolute4.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 (254): * Single equations (assignments): 249 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(4,75.0%) 18,(4,75.0%) 18} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001026/2.479, allocations: 210.9 kB / 0.8749 GB, free: 4.086 MB / 0.5262 GB Notification: Performance of simCode: created initialization part: time 0.3079/2.787, allocations: 8.809 MB / 0.8835 GB, free: 155 MB / 0.5262 GB Notification: Performance of simCode: created event and clocks part: time 9.759e-06/2.787, allocations: 2.5 kB / 0.8835 GB, free: 155 MB / 0.5262 GB Notification: Performance of simCode: created simulation system equations: time 0.007611/2.795, allocations: 3.382 MB / 0.8868 GB, free: 154.8 MB / 0.5262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008404/2.803, allocations: 0.7048 MB / 0.8875 GB, free: 154.7 MB / 0.5262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03936/2.843, allocations: 18.98 MB / 0.9061 GB, free: 148.1 MB / 0.5262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009822/2.853, allocations: 5.036 MB / 0.911 GB, free: 147.3 MB / 0.5262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002559/2.855, allocations: 475.3 kB / 0.9114 GB, free: 147.3 MB / 0.5262 GB Notification: Performance of SimCode: time 2.078e-06/2.855, allocations: 0 / 0.9114 GB, free: 147.3 MB / 0.5262 GB Notification: Performance of Templates: time 0.2447/3.1, allocations: 147.6 MB / 1.056 GB, free: 36.59 MB / 0.5262 GB