Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2.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.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.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotion2") Notification: Performance of loadModel(ModelicaTest): time 2.257/2.257, allocations: 234.9 MB / 251.1 MB, free: 9.543 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004103/0.0004106, allocations: 16 kB / 314.9 MB, free: 9.594 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3485/0.3489, allocations: 54.86 MB / 369.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2141/0.5631, allocations: 102.9 MB / 472.7 MB, free: 3.691 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000285/0.5634, allocations: 83.89 kB / 472.8 MB, free: 3.609 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8278/1.391, allocations: 119.2 MB / 0.5781 GB, free: 8.793 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.675e-06/1.391, allocations: 0 / 0.5781 GB, free: 8.793 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0004644/1.392, allocations: 116 kB / 0.5782 GB, free: 8.68 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2027 * Number of variables: 2027 Notification: Performance of Generate backend data structure: time 0.02902/1.421, allocations: 6.437 MB / 0.5845 GB, free: 2.164 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.638e-05/1.421, allocations: 8.031 kB / 0.5845 GB, free: 2.156 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05265/1.473, allocations: 6.985 MB / 0.5913 GB, free: 11.15 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03014/1.504, allocations: 7.833 MB / 0.599 GB, free: 3.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007793/1.505, allocations: 443.5 kB / 0.5994 GB, free: 2.797 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003539/1.508, allocations: 0.5778 MB / 0.6 GB, free: 2.219 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04695/1.555, allocations: 13.98 MB / 0.6136 GB, free: 3.051 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005376/1.556, allocations: 87.23 kB / 0.6137 GB, free: 2.965 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002952/1.559, allocations: 275.9 kB / 0.614 GB, free: 2.695 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003361/1.562, allocations: 1.314 MB / 0.6152 GB, free: 1.375 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04045/1.603, allocations: 11.7 MB / 0.6267 GB, free: 5.656 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5365/2.139, allocations: 62.08 MB / 0.6873 GB, free: 52.62 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02318/2.162, allocations: 5.751 MB / 0.6929 GB, free: 51.94 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009403/2.163, allocations: 0.7035 MB / 0.6936 GB, free: 51.38 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.473e-05/2.163, allocations: 54.88 kB / 0.6936 GB, free: 51.34 MB / 474.7 MB Notification: Performance of pre-optimization done (n=254): time 6.232e-06/2.163, allocations: 0 / 0.6936 GB, free: 51.34 MB / 474.7 MB Notification: Performance of matching and sorting (n=320): time 0.1748/2.338, allocations: 35.03 MB / 0.7279 GB, free: 46.52 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001335/2.338, allocations: 266.5 kB / 0.7281 GB, free: 46.23 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01538/2.354, allocations: 5.252 MB / 0.7332 GB, free: 45.81 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001032/2.355, allocations: 73.27 kB / 0.7333 GB, free: 45.78 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004496/2.359, allocations: 3.87 MB / 0.7371 GB, free: 43.12 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002499/2.362, allocations: 1.188 MB / 0.7382 GB, free: 42.25 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00149/2.363, allocations: 153.4 kB / 0.7384 GB, free: 42.13 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.000746/2.364, allocations: 0.6384 MB / 0.739 GB, free: 41.68 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01139/2.376, allocations: 3.315 MB / 0.7423 GB, free: 40.5 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01402/2.39, allocations: 7.588 MB / 0.7497 GB, free: 33.69 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01133/2.401, allocations: 4.927 MB / 0.7545 GB, free: 31.9 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001615/2.401, allocations: 45.66 kB / 0.7545 GB, free: 31.9 MB / 474.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.03561/2.437, allocations: 12.35 MB / 0.7666 GB, free: 26.62 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001271/2.437, allocations: 74.97 kB / 0.7667 GB, free: 26.56 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002385/2.437, allocations: 147.5 kB / 0.7668 GB, free: 26.42 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009185/2.447, allocations: 2.108 MB / 0.7689 GB, free: 24.83 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01126/2.458, allocations: 1.756 MB / 0.7706 GB, free: 23.32 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02861/2.487, allocations: 14.8 MB / 0.785 GB, free: 10.11 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00916/2.496, allocations: 449.5 kB / 0.7854 GB, free: 9.734 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00203/2.498, allocations: 451.8 kB / 0.7859 GB, free: 9.309 MB / 474.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 () * Number of clocked 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.008244/2.506, allocations: 2.807 MB / 0.7886 GB, free: 6.832 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001444/2.508, allocations: 0.4968 MB / 0.7891 GB, free: 6.332 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02094/2.529, allocations: 7.043 MB / 0.796 GB, free: 0.5508 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.79e-05/2.529, allocations: 32 kB / 0.796 GB, free: 0.5195 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-05/2.529, allocations: 16 kB / 0.796 GB, free: 0.5039 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.395e-05/2.529, allocations: 17.25 kB / 0.796 GB, free: 0.5039 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05107/2.58, allocations: 16.16 MB / 0.8118 GB, free: 3.805 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-05/2.58, allocations: 11.94 kB / 0.8118 GB, free: 3.797 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00486/2.585, allocations: 0.505 MB / 0.8123 GB, free: 3.379 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008712/2.594, allocations: 1.844 MB / 0.8141 GB, free: 2.039 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000821/2.594, allocations: 67.89 kB / 0.8142 GB, free: 1.977 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03332/2.628, allocations: 13.3 MB / 0.8272 GB, free: 5.707 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-05/2.628, allocations: 15.38 kB / 0.8272 GB, free: 5.695 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3954/3.023, allocations: 11.26 MB / 0.8382 GB, free: 114.1 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003981/3.027, allocations: 1.06 MB / 0.8392 GB, free: 114 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001985/3.029, allocations: 55.81 kB / 0.8393 GB, free: 114 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005233/3.035, allocations: 209.4 kB / 0.8395 GB, free: 114 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001193/3.036, allocations: 210.8 kB / 0.8397 GB, free: 114 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000383/3.036, allocations: 87.16 kB / 0.8398 GB, free: 114 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.009019/3.045, allocations: 3.312 MB / 0.843 GB, free: 113.8 MB / 0.4948 GB Notification: Performance of sort global known variables: time 8.11e-07/3.045, allocations: 0 / 0.843 GB, free: 113.8 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01049/3.056, allocations: 1.495 MB / 0.8444 GB, free: 113.8 MB / 0.4948 GB 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 () * Number of clocked 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.001231/3.057, allocations: 216.7 kB / 0.8447 GB, free: 113.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01945/3.077, allocations: 8.278 MB / 0.8527 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.295e-05/3.077, allocations: 1.781 kB / 0.8527 GB, free: 113.4 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01262/3.089, allocations: 3.897 MB / 0.8565 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006003/3.095, allocations: 0.6193 MB / 0.8571 GB, free: 113.1 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04558/3.141, allocations: 17.56 MB / 0.8743 GB, free: 107 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01598/3.157, allocations: 4.524 MB / 0.8787 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003854/3.161, allocations: 410.9 kB / 0.8791 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of SimCode: time 1.452e-06/3.161, allocations: 0 / 0.8791 GB, free: 106.1 MB / 0.4948 GB Notification: Performance of Templates: time 0.2756/3.437, allocations: 131 MB / 1.007 GB, free: 9.043 MB / 0.4948 GB