Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.355/2.355, allocations: 235.1 MB / 243 MB, free: 9.586 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.016e-05/2.019e-05, allocations: 4 kB / 303.2 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2721/0.2721, allocations: 54.86 MB / 358 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1556/0.4278, allocations: 102.1 MB / 460.2 MB, free: 8.633 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002404/0.4281, allocations: 71.97 kB / 460.3 MB, free: 8.562 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6293/1.057, allocations: 115.9 MB / 0.5626 GB, free: 5.098 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.049e-06/1.057, allocations: 0 / 0.5626 GB, free: 5.098 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000365/1.058, allocations: 116 kB / 0.5627 GB, free: 4.984 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: 2027 * Number of variables: 2027 Notification: Performance of Generate backend data structure: time 0.0191/1.077, allocations: 5.946 MB / 0.5685 GB, free: 14.97 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/1.077, allocations: 12.03 kB / 0.5685 GB, free: 14.96 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0372/1.114, allocations: 7 MB / 0.5754 GB, free: 7.938 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02448/1.139, allocations: 7.776 MB / 0.583 GB, free: 80 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004225/1.139, allocations: 192 kB / 0.5832 GB, free: 15.89 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002523/1.142, allocations: 347.8 kB / 0.5835 GB, free: 15.55 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02005/1.162, allocations: 8.207 MB / 0.5915 GB, free: 7.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03189/1.194, allocations: 12.41 MB / 0.6036 GB, free: 9.754 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000448/1.194, allocations: 83.31 kB / 0.6037 GB, free: 9.672 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002038/1.196, allocations: 36 kB / 0.6037 GB, free: 9.637 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002568/1.199, allocations: 1.318 MB / 0.605 GB, free: 8.312 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3644/1.563, allocations: 59.41 MB / 0.663 GB, free: 51.93 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007251/1.571, allocations: 4.889 MB / 0.6678 GB, free: 51.27 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00473/1.575, allocations: 3.22 MB / 0.671 GB, free: 51.23 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007974/1.576, allocations: 0.6931 MB / 0.6716 GB, free: 50.66 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.34e-05/1.576, allocations: 60.5 kB / 0.6717 GB, free: 50.62 MB / 458.7 MB Notification: Performance of pre-optimization done (n=254): time 7.891e-06/1.576, allocations: 2.625 kB / 0.6717 GB, free: 50.62 MB / 458.7 MB Notification: Performance of matching and sorting (n=321): time 0.08405/1.66, allocations: 29.91 MB / 0.7009 GB, free: 45.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.434e-05/1.661, allocations: 267 kB / 0.7012 GB, free: 44.91 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007788/1.668, allocations: 3.923 MB / 0.705 GB, free: 43.5 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006486/1.669, allocations: 29.45 kB / 0.705 GB, free: 43.46 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00284/1.672, allocations: 3.991 MB / 0.7089 GB, free: 40.67 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001498/1.673, allocations: 1.16 MB / 0.71 GB, free: 39.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007146/1.674, allocations: 0 / 0.71 GB, free: 39.8 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004626/1.675, allocations: 0.6398 MB / 0.7107 GB, free: 39.35 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005913/1.681, allocations: 3.157 MB / 0.7138 GB, free: 38.15 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008585/1.689, allocations: 7.504 MB / 0.7211 GB, free: 31.1 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00892/1.698, allocations: 4.815 MB / 0.7258 GB, free: 29.52 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001619/1.698, allocations: 43.03 kB / 0.7258 GB, free: 29.52 MB / 458.7 MB Notification: Performance of matching and sorting (n=1032) (initialization): time 0.02708/1.725, allocations: 11.45 MB / 0.737 GB, free: 22.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001186/1.726, allocations: 74.72 kB / 0.7371 GB, free: 22.73 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001693/1.726, allocations: 156 kB / 0.7372 GB, free: 22.58 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006694/1.733, allocations: 2.165 MB / 0.7393 GB, free: 20.95 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007557/1.74, allocations: 1.812 MB / 0.7411 GB, free: 19.39 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02232/1.762, allocations: 13.59 MB / 0.7544 GB, free: 7.434 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007754/1.77, allocations: 305.9 kB / 0.7547 GB, free: 7.199 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001734/1.772, allocations: 469 kB / 0.7551 GB, free: 6.758 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 700 * 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 (956): * Single equations (assignments): 951 * 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%) 20,(7,46.9%) 20} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002233/1.774, allocations: 493.7 kB / 0.7556 GB, free: 6.27 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001135/1.775, allocations: 458.1 kB / 0.756 GB, free: 5.816 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0149/1.79, allocations: 6.769 MB / 0.7626 GB, free: 324 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.175e-05/1.791, allocations: 32.86 kB / 0.7627 GB, free: 292 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-05/1.791, allocations: 12 kB / 0.7627 GB, free: 280 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.944e-05/1.791, allocations: 13.12 kB / 0.7627 GB, free: 280 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04207/1.833, allocations: 14.88 MB / 0.7772 GB, free: 4.836 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-05/1.833, allocations: 4 kB / 0.7772 GB, free: 4.832 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003334/1.836, allocations: 0.5088 MB / 0.7777 GB, free: 4.414 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006643/1.843, allocations: 1.853 MB / 0.7795 GB, free: 3.066 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006809/1.844, allocations: 23.28 kB / 0.7796 GB, free: 3.047 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02371/1.867, allocations: 11.94 MB / 0.7912 GB, free: 8.547 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.666e-05/1.867, allocations: 14.94 kB / 0.7912 GB, free: 8.535 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03197/1.899, allocations: 12.16 MB / 0.8031 GB, free: 14.91 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003429/1.903, allocations: 1.003 MB / 0.8041 GB, free: 13.88 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001402/1.904, allocations: 12 kB / 0.8041 GB, free: 13.87 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003797/1.908, allocations: 163.7 kB / 0.8043 GB, free: 13.71 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00102/1.909, allocations: 208.8 kB / 0.8045 GB, free: 13.51 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004363/1.91, allocations: 91.98 kB / 0.8045 GB, free: 13.42 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.006889/1.917, allocations: 2.659 MB / 0.8071 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.19e-06/1.917, allocations: 0 / 0.8071 GB, free: 10.77 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.009615/1.926, allocations: 1.283 MB / 0.8084 GB, free: 9.492 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (260): * Single equations (assignments): 255 * 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.0009731/1.927, allocations: 162.5 kB / 0.8085 GB, free: 9.328 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02023/1.947, allocations: 8.478 MB / 0.8168 GB, free: 0.8555 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/1.947, allocations: 4 kB / 0.8168 GB, free: 0.8516 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.2884/2.236, allocations: 3.772 MB / 0.8205 GB, free: 128.9 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00417/2.24, allocations: 0.4902 MB / 0.821 GB, free: 128.9 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02994/2.27, allocations: 12.71 MB / 0.8334 GB, free: 126.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009541/2.28, allocations: 4.531 MB / 0.8378 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002146/2.282, allocations: 390.4 kB / 0.8382 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of SimCode: time 1.93e-06/2.282, allocations: 0 / 0.8382 GB, free: 125.7 MB / 0.4948 GB Notification: Performance of Templates: time 0.174/2.456, allocations: 127.9 MB / 0.9631 GB, free: 40.88 MB / 0.4948 GB