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.ForceWithTwoMasses2.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.ForceWithTwoMasses2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute1.phi|revolute1.w|revolute2.phi|revolute2.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadModel(ModelicaTest): time 2.224/2.224, allocations: 234.9 MB / 250.5 MB, free: 9.461 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004522/0.0004524, allocations: 15.98 kB / 314.4 MB, free: 9.477 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2798/0.2803, allocations: 54.86 MB / 369.3 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1596/0.4399, allocations: 105.7 MB / 475 MB, free: 0.8047 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/0.4402, allocations: 79.95 kB / 475.1 MB, free: 0.7266 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7875/1.228, allocations: 135.7 MB / 0.5965 GB, free: 6.574 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.577e-06/1.228, allocations: 0 / 0.5965 GB, free: 6.574 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004605/1.228, allocations: 136 kB / 0.5966 GB, free: 6.441 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: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.02664/1.255, allocations: 7.643 MB / 0.6041 GB, free: 14.71 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/1.255, allocations: 8.031 kB / 0.6041 GB, free: 14.7 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04319/1.298, allocations: 7.549 MB / 0.6114 GB, free: 7.129 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0306/1.329, allocations: 9.84 MB / 0.621 GB, free: 13.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007144/1.33, allocations: 492.8 kB / 0.6215 GB, free: 12.72 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002964/1.333, allocations: 0.652 MB / 0.6221 GB, free: 12.07 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3304/1.663, allocations: 16.7 MB / 0.6385 GB, free: 64.23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005242/1.664, allocations: 103.4 kB / 0.6386 GB, free: 64.23 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00247/1.666, allocations: 312.4 kB / 0.6389 GB, free: 64.23 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003188/1.669, allocations: 1.572 MB / 0.6404 GB, free: 64.21 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03536/1.705, allocations: 13.74 MB / 0.6538 GB, free: 64.16 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09084/1.796, allocations: 74.27 MB / 0.7263 GB, free: 18.07 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.028/1.824, allocations: 7.7 MB / 0.7339 GB, free: 15.76 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03469/1.858, allocations: 18.62 MB / 0.752 GB, free: 6.055 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.316e-05/1.858, allocations: 70.38 kB / 0.7521 GB, free: 5.992 MB / 458.7 MB Notification: Performance of pre-optimization done (n=280): time 8.278e-06/1.858, allocations: 0 / 0.7521 GB, free: 5.992 MB / 458.7 MB Notification: Performance of matching and sorting (n=361): time 0.2366/2.095, allocations: 50.16 MB / 0.8011 GB, free: 5.82 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001845/2.095, allocations: 265.8 kB / 0.8013 GB, free: 5.504 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01318/2.108, allocations: 5.391 MB / 0.8066 GB, free: 232 kB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007778/2.109, allocations: 77.7 kB / 0.8067 GB, free: 148 kB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004926/2.114, allocations: 4.555 MB / 0.8111 GB, free: 11.64 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002233/2.116, allocations: 1.33 MB / 0.8124 GB, free: 10.32 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001079/2.118, allocations: 184 kB / 0.8126 GB, free: 10.14 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0008838/2.118, allocations: 0.6953 MB / 0.8133 GB, free: 9.438 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009318/2.128, allocations: 3.781 MB / 0.817 GB, free: 5.648 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3132/2.441, allocations: 8.952 MB / 0.8257 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0126/2.454, allocations: 5.647 MB / 0.8312 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003088/2.454, allocations: 53.06 kB / 0.8313 GB, free: 104.6 MB / 0.4948 GB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.04681/2.501, allocations: 16.47 MB / 0.8474 GB, free: 104 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 0.000194/2.501, allocations: 80.06 kB / 0.8474 GB, free: 104 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002622/2.501, allocations: 182.5 kB / 0.8476 GB, free: 104 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01685/2.518, allocations: 4.165 MB / 0.8517 GB, free: 103.9 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008761/2.527, allocations: 2.032 MB / 0.8537 GB, free: 103.8 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04403/2.571, allocations: 22.92 MB / 0.8761 GB, free: 99.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009578/2.581, allocations: 0.5457 MB / 0.8766 GB, free: 99.06 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00194/2.583, allocations: 0.5295 MB / 0.8771 GB, free: 98.99 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 828 * Number of states: 0 () * Number of discrete variables: 63 (lineForceWithTwoMasses.massColor[3],lineForceWithTwoMasses.massColor[2],lineForceWithTwoMasses.massColor[1],lineForceWithTwoMasses.color_b[3],lineForceWithTwoMasses.color_b[2],lineForceWithTwoMasses.color_b[1],lineForceWithTwoMasses.color_a[3],lineForceWithTwoMasses.color_a[2],lineForceWithTwoMasses.color_a[1],rod4.color[3],rod4.color[2],rod4.color[1],rod3.color[3],rod3.color[2],rod3.color[1],bodyBox2.color[3],bodyBox2.color[2],bodyBox2.color[1],bodyBox2.body.sphereColor[3],bodyBox2.body.sphereColor[2],bodyBox2.body.sphereColor[1],revolute2.cylinderColor[3],revolute2.cylinderColor[2],revolute2.cylinderColor[1],rod2.color[3],rod2.color[2],rod2.color[1],body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],jointUPS.cylinderColor[3],jointUPS.cylinderColor[2],jointUPS.cylinderColor[1],jointUPS.sphereColor[3],jointUPS.sphereColor[2],jointUPS.sphereColor[1],jointUPS.axisColor[3],jointUPS.axisColor[2],jointUPS.axisColor[1],rod1.color[3],rod1.color[2],rod1.color[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.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 (1077): * Single equations (assignments): 1072 * 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 {(1,100.0%) 44,(5,64.0%) 47} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007722/2.59, allocations: 3.117 MB / 0.8801 GB, free: 97.68 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0013/2.592, allocations: 0.5757 MB / 0.8807 GB, free: 97.68 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02817/2.62, allocations: 9.819 MB / 0.8903 GB, free: 94.59 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.016e-05/2.62, allocations: 35.66 kB / 0.8903 GB, free: 94.59 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.531e-05/2.62, allocations: 15.03 kB / 0.8903 GB, free: 94.59 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.658e-05/2.62, allocations: 17.8 kB / 0.8904 GB, free: 94.59 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04944/2.67, allocations: 19.19 MB / 0.9091 GB, free: 88.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.08e-05/2.67, allocations: 0 / 0.9091 GB, free: 88.12 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003218/2.673, allocations: 0.5005 MB / 0.9096 GB, free: 88.08 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01558/2.689, allocations: 3.669 MB / 0.9132 GB, free: 86.53 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000723/2.689, allocations: 66.69 kB / 0.9132 GB, free: 86.47 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03705/2.726, allocations: 19.79 MB / 0.9326 GB, free: 69.77 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.688e-06/2.726, allocations: 3.719 kB / 0.9326 GB, free: 69.77 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03357/2.76, allocations: 14.27 MB / 0.9465 GB, free: 58.2 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004199/2.764, allocations: 1.113 MB / 0.9476 GB, free: 57.17 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001792/2.766, allocations: 60.5 kB / 0.9476 GB, free: 57.12 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004507/2.771, allocations: 230.8 kB / 0.9479 GB, free: 56.97 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00117/2.772, allocations: 233.5 kB / 0.9481 GB, free: 56.82 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004759/2.772, allocations: 96.47 kB / 0.9482 GB, free: 56.74 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.008883/2.781, allocations: 3.782 MB / 0.9519 GB, free: 53.64 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.303e-06/2.781, allocations: 0 / 0.9519 GB, free: 53.64 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01171/2.793, allocations: 1.849 MB / 0.9537 GB, free: 51.82 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute1.phi,revolute1.w,revolute2.phi,revolute2.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 (264): * Single equations (assignments): 259 * 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%) 43,(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001174/2.794, allocations: 225.5 kB / 0.9539 GB, free: 51.61 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.0192/2.813, allocations: 9.627 MB / 0.9633 GB, free: 43.2 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/2.814, allocations: 0.875 kB / 0.9633 GB, free: 43.2 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.007597/2.821, allocations: 3.749 MB / 0.967 GB, free: 39.88 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0049/2.826, allocations: 0.7191 MB / 0.9677 GB, free: 39.26 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03857/2.865, allocations: 19.07 MB / 0.9863 GB, free: 20.21 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01113/2.876, allocations: 5.002 MB / 0.9912 GB, free: 15.21 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002223/2.878, allocations: 443.4 kB / 0.9916 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of SimCode: time 1.818e-06/2.878, allocations: 4 kB / 0.9916 GB, free: 14.77 MB / 0.4948 GB Notification: Performance of Templates: time 0.8416/3.72, allocations: 145.8 MB / 1.134 GB, free: 33.28 MB / 0.4949 GB