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.Joints.FreeMotion2.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.Joints.FreeMotion2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.r_rel_a.1.|freeMotion.v_rel_a.1.|prismatic1.s|prismatic1.v|universal.phi_a|universal.phi_b|universal.w_a|universal.w_b|universal1.phi_a|universal1.phi_b|universal1.w_a|universal1.w_b",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadModel(ModelicaTest): time 1.859/1.859, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.43e-05/2.448e-05, allocations: 0 / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08605/0.08611, allocations: 48.7 MB / 326.5 MB, free: 14.51 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.355/0.4412, allocations: 95.97 MB / 422.5 MB, free: 11.96 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002259/0.4415, allocations: 77.7 kB / 422.6 MB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6823/1.124, allocations: 118.2 MB / 0.5281 GB, free: 76.72 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.247e-06/1.124, allocations: 2.625 kB / 0.5282 GB, free: 76.72 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003768/1.124, allocations: 121.2 kB / 0.5283 GB, free: 76.72 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: 2023 * Number of variables: 2023 Notification: Performance of Generate backend data structure: time 0.01917/1.143, allocations: 5.93 MB / 0.5341 GB, free: 74.98 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/1.143, allocations: 9.375 kB / 0.5341 GB, free: 74.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03738/1.181, allocations: 7.002 MB / 0.5409 GB, free: 74.57 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02244/1.203, allocations: 7.789 MB / 0.5485 GB, free: 73.78 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005459/1.204, allocations: 435.3 kB / 0.5489 GB, free: 73.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002441/1.206, allocations: 0.577 MB / 0.5495 GB, free: 73.76 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03217/1.239, allocations: 13.81 MB / 0.563 GB, free: 70.55 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003163/1.239, allocations: 84.62 kB / 0.5631 GB, free: 70.54 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001653/1.241, allocations: 278.8 kB / 0.5633 GB, free: 70.54 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002052/1.243, allocations: 1.318 MB / 0.5646 GB, free: 70.53 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02825/1.271, allocations: 11.51 MB / 0.5759 GB, free: 70.49 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07865/1.35, allocations: 62.03 MB / 0.6364 GB, free: 26.31 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01877/1.368, allocations: 5.702 MB / 0.642 GB, free: 23.43 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005168/1.374, allocations: 3.291 MB / 0.6452 GB, free: 20.39 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000745/1.374, allocations: 0.6853 MB / 0.6459 GB, free: 19.66 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.385e-05/1.375, allocations: 63.8 kB / 0.6459 GB, free: 19.59 MB / 426.7 MB Notification: Performance of pre-optimization done (n=254): time 1.304e-05/1.375, allocations: 0 / 0.6459 GB, free: 19.59 MB / 426.7 MB Notification: Performance of matching and sorting (n=320): time 0.1041/1.479, allocations: 29.16 MB / 0.6744 GB, free: 11.54 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001912/1.479, allocations: 269.1 kB / 0.6747 GB, free: 11.23 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009883/1.489, allocations: 4.625 MB / 0.6792 GB, free: 7.137 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006718/1.49, allocations: 73.7 kB / 0.6793 GB, free: 7.059 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00394/1.493, allocations: 3.86 MB / 0.683 GB, free: 3.547 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001859/1.495, allocations: 1.195 MB / 0.6842 GB, free: 2.488 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007507/1.496, allocations: 152 kB / 0.6843 GB, free: 2.34 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006195/1.497, allocations: 0.6378 MB / 0.685 GB, free: 1.789 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2616/1.758, allocations: 3.52 MB / 0.6884 GB, free: 86.59 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009799/1.768, allocations: 7.485 MB / 0.6957 GB, free: 81.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009754/1.778, allocations: 4.906 MB / 0.7005 GB, free: 81.14 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001589/1.778, allocations: 44.39 kB / 0.7005 GB, free: 81.14 MB / 442.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.03049/1.809, allocations: 12.26 MB / 0.7125 GB, free: 80.67 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001681/1.809, allocations: 67.86 kB / 0.7126 GB, free: 80.67 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001965/1.809, allocations: 145.4 kB / 0.7127 GB, free: 80.67 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007241/1.816, allocations: 2.144 MB / 0.7148 GB, free: 80.65 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008/1.824, allocations: 1.759 MB / 0.7165 GB, free: 80.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02323/1.848, allocations: 14.32 MB / 0.7305 GB, free: 77.74 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008101/1.856, allocations: 451 kB / 0.7309 GB, free: 77.74 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001596/1.858, allocations: 454 kB / 0.7314 GB, free: 77.74 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 673 * Number of states: 0 () * Number of discrete variables: 39 (universal1.cylinderColor[3],universal1.cylinderColor[2],universal1.cylinderColor[1],prismatic1.boxColor[3],prismatic1.boxColor[2],prismatic1.boxColor[1],bodyBox1.color[3],bodyBox1.color[2],bodyBox1.color[1],bodyBox1.body.sphereColor[3],bodyBox1.body.sphereColor[2],bodyBox1.body.sphereColor[1],universal.cylinderColor[3],universal.cylinderColor[2],universal.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],bodyBox.color[3],bodyBox.color[2],bodyBox.color[1],bodyBox.body.sphereColor[3],bodyBox.body.sphereColor[2],bodyBox.body.sphereColor[1],fixed.color[3],fixed.color[2],fixed.color[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[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 (928): * Single equations (assignments): 923 * 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 {(3,100.0%) 24,(3,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002023/1.86, allocations: 0.6751 MB / 0.732 GB, free: 77.48 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001186/1.861, allocations: 0.4888 MB / 0.7325 GB, free: 77.48 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01665/1.877, allocations: 7.015 MB / 0.7394 GB, free: 75.35 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.633e-05/1.878, allocations: 33.92 kB / 0.7394 GB, free: 75.35 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.744e-05/1.878, allocations: 17.62 kB / 0.7394 GB, free: 75.35 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.585e-05/1.878, allocations: 14.06 kB / 0.7394 GB, free: 75.35 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04105/1.919, allocations: 16 MB / 0.7551 GB, free: 69.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.476e-05/1.919, allocations: 7.531 kB / 0.7551 GB, free: 69.3 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003433/1.922, allocations: 0.5097 MB / 0.7556 GB, free: 69.27 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006543/1.929, allocations: 1.871 MB / 0.7574 GB, free: 68.83 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005942/1.929, allocations: 62.16 kB / 0.7574 GB, free: 68.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02233/1.952, allocations: 12.83 MB / 0.77 GB, free: 62.37 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.716e-06/1.952, allocations: 11.56 kB / 0.77 GB, free: 62.37 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02185/1.974, allocations: 12.08 MB / 0.7818 GB, free: 55.58 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003174/1.977, allocations: 1.058 MB / 0.7828 GB, free: 54.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001459/1.978, allocations: 56 kB / 0.7829 GB, free: 54.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003936/1.982, allocations: 216.7 kB / 0.7831 GB, free: 54.41 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009425/1.983, allocations: 202.5 kB / 0.7833 GB, free: 54.28 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000397/1.984, allocations: 89.23 kB / 0.7834 GB, free: 54.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.006774/1.991, allocations: 3.265 MB / 0.7865 GB, free: 51.32 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.025e-06/1.991, allocations: 0 / 0.7865 GB, free: 51.32 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008681/1.999, allocations: 1.492 MB / 0.788 GB, free: 49.84 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 12 (freeMotion.r_rel_a[1],freeMotion.v_rel_a[1],universal.phi_a,universal.phi_b,universal.w_a,universal.w_b,prismatic1.s,prismatic1.v,universal1.phi_a,universal1.phi_b,universal1.w_a,universal1.w_b) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (259): * Single equations (assignments): 254 * 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 {(7,46.9%) 17,(7,46.9%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007993/2, allocations: 213.3 kB / 0.7882 GB, free: 49.64 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01482/2.015, allocations: 8.168 MB / 0.7962 GB, free: 42.22 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.115e-05/2.015, allocations: 0 / 0.7962 GB, free: 42.22 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00877/2.024, allocations: 3.877 MB / 0.8 GB, free: 38.86 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004092/2.028, allocations: 0.633 MB / 0.8006 GB, free: 38.32 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02847/2.056, allocations: 12.86 MB / 0.8131 GB, free: 26.84 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008002/2.065, allocations: 4.524 MB / 0.8176 GB, free: 23.46 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002022/2.067, allocations: 408.2 kB / 0.8179 GB, free: 23.09 MB / 442.7 MB Notification: Performance of SimCode: time 1.699e-06/2.067, allocations: 0 / 0.8179 GB, free: 23.09 MB / 442.7 MB Notification: Performance of Templates: time 0.4378/2.504, allocations: 130.8 MB / 0.9457 GB, free: 52.54 MB / 458.7 MB