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.FreeMotion.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.FreeMotion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotion.Q.1.|freeMotion.Q.2.|freeMotion.Q.3.|freeMotion.Q.4.|freeMotion.r_rel_a.1.|freeMotion.r_rel_a.2.|freeMotion.r_rel_a.3.|freeMotion.v_rel_a.1.|freeMotion.v_rel_a.2.|freeMotion.v_rel_a.3.|freeMotion.w_rel_b.1.|freeMotion.w_rel_b.2.|freeMotion.w_rel_b.3.",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotion") Notification: Performance of loadModel(ModelicaTest): time 2.133/2.133, allocations: 234.9 MB / 250.5 MB, free: 9.457 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004312/0.0004313, allocations: 12 kB / 314.4 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2923/0.2928, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1806/0.4734, allocations: 96.03 MB / 465.3 MB, free: 10.53 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002591/0.4737, allocations: 83.89 kB / 465.4 MB, free: 10.45 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5283/1.002, allocations: 86.52 MB / 0.539 GB, free: 32.6 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.457e-06/1.002, allocations: 0 / 0.539 GB, free: 32.6 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001344/1.002, allocations: 75.98 kB / 0.539 GB, free: 32.53 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: 1557 * Number of variables: 1557 Notification: Performance of Generate backend data structure: time 0.01007/1.012, allocations: 3.86 MB / 0.5428 GB, free: 28.6 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/1.012, allocations: 8.031 kB / 0.5428 GB, free: 28.59 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01879/1.031, allocations: 3.644 MB / 0.5464 GB, free: 24.93 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0132/1.044, allocations: 4.955 MB / 0.5512 GB, free: 19.93 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000296/1.045, allocations: 291.6 kB / 0.5515 GB, free: 19.64 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001837/1.047, allocations: 395.7 kB / 0.5519 GB, free: 19.25 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02169/1.068, allocations: 10.35 MB / 0.562 GB, free: 8.41 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001429/1.069, allocations: 27.75 kB / 0.562 GB, free: 8.383 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001047/1.07, allocations: 175.9 kB / 0.5622 GB, free: 8.211 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001656/1.071, allocations: 1.191 MB / 0.5633 GB, free: 7.02 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02214/1.093, allocations: 10.15 MB / 0.5732 GB, free: 12.86 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06741/1.161, allocations: 36.47 MB / 0.6089 GB, free: 7.477 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01099/1.172, allocations: 4.4 MB / 0.6132 GB, free: 2.848 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001747/1.174, allocations: 1.323 MB / 0.6144 GB, free: 1.305 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.602e-05/1.174, allocations: 56.56 kB / 0.6145 GB, free: 1.242 MB / 442.7 MB Notification: Performance of pre-optimization done (n=245): time 6.511e-06/1.174, allocations: 0 / 0.6145 GB, free: 1.242 MB / 442.7 MB Notification: Performance of matching and sorting (n=261): time 0.05444/1.228, allocations: 17.3 MB / 0.6314 GB, free: 15.67 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001727/1.23, allocations: 1.535 MB / 0.6329 GB, free: 13.98 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005334/1.235, allocations: 2.472 MB / 0.6353 GB, free: 11.49 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004622/1.236, allocations: 57.7 kB / 0.6354 GB, free: 11.43 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002798/1.239, allocations: 2.716 MB / 0.638 GB, free: 8.676 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001479/1.24, allocations: 0.9596 MB / 0.639 GB, free: 7.703 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00051/1.241, allocations: 112 kB / 0.6391 GB, free: 7.594 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005734/1.241, allocations: 0.5585 MB / 0.6396 GB, free: 7.023 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005545/1.247, allocations: 2.431 MB / 0.642 GB, free: 4.586 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2751/1.522, allocations: 5.434 MB / 0.6473 GB, free: 120.4 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007714/1.53, allocations: 3.639 MB / 0.6508 GB, free: 120.4 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001508/1.53, allocations: 29.78 kB / 0.6509 GB, free: 120.4 MB / 474.7 MB Notification: Performance of matching and sorting (n=750) (initialization): time 0.02668/1.557, allocations: 9.408 MB / 0.6601 GB, free: 119.9 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001074/1.557, allocations: 49.59 kB / 0.6601 GB, free: 119.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01553/1.572, allocations: 4.591 MB / 0.6646 GB, free: 119.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01242/1.585, allocations: 2.059 MB / 0.6666 GB, free: 119.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005433/1.59, allocations: 1.285 MB / 0.6679 GB, free: 119.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00859/1.599, allocations: 5.158 MB / 0.6729 GB, free: 117 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00533/1.604, allocations: 391 kB / 0.6733 GB, free: 117 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001117/1.606, allocations: 320.2 kB / 0.6736 GB, free: 117 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 479 * Number of states: 0 () * Number of discrete variables: 21 (frame_a1.color_x[3],frame_a1.color_x[2],frame_a1.color_x[1],frame_a.color_x[3],frame_a.color_x[2],frame_a.color_x[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],freeMotion.arrowColor[3],freeMotion.arrowColor[2],freeMotion.arrowColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (688): * Single equations (assignments): 676 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004856/1.61, allocations: 2.104 MB / 0.6756 GB, free: 116.8 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005711/1.611, allocations: 276.2 kB / 0.6759 GB, free: 116.8 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01228/1.623, allocations: 5.39 MB / 0.6812 GB, free: 115.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01129/1.635, allocations: 4.638 MB / 0.6857 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.864e-05/1.635, allocations: 7.438 kB / 0.6857 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-05/1.635, allocations: 10.27 kB / 0.6857 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03157/1.666, allocations: 14.65 MB / 0.7 GB, free: 109.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.223e-05/1.666, allocations: 8 kB / 0.7 GB, free: 109.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002578/1.669, allocations: 420.8 kB / 0.7004 GB, free: 109.1 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004934/1.674, allocations: 1.192 MB / 0.7016 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004977/1.674, allocations: 63.17 kB / 0.7016 GB, free: 108.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005235/1.68, allocations: 4.529 MB / 0.7061 GB, free: 104.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009423/1.681, allocations: 1.479 MB / 0.7075 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01533/1.696, allocations: 8.839 MB / 0.7161 GB, free: 94.74 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007799/1.697, allocations: 336.9 kB / 0.7165 GB, free: 94.4 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006732/1.698, allocations: 60.27 kB / 0.7165 GB, free: 94.35 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001958/1.7, allocations: 189.5 kB / 0.7167 GB, free: 94.24 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004628/1.7, allocations: 169.7 kB / 0.7169 GB, free: 94.13 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002494/1.7, allocations: 82.56 kB / 0.7169 GB, free: 94.06 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002991/1.703, allocations: 1.686 MB / 0.7186 GB, free: 92.67 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.53e-07/1.703, allocations: 3.594 kB / 0.7186 GB, free: 92.67 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006049/1.709, allocations: 1.066 MB / 0.7196 GB, free: 91.62 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 42 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],freeMotion.r_rel_a[1],freeMotion.r_rel_a[2],freeMotion.r_rel_a[3],freeMotion.v_rel_a[1],freeMotion.v_rel_a[2],freeMotion.v_rel_a[3],freeMotion.w_rel_b[1],freeMotion.w_rel_b[2],freeMotion.w_rel_b[3]) * 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 (202): * Single equations (assignments): 192 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006955/1.71, allocations: 208.8 kB / 0.7198 GB, free: 91.43 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01212/1.722, allocations: 6.473 MB / 0.7261 GB, free: 85.79 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.096e-05/1.722, allocations: 0.75 kB / 0.7261 GB, free: 85.79 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00596/1.728, allocations: 2.894 MB / 0.729 GB, free: 83.27 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002211/1.731, allocations: 358.8 kB / 0.7293 GB, free: 82.98 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02179/1.752, allocations: 13.01 MB / 0.742 GB, free: 71.15 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005508/1.758, allocations: 3.391 MB / 0.7453 GB, free: 68.17 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001419/1.759, allocations: 267.4 kB / 0.7456 GB, free: 67.91 MB / 474.7 MB Notification: Performance of SimCode: time 2.452e-06/1.759, allocations: 0 / 0.7456 GB, free: 67.91 MB / 474.7 MB Notification: Performance of Templates: time 0.4278/2.187, allocations: 125.9 MB / 0.8685 GB, free: 122.6 MB / 490.7 MB