Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.MultiBody.Forces.ForceWithTwoMasses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|revolute.phi|revolute.w",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Forces.ForceWithTwoMasses") Notification: Performance of loadModel(ModelicaTest): time 2.287/2.287, allocations: 234.9 MB / 251.1 MB, free: 9.461 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005825/0.0005827, allocations: 8 kB / 314.9 MB, free: 9.527 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3483, allocations: 54.86 MB / 369.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1779/0.5262, allocations: 99.86 MB / 469.7 MB, free: 6.707 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002905/0.5266, allocations: 79.97 kB / 469.7 MB, free: 6.629 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5953/1.122, allocations: 76.81 MB / 0.5337 GB, free: 38.91 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.625e-06/1.122, allocations: 0 / 0.5337 GB, free: 38.91 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002245/1.122, allocations: 64 kB / 0.5338 GB, free: 38.85 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: 1315 * Number of variables: 1315 Notification: Performance of Generate backend data structure: time 0.01539/1.138, allocations: 3.841 MB / 0.5375 GB, free: 34.94 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/1.138, allocations: 8.031 kB / 0.5375 GB, free: 34.93 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03121/1.169, allocations: 4.324 MB / 0.5418 GB, free: 30.6 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01651/1.185, allocations: 4.491 MB / 0.5462 GB, free: 26.04 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003317/1.186, allocations: 271.1 kB / 0.5464 GB, free: 25.78 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002063/1.188, allocations: 371.8 kB / 0.5468 GB, free: 25.41 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02552/1.214, allocations: 9.166 MB / 0.5557 GB, free: 15.23 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002332/1.214, allocations: 55.47 kB / 0.5558 GB, free: 15.18 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001334/1.215, allocations: 179.9 kB / 0.5559 GB, free: 15 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001735/1.217, allocations: 0.8843 MB / 0.5568 GB, free: 14.12 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02052/1.237, allocations: 7.317 MB / 0.564 GB, free: 6.797 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06565/1.303, allocations: 44.06 MB / 0.607 GB, free: 9.18 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01565/1.319, allocations: 3.486 MB / 0.6104 GB, free: 5.547 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01828/1.337, allocations: 7.205 MB / 0.6174 GB, free: 14.07 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.508e-05/1.337, allocations: 51.56 kB / 0.6175 GB, free: 14.02 MB / 458.7 MB Notification: Performance of pre-optimization done (n=150): time 5.22e-06/1.337, allocations: 0 / 0.6175 GB, free: 14.02 MB / 458.7 MB Notification: Performance of matching and sorting (n=184): time 0.1164/1.454, allocations: 19.8 MB / 0.6368 GB, free: 10.03 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001313/1.454, allocations: 201.2 kB / 0.637 GB, free: 9.789 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008234/1.462, allocations: 3.696 MB / 0.6406 GB, free: 6.102 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004389/1.463, allocations: 49.7 kB / 0.6407 GB, free: 6.047 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002817/1.465, allocations: 2.76 MB / 0.6433 GB, free: 3.25 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001181/1.467, allocations: 0.7019 MB / 0.644 GB, free: 2.539 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006052/1.467, allocations: 116 kB / 0.6441 GB, free: 2.426 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004672/1.468, allocations: 0.5585 MB / 0.6447 GB, free: 1.855 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3346/1.802, allocations: 1.997 MB / 0.6466 GB, free: 123.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00941/1.812, allocations: 5.556 MB / 0.6521 GB, free: 118.9 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008512/1.82, allocations: 3.265 MB / 0.6553 GB, free: 118.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002233/1.821, allocations: 33.75 kB / 0.6553 GB, free: 118.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=758) (initialization): time 0.03229/1.853, allocations: 9.018 MB / 0.6641 GB, free: 118.4 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001305/1.853, allocations: 57.62 kB / 0.6641 GB, free: 118.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002133/1.853, allocations: 127.9 kB / 0.6643 GB, free: 118.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01006/1.863, allocations: 1.589 MB / 0.6658 GB, free: 118.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007597/1.871, allocations: 1.281 MB / 0.6671 GB, free: 118.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02599/1.897, allocations: 9.567 MB / 0.6764 GB, free: 116.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006215/1.903, allocations: 312.9 kB / 0.6767 GB, free: 116.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001183/1.905, allocations: 362.4 kB / 0.6771 GB, free: 116.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 569 * Number of states: 0 () * Number of discrete variables: 33 (FixedTranslation2.color[3],FixedTranslation2.color[2],FixedTranslation2.color[1],force.massColor[3],force.massColor[2],force.massColor[1],force.color_b[3],force.color_b[2],force.color_b[1],force.color_a[3],force.color_a[2],force.color_a[1],FixedTranslation1.color[3],FixedTranslation1.color[2],FixedTranslation1.color[1],BodyBox1.color[3],BodyBox1.color[2],BodyBox1.color[1],BodyBox1.body.sphereColor[3],BodyBox1.body.sphereColor[2],BodyBox1.body.sphereColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.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 (691): * Single equations (assignments): 687 * 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 {(2,100.0%) 42} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005371/1.91, allocations: 1.893 MB / 0.6789 GB, free: 115.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000829/1.911, allocations: 324.5 kB / 0.6792 GB, free: 115.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01789/1.929, allocations: 3.928 MB / 0.6831 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-05/1.929, allocations: 25.28 kB / 0.6831 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.062e-05/1.929, allocations: 11.64 kB / 0.6831 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.245e-05/1.929, allocations: 10.36 kB / 0.6831 GB, free: 114.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02839/1.957, allocations: 8.113 MB / 0.691 GB, free: 111.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.523e-05/1.958, allocations: 3.844 kB / 0.691 GB, free: 111.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002417/1.96, allocations: 241.1 kB / 0.6913 GB, free: 111.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009026/1.969, allocations: 1.284 MB / 0.6925 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004369/1.97, allocations: 38.91 kB / 0.6925 GB, free: 111.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02046/1.99, allocations: 7.824 MB / 0.7002 GB, free: 107.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.55e-06/1.99, allocations: 3.609 kB / 0.7002 GB, free: 107.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02148/2.012, allocations: 6.251 MB / 0.7063 GB, free: 104.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00195/2.014, allocations: 0.6039 MB / 0.7069 GB, free: 104 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007528/2.014, allocations: 29.17 kB / 0.7069 GB, free: 104 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002455/2.017, allocations: 91.33 kB / 0.707 GB, free: 104 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004278/2.017, allocations: 111.8 kB / 0.7071 GB, free: 103.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001914/2.017, allocations: 53.44 kB / 0.7072 GB, free: 103.8 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004692/2.022, allocations: 2.292 MB / 0.7094 GB, free: 102 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.52e-07/2.022, allocations: 0 / 0.7094 GB, free: 102 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006966/2.029, allocations: 0.9755 MB / 0.7103 GB, free: 101 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (revolute.phi,revolute.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 (129): * Single equations (assignments): 125 * 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 {(1,100.0%) 35} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008307/2.03, allocations: 168.1 kB / 0.7105 GB, free: 100.8 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01193/2.042, allocations: 4.991 MB / 0.7154 GB, free: 96.45 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/2.042, allocations: 0 / 0.7154 GB, free: 96.45 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003944/2.046, allocations: 1.634 MB / 0.717 GB, free: 95 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003148/2.049, allocations: 362.5 kB / 0.7173 GB, free: 94.69 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02253/2.072, allocations: 10.13 MB / 0.7272 GB, free: 85.5 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006442/2.078, allocations: 3.04 MB / 0.7302 GB, free: 83.16 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001391/2.08, allocations: 269.4 kB / 0.7304 GB, free: 82.91 MB / 474.7 MB Notification: Performance of SimCode: time 8.32e-07/2.08, allocations: 4 kB / 0.7304 GB, free: 82.9 MB / 474.7 MB Notification: Performance of Templates: time 0.1218/2.202, allocations: 66.67 MB / 0.7955 GB, free: 19.95 MB / 474.7 MB