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.875/1.875, allocations: 209.3 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004461/0.0004463, allocations: 12 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3236/0.3241, allocations: 48.7 MB / 331.3 MB, free: 6.488 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1449/0.469, allocations: 98.91 MB / 430.2 MB, free: 11.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002296/0.4693, allocations: 83.89 kB / 430.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6991/1.168, allocations: 135.6 MB / 0.5526 GB, free: 44.15 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.72e-06/1.168, allocations: 0 / 0.5526 GB, free: 44.15 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0004034/1.169, allocations: 135.9 kB / 0.5527 GB, free: 44.02 MB / 394.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.02425/1.193, allocations: 7.647 MB / 0.5602 GB, free: 36.28 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/1.193, allocations: 8.031 kB / 0.5602 GB, free: 36.27 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03781/1.231, allocations: 7.545 MB / 0.5676 GB, free: 28.71 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02619/1.257, allocations: 9.821 MB / 0.5772 GB, free: 18.8 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005568/1.258, allocations: 488.8 kB / 0.5776 GB, free: 18.32 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002807/1.261, allocations: 0.6519 MB / 0.5783 GB, free: 17.67 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04083/1.302, allocations: 16.71 MB / 0.5946 GB, free: 15.5 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004252/1.302, allocations: 99.05 kB / 0.5947 GB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002363/1.304, allocations: 311.8 kB / 0.595 GB, free: 15.1 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003297/1.308, allocations: 1.58 MB / 0.5965 GB, free: 13.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03929/1.347, allocations: 13.73 MB / 0.6099 GB, free: 15.77 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3611/1.708, allocations: 74.23 MB / 0.6824 GB, free: 27.33 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03042/1.739, allocations: 7.691 MB / 0.6899 GB, free: 26.64 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0365/1.775, allocations: 18.62 MB / 0.7081 GB, free: 20.83 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.467e-05/1.775, allocations: 62.12 kB / 0.7082 GB, free: 20.77 MB / 426.7 MB Notification: Performance of pre-optimization done (n=280): time 6.68e-06/1.775, allocations: 0 / 0.7082 GB, free: 20.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=361): time 0.2157/1.991, allocations: 49.43 MB / 0.7564 GB, free: 1.707 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.628e-05/1.991, allocations: 268.6 kB / 0.7567 GB, free: 1.391 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02325/2.014, allocations: 6.037 MB / 0.7626 GB, free: 14.54 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007552/2.015, allocations: 85.7 kB / 0.7627 GB, free: 14.45 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004771/2.02, allocations: 4.55 MB / 0.7671 GB, free: 10.34 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002148/2.022, allocations: 1.326 MB / 0.7684 GB, free: 9.164 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009456/2.023, allocations: 184 kB / 0.7686 GB, free: 8.984 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007473/2.024, allocations: 0.6963 MB / 0.7693 GB, free: 8.387 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008867/2.033, allocations: 3.774 MB / 0.773 GB, free: 5.203 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01422/2.047, allocations: 8.96 MB / 0.7817 GB, free: 10.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01253/2.06, allocations: 5.644 MB / 0.7872 GB, free: 5.52 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001514/2.06, allocations: 56 kB / 0.7873 GB, free: 5.465 MB / 458.7 MB Notification: Performance of matching and sorting (n=1196) (initialization): time 0.315/2.375, allocations: 16.46 MB / 0.8033 GB, free: 98.84 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001847/2.375, allocations: 82.38 kB / 0.8034 GB, free: 98.84 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002933/2.375, allocations: 187 kB / 0.8036 GB, free: 98.84 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01801/2.393, allocations: 4.168 MB / 0.8077 GB, free: 98.81 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009213/2.403, allocations: 2.029 MB / 0.8096 GB, free: 98.81 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04669/2.449, allocations: 22.91 MB / 0.832 GB, free: 96.04 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009442/2.459, allocations: 0.5525 MB / 0.8326 GB, free: 96.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001808/2.461, allocations: 0.5273 MB / 0.8331 GB, free: 96.04 MB / 458.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 () * 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.00763/2.468, allocations: 3.119 MB / 0.8361 GB, free: 95.23 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001327/2.47, allocations: 0.5719 MB / 0.8367 GB, free: 95.23 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02985/2.499, allocations: 9.824 MB / 0.8463 GB, free: 92.19 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.914e-05/2.5, allocations: 34.59 kB / 0.8463 GB, free: 92.19 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.551e-05/2.5, allocations: 21.23 kB / 0.8463 GB, free: 92.19 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.366e-05/2.5, allocations: 14.34 kB / 0.8463 GB, free: 92.19 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05186/2.552, allocations: 19.17 MB / 0.8651 GB, free: 85.81 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.389e-05/2.552, allocations: 0 / 0.8651 GB, free: 85.81 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003582/2.555, allocations: 0.4992 MB / 0.8656 GB, free: 85.79 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01664/2.572, allocations: 3.671 MB / 0.8691 GB, free: 85.24 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000744/2.573, allocations: 68.84 kB / 0.8692 GB, free: 85.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03889/2.612, allocations: 19.81 MB / 0.8885 GB, free: 69.93 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/2.612, allocations: 0 / 0.8885 GB, free: 69.93 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03363/2.645, allocations: 14.26 MB / 0.9025 GB, free: 57.93 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003553/2.649, allocations: 1.12 MB / 0.9036 GB, free: 56.79 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002121/2.651, allocations: 65.62 kB / 0.9036 GB, free: 56.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007807/2.659, allocations: 234 kB / 0.9039 GB, free: 56.51 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001721/2.661, allocations: 218.1 kB / 0.9041 GB, free: 56.29 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008204/2.662, allocations: 91.98 kB / 0.9041 GB, free: 56.2 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01764/2.679, allocations: 3.787 MB / 0.9078 GB, free: 52.43 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.73e-06/2.679, allocations: 0 / 0.9078 GB, free: 52.43 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0174/2.697, allocations: 1.84 MB / 0.9096 GB, free: 50.6 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 () * 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.001095/2.698, allocations: 228.3 kB / 0.9099 GB, free: 50.39 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03058/2.728, allocations: 9.626 MB / 0.9193 GB, free: 40.81 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.338e-05/2.729, allocations: 0 / 0.9193 GB, free: 40.81 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01276/2.741, allocations: 3.759 MB / 0.9229 GB, free: 37.03 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008326/2.75, allocations: 0.7175 MB / 0.9236 GB, free: 36.34 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.044/2.794, allocations: 19.06 MB / 0.9422 GB, free: 17.46 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0111/2.805, allocations: 5.008 MB / 0.9471 GB, free: 12.45 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002183/2.807, allocations: 439.4 kB / 0.9476 GB, free: 12.02 MB / 458.7 MB Notification: Performance of SimCode: time 2.221e-06/2.807, allocations: 0 / 0.9476 GB, free: 12.02 MB / 458.7 MB Notification: Performance of Templates: time 0.4769/3.284, allocations: 145.8 MB / 1.09 GB, free: 37.16 MB / 474.7 MB