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.8/1.8, allocations: 209.2 MB / 224.8 MB, free: 196 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004382/0.0004384, allocations: 12 kB / 282.6 MB, free: 9.59 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2822, allocations: 48.71 MB / 331.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.144/0.4263, allocations: 96.07 MB / 427.3 MB, free: 14.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002706/0.4266, allocations: 75.97 kB / 427.4 MB, free: 14.25 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6259/1.053, allocations: 118.1 MB / 0.5327 GB, free: 64.67 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.379e-06/1.053, allocations: 0 / 0.5327 GB, free: 64.67 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0003474/1.053, allocations: 127.9 kB / 0.5329 GB, free: 64.54 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: 2023 * Number of variables: 2023 Notification: Performance of Generate backend data structure: time 0.01989/1.073, allocations: 6.417 MB / 0.5391 GB, free: 58.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.869e-05/1.073, allocations: 12.03 kB / 0.5391 GB, free: 58.04 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03442/1.107, allocations: 6.993 MB / 0.546 GB, free: 51.02 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02161/1.129, allocations: 7.814 MB / 0.5536 GB, free: 43.12 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004507/1.129, allocations: 439.5 kB / 0.554 GB, free: 42.7 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002245/1.132, allocations: 0.5777 MB / 0.5546 GB, free: 42.12 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03223/1.164, allocations: 13.92 MB / 0.5682 GB, free: 27.01 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002995/1.164, allocations: 87.19 kB / 0.5683 GB, free: 26.93 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001369/1.166, allocations: 283.8 kB / 0.5685 GB, free: 26.65 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001951/1.168, allocations: 1.322 MB / 0.5698 GB, free: 25.33 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02771/1.195, allocations: 11.69 MB / 0.5812 GB, free: 13.62 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3589/1.554, allocations: 62.02 MB / 0.6418 GB, free: 52.52 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01874/1.573, allocations: 5.767 MB / 0.6474 GB, free: 51.86 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000774/1.574, allocations: 0.6868 MB / 0.6481 GB, free: 51.29 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/1.574, allocations: 62.25 kB / 0.6482 GB, free: 51.25 MB / 426.7 MB Notification: Performance of pre-optimization done (n=254): time 8.042e-06/1.574, allocations: 0 / 0.6482 GB, free: 51.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=320): time 0.1356/1.71, allocations: 34.22 MB / 0.6816 GB, free: 46.57 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000135/1.71, allocations: 270.4 kB / 0.6819 GB, free: 46.29 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01203/1.722, allocations: 4.665 MB / 0.6864 GB, free: 45.29 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007127/1.723, allocations: 77.98 kB / 0.6865 GB, free: 45.22 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002744/1.725, allocations: 3.864 MB / 0.6903 GB, free: 42.25 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001511/1.727, allocations: 1.194 MB / 0.6914 GB, free: 41.37 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007412/1.728, allocations: 151 kB / 0.6916 GB, free: 41.25 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0004449/1.728, allocations: 0.6438 MB / 0.6922 GB, free: 40.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006986/1.735, allocations: 3.32 MB / 0.6954 GB, free: 39.62 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009192/1.744, allocations: 7.552 MB / 0.7028 GB, free: 32.81 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009369/1.754, allocations: 4.918 MB / 0.7076 GB, free: 31.02 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001259/1.754, allocations: 45.88 kB / 0.7077 GB, free: 31.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.02895/1.783, allocations: 12.4 MB / 0.7198 GB, free: 22.73 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001178/1.783, allocations: 68 kB / 0.7198 GB, free: 22.67 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001817/1.783, allocations: 148.1 kB / 0.72 GB, free: 22.52 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006841/1.79, allocations: 2.152 MB / 0.7221 GB, free: 20.91 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007404/1.798, allocations: 1.752 MB / 0.7238 GB, free: 19.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02335/1.821, allocations: 14.81 MB / 0.7382 GB, free: 6.188 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007781/1.829, allocations: 454.9 kB / 0.7387 GB, free: 5.809 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00161/1.831, allocations: 454.2 kB / 0.7391 GB, free: 5.383 MB / 426.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.007177/1.838, allocations: 2.81 MB / 0.7419 GB, free: 2.91 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001296/1.839, allocations: 0.4898 MB / 0.7423 GB, free: 2.414 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02001/1.859, allocations: 7.156 MB / 0.7493 GB, free: 12.76 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.692e-05/1.859, allocations: 40.64 kB / 0.7494 GB, free: 12.72 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.866e-05/1.859, allocations: 11.25 kB / 0.7494 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-05/1.859, allocations: 16.36 kB / 0.7494 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0426/1.902, allocations: 16.06 MB / 0.7651 GB, free: 14.11 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.231e-05/1.902, allocations: 8 kB / 0.7651 GB, free: 14.11 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003395/1.905, allocations: 0.5039 MB / 0.7656 GB, free: 13.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006875/1.912, allocations: 1.876 MB / 0.7674 GB, free: 11.72 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005555/1.913, allocations: 67.98 kB / 0.7675 GB, free: 11.65 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02697/1.94, allocations: 13.31 MB / 0.7805 GB, free: 14.1 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.464e-05/1.94, allocations: 15.61 kB / 0.7805 GB, free: 14.09 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02733/1.967, allocations: 12.19 MB / 0.7924 GB, free: 1.578 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005752/1.973, allocations: 1.049 MB / 0.7934 GB, free: 0.5039 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002153/1.975, allocations: 56 kB / 0.7935 GB, free: 460 kB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006415/1.982, allocations: 215.7 kB / 0.7937 GB, free: 244 kB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001252/1.983, allocations: 220.7 kB / 0.7939 GB, free: 28 kB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006747/1.984, allocations: 89.47 kB / 0.794 GB, free: 15.94 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.01282/1.997, allocations: 3.313 MB / 0.7972 GB, free: 12.65 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.661e-06/1.997, allocations: 0 / 0.7972 GB, free: 12.65 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01571/2.012, allocations: 1.489 MB / 0.7987 GB, free: 11.16 MB / 490.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 () * 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.001256/2.014, allocations: 214.5 kB / 0.7989 GB, free: 10.95 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0278/2.042, allocations: 8.285 MB / 0.8069 GB, free: 2.664 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.586e-06/2.042, allocations: 0 / 0.8069 GB, free: 2.664 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2605/2.302, allocations: 3.916 MB / 0.8108 GB, free: 150.6 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004331/2.306, allocations: 0.6282 MB / 0.8114 GB, free: 150.6 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03484/2.341, allocations: 17.5 MB / 0.8285 GB, free: 144.4 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009738/2.351, allocations: 4.519 MB / 0.8329 GB, free: 143.6 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002109/2.353, allocations: 412.1 kB / 0.8333 GB, free: 143.5 MB / 490.7 MB Notification: Performance of SimCode: time 1.996e-06/2.353, allocations: 0 / 0.8333 GB, free: 143.5 MB / 490.7 MB Notification: Performance of Templates: time 0.1754/2.529, allocations: 130.8 MB / 0.961 GB, free: 49.29 MB / 490.7 MB