Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses2") Notification: Performance of loadModel(ModelicaTest): time 1.987/1.987, allocations: 209.3 MB / 222.4 MB, free: 7.734 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.613e-05/2.627e-05, allocations: 4 kB / 277.8 MB, free: 15.32 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09016/0.09021, allocations: 48.71 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.37/0.4602, allocations: 98.82 MB / 425.4 MB, free: 9.016 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002213/0.4605, allocations: 68.53 kB / 425.4 MB, free: 8.984 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7604/1.221, allocations: 135.7 MB / 0.548 GB, free: 76.55 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.599e-06/1.221, allocations: 0 / 0.548 GB, free: 76.55 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004129/1.221, allocations: 135.9 kB / 0.5481 GB, free: 76.55 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: 2291 * Number of variables: 2291 Notification: Performance of Generate backend data structure: time 0.02214/1.244, allocations: 7.035 MB / 0.555 GB, free: 73.96 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.024e-05/1.244, allocations: 7.812 kB / 0.555 GB, free: 73.96 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04051/1.284, allocations: 7.564 MB / 0.5624 GB, free: 73.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02818/1.312, allocations: 9.781 MB / 0.5719 GB, free: 72.58 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005433/1.313, allocations: 492.9 kB / 0.5724 GB, free: 72.56 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002782/1.316, allocations: 0.6591 MB / 0.573 GB, free: 72.55 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04161/1.357, allocations: 16.55 MB / 0.5892 GB, free: 68.52 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003808/1.358, allocations: 96.2 kB / 0.5893 GB, free: 68.52 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002028/1.36, allocations: 316.3 kB / 0.5896 GB, free: 68.52 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00299/1.363, allocations: 1.583 MB / 0.5911 GB, free: 68.49 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03625/1.399, allocations: 13.47 MB / 0.6043 GB, free: 64.93 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1004/1.5, allocations: 74.53 MB / 0.6771 GB, free: 13.21 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03035/1.53, allocations: 7.659 MB / 0.6845 GB, free: 5.418 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007834/1.538, allocations: 3.911 MB / 0.6884 GB, free: 1.488 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2908/1.829, allocations: 18.59 MB / 0.7065 GB, free: 82.89 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.619e-05/1.829, allocations: 66.94 kB / 0.7066 GB, free: 82.86 MB / 442.7 MB Notification: Performance of pre-optimization done (n=280): time 7.579e-06/1.829, allocations: 0 / 0.7066 GB, free: 82.86 MB / 442.7 MB Notification: Performance of matching and sorting (n=361): time 0.1749/2.004, allocations: 40.42 MB / 0.7461 GB, free: 78.45 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.418e-05/2.004, allocations: 276 kB / 0.7463 GB, free: 78.16 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01144/2.015, allocations: 5.305 MB / 0.7515 GB, free: 76.55 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007565/2.016, allocations: 80.38 kB / 0.7516 GB, free: 76.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003283/2.02, allocations: 4.547 MB / 0.756 GB, free: 73.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001781/2.021, allocations: 1.333 MB / 0.7573 GB, free: 72.12 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001006/2.022, allocations: 186.4 kB / 0.7575 GB, free: 71.97 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006388/2.023, allocations: 0.6924 MB / 0.7582 GB, free: 71.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007972/2.031, allocations: 3.662 MB / 0.7618 GB, free: 70.22 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01102/2.042, allocations: 8.834 MB / 0.7704 GB, free: 62.04 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01105/2.053, allocations: 5.576 MB / 0.7758 GB, free: 60.25 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000154/2.053, allocations: 52.12 kB / 0.7759 GB, free: 60.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.04325/2.097, allocations: 16.16 MB / 0.7916 GB, free: 50.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001347/2.097, allocations: 84 kB / 0.7917 GB, free: 50.85 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001872/2.097, allocations: 180.9 kB / 0.7919 GB, free: 50.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01632/2.113, allocations: 4.113 MB / 0.7959 GB, free: 47.83 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008744/2.122, allocations: 2.033 MB / 0.7979 GB, free: 46.06 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04058/2.163, allocations: 21.74 MB / 0.8191 GB, free: 27.42 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00948/2.172, allocations: 0.5552 MB / 0.8197 GB, free: 26.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001808/2.174, allocations: 0.5328 MB / 0.8202 GB, free: 26.43 MB / 442.7 MB 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 () * 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.002057/2.176, allocations: 0.7995 MB / 0.821 GB, free: 25.62 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001299/2.178, allocations: 0.5669 MB / 0.8215 GB, free: 25.05 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02597/2.204, allocations: 9.667 MB / 0.831 GB, free: 16.94 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.938e-05/2.204, allocations: 36 kB / 0.831 GB, free: 16.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.872e-05/2.204, allocations: 16 kB / 0.831 GB, free: 16.89 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.461e-05/2.204, allocations: 15.94 kB / 0.831 GB, free: 16.88 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04977/2.254, allocations: 19.02 MB / 0.8496 GB, free: 13.74 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-05/2.254, allocations: 3.688 kB / 0.8496 GB, free: 13.74 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003572/2.257, allocations: 0.4954 MB / 0.8501 GB, free: 13.24 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2865/2.544, allocations: 3.611 MB / 0.8536 GB, free: 87.27 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007732/2.545, allocations: 58.48 kB / 0.8537 GB, free: 87.27 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03905/2.584, allocations: 18.7 MB / 0.8719 GB, free: 84.68 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.888e-06/2.584, allocations: 3.281 kB / 0.8719 GB, free: 84.68 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03439/2.618, allocations: 14.05 MB / 0.8857 GB, free: 84 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003619/2.622, allocations: 1.117 MB / 0.8868 GB, free: 83.91 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001606/2.623, allocations: 60.98 kB / 0.8868 GB, free: 83.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004466/2.628, allocations: 237.8 kB / 0.887 GB, free: 83.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001139/2.629, allocations: 222.1 kB / 0.8873 GB, free: 83.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004331/2.629, allocations: 92.75 kB / 0.8873 GB, free: 83.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.008693/2.638, allocations: 3.696 MB / 0.891 GB, free: 83.65 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.179e-06/2.638, allocations: 2.062 kB / 0.891 GB, free: 83.65 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01092/2.649, allocations: 1.84 MB / 0.8928 GB, free: 83.65 MB / 458.7 MB 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 () * 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.001053/2.65, allocations: 230.3 kB / 0.893 GB, free: 83.56 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01862/2.669, allocations: 9.43 MB / 0.9022 GB, free: 80.94 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.982e-06/2.669, allocations: 0 / 0.9022 GB, free: 80.94 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007303/2.676, allocations: 3.679 MB / 0.9058 GB, free: 79.41 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004399/2.681, allocations: 0.7052 MB / 0.9065 GB, free: 79.11 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03057/2.711, allocations: 13.82 MB / 0.92 GB, free: 74.15 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008834/2.72, allocations: 5.002 MB / 0.9248 GB, free: 72.57 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002053/2.722, allocations: 443.4 kB / 0.9253 GB, free: 72.56 MB / 458.7 MB Notification: Performance of SimCode: time 1.726e-06/2.722, allocations: 0 / 0.9253 GB, free: 72.56 MB / 458.7 MB Notification: Performance of Templates: time 0.4754/3.198, allocations: 145.7 MB / 1.068 GB, free: 86.35 MB / 458.7 MB