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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.339/2.339, allocations: 235 MB / 248.1 MB, free: 14.4 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.833e-05/2.846e-05, allocations: 4 kB / 309.7 MB, free: 1.328 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3233/0.3234, allocations: 54.86 MB / 364.5 MB, free: 5.535 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1567/0.4801, allocations: 102.8 MB / 467.4 MB, free: 9.645 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/0.4804, allocations: 71.97 kB / 467.4 MB, free: 9.574 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6975/1.178, allocations: 118.5 MB / 0.5722 GB, free: 105 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.34e-06/1.178, allocations: 0 / 0.5722 GB, free: 105 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003456/1.178, allocations: 114.3 kB / 0.5723 GB, free: 105 MB / 458.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.01916/1.198, allocations: 5.948 MB / 0.5781 GB, free: 102.2 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/1.198, allocations: 10.09 kB / 0.5781 GB, free: 102.2 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03445/1.232, allocations: 6.998 MB / 0.5849 GB, free: 101.1 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02162/1.254, allocations: 7.793 MB / 0.5925 GB, free: 97.05 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005104/1.254, allocations: 437.1 kB / 0.593 GB, free: 96.88 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002568/1.257, allocations: 0.5906 MB / 0.5935 GB, free: 96.7 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03308/1.29, allocations: 13.82 MB / 0.607 GB, free: 84.09 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003957/1.29, allocations: 87.23 kB / 0.6071 GB, free: 84 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002241/1.293, allocations: 279.7 kB / 0.6074 GB, free: 83.77 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002151/1.295, allocations: 1.316 MB / 0.6087 GB, free: 82.45 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03701/1.332, allocations: 11.52 MB / 0.6199 GB, free: 70.93 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1088/1.441, allocations: 62.09 MB / 0.6806 GB, free: 7.293 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01734/1.458, allocations: 5.701 MB / 0.6861 GB, free: 1.445 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005577/1.464, allocations: 3.284 MB / 0.6893 GB, free: 14.16 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001039/1.465, allocations: 0.6955 MB / 0.69 GB, free: 13.36 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.77e-05/1.465, allocations: 60.52 kB / 0.6901 GB, free: 13.3 MB / 474.7 MB Notification: Performance of pre-optimization done (n=254): time 7.699e-06/1.465, allocations: 0 / 0.6901 GB, free: 13.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=320): time 0.3866/1.852, allocations: 29.16 MB / 0.7185 GB, free: 107.9 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001013/1.852, allocations: 265.5 kB / 0.7188 GB, free: 107.6 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0109/1.863, allocations: 4.627 MB / 0.7233 GB, free: 107.2 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006977/1.863, allocations: 72.17 kB / 0.7234 GB, free: 107.2 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002925/1.866, allocations: 3.871 MB / 0.7272 GB, free: 105.1 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001551/1.868, allocations: 1.188 MB / 0.7283 GB, free: 104.4 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00078/1.869, allocations: 158.2 kB / 0.7285 GB, free: 104.2 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004887/1.869, allocations: 0.6292 MB / 0.7291 GB, free: 103.8 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006675/1.876, allocations: 3.256 MB / 0.7323 GB, free: 102.6 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008705/1.885, allocations: 7.483 MB / 0.7396 GB, free: 95.81 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00897/1.894, allocations: 4.919 MB / 0.7444 GB, free: 94.24 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001192/1.894, allocations: 46.64 kB / 0.7444 GB, free: 94.24 MB / 474.7 MB Notification: Performance of matching and sorting (n=1004) (initialization): time 0.0279/1.922, allocations: 12.26 MB / 0.7564 GB, free: 90.09 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001191/1.922, allocations: 73.12 kB / 0.7565 GB, free: 90.09 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001765/1.922, allocations: 147.9 kB / 0.7566 GB, free: 90.09 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006763/1.929, allocations: 2.135 MB / 0.7587 GB, free: 89.63 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007394/1.936, allocations: 1.758 MB / 0.7604 GB, free: 89.42 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02172/1.958, allocations: 14.31 MB / 0.7744 GB, free: 81.92 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007969/1.966, allocations: 452.6 kB / 0.7748 GB, free: 81.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001589/1.968, allocations: 456.5 kB / 0.7752 GB, free: 81.71 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 () * 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.001675/1.969, allocations: 0.6761 MB / 0.7759 GB, free: 81.16 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001253/1.971, allocations: 0.4954 MB / 0.7764 GB, free: 80.89 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02111/1.992, allocations: 7.027 MB / 0.7832 GB, free: 78.07 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.869e-05/1.992, allocations: 32 kB / 0.7833 GB, free: 78.04 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.075e-05/1.992, allocations: 13.06 kB / 0.7833 GB, free: 78.03 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.016e-05/1.992, allocations: 14.58 kB / 0.7833 GB, free: 78.03 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03808/2.03, allocations: 16.01 MB / 0.7989 GB, free: 64.96 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.124e-05/2.03, allocations: 12.16 kB / 0.7989 GB, free: 64.95 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003258/2.033, allocations: 0.5 MB / 0.7994 GB, free: 64.54 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006216/2.04, allocations: 1.883 MB / 0.8013 GB, free: 63.16 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000711/2.04, allocations: 63.19 kB / 0.8013 GB, free: 63.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02102/2.061, allocations: 12.8 MB / 0.8138 GB, free: 51.77 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-05/2.062, allocations: 14.67 kB / 0.8139 GB, free: 51.76 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02211/2.084, allocations: 12.07 MB / 0.8256 GB, free: 40.84 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00346/2.087, allocations: 1.055 MB / 0.8267 GB, free: 39.85 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001805/2.089, allocations: 67.59 kB / 0.8267 GB, free: 39.79 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004287/2.093, allocations: 209.2 kB / 0.8269 GB, free: 39.66 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001057/2.094, allocations: 207 kB / 0.8271 GB, free: 39.52 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005888/2.095, allocations: 83.47 kB / 0.8272 GB, free: 39.45 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.00819/2.103, allocations: 3.272 MB / 0.8304 GB, free: 36.57 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.046e-06/2.103, allocations: 0 / 0.8304 GB, free: 36.57 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009911/2.113, allocations: 1.497 MB / 0.8319 GB, free: 35.08 MB / 474.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.001068/2.114, allocations: 216.7 kB / 0.8321 GB, free: 34.87 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01572/2.13, allocations: 8.174 MB / 0.8401 GB, free: 27.07 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/2.13, allocations: 0 / 0.8401 GB, free: 27.07 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009167/2.139, allocations: 3.881 MB / 0.8438 GB, free: 23.16 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004726/2.144, allocations: 0.6124 MB / 0.8444 GB, free: 22.57 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03129/2.175, allocations: 12.88 MB / 0.857 GB, free: 9.629 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009916/2.185, allocations: 4.522 MB / 0.8614 GB, free: 5.094 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002217/2.188, allocations: 403.4 kB / 0.8618 GB, free: 4.699 MB / 474.7 MB Notification: Performance of SimCode: time 2.178e-06/2.188, allocations: 0 / 0.8618 GB, free: 4.699 MB / 474.7 MB Notification: Performance of Templates: time 0.4796/2.667, allocations: 131 MB / 0.9897 GB, free: 55.05 MB / 490.7 MB