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.FreeMotionScalarInit5.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.FreeMotionScalarInit5,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit1.r_rel_a_1|freeMotionScalarInit1.r_rel_a_2|freeMotionScalarInit1.r_rel_a_3|freeMotionScalarInit1.v_rel_a_1|freeMotionScalarInit1.v_rel_a_2|freeMotionScalarInit1.v_rel_a_3|freeMotionScalarInit2.angle_1|freeMotionScalarInit2.angle_2|freeMotionScalarInit2.angle_3|freeMotionScalarInit2.angle_d_1|freeMotionScalarInit2.angle_d_2|freeMotionScalarInit2.angle_d_3",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit5") Notification: Performance of loadModel(ModelicaTest): time 2.29/2.29, allocations: 234.9 MB / 251.1 MB, free: 9.699 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004364/0.0004364, allocations: 16 kB / 314.9 MB, free: 9.746 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3653/0.3657, allocations: 54.85 MB / 369.8 MB, free: 12.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.175/0.5408, allocations: 98.15 MB / 467.9 MB, free: 10.52 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003087/0.5412, allocations: 79.97 kB / 468 MB, free: 10.45 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7922/1.333, allocations: 95.14 MB / 0.55 GB, free: 84.36 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.947e-06/1.334, allocations: 0 / 0.55 GB, free: 84.36 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003189/1.334, allocations: 88 kB / 0.55 GB, free: 84.27 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1784 * Number of variables: 1784 Notification: Performance of Generate backend data structure: time 0.03146/1.365, allocations: 4.646 MB / 0.5546 GB, free: 79.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.7e-05/1.365, allocations: 8.031 kB / 0.5546 GB, free: 79.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04579/1.411, allocations: 3.589 MB / 0.5581 GB, free: 75.95 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02802/1.439, allocations: 4.834 MB / 0.5628 GB, free: 71.05 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006411/1.44, allocations: 353.3 kB / 0.5632 GB, free: 70.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003844/1.444, allocations: 471.8 kB / 0.5636 GB, free: 70.25 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05429/1.498, allocations: 11.51 MB / 0.5749 GB, free: 58.25 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003641/1.499, allocations: 27.72 kB / 0.5749 GB, free: 58.22 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003297/1.502, allocations: 211.9 kB / 0.5751 GB, free: 58.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003787/1.506, allocations: 1.248 MB / 0.5763 GB, free: 56.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04501/1.551, allocations: 10.96 MB / 0.587 GB, free: 45.79 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1123/1.663, allocations: 38.44 MB / 0.6245 GB, free: 6.477 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01792/1.681, allocations: 4.401 MB / 0.6288 GB, free: 1.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002249/1.684, allocations: 1.315 MB / 0.6301 GB, free: 312 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.042e-05/1.684, allocations: 52.56 kB / 0.6302 GB, free: 252 kB / 426.7 MB Notification: Performance of pre-optimization done (n=244): time 9.528e-06/1.684, allocations: 0 / 0.6302 GB, free: 252 kB / 426.7 MB Notification: Performance of matching and sorting (n=265): time 0.1139/1.798, allocations: 14.52 MB / 0.6444 GB, free: 1.527 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.338e-05/1.798, allocations: 77.34 kB / 0.6444 GB, free: 1.441 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01056/1.808, allocations: 2.965 MB / 0.6473 GB, free: 14.46 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007334/1.809, allocations: 65.69 kB / 0.6474 GB, free: 14.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004722/1.814, allocations: 3.083 MB / 0.6504 GB, free: 11.26 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002503/1.816, allocations: 0.9752 MB / 0.6513 GB, free: 10.27 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001165/1.818, allocations: 116 kB / 0.6515 GB, free: 10.16 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001236/1.819, allocations: 0.5631 MB / 0.652 GB, free: 9.586 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01029/1.829, allocations: 2.366 MB / 0.6543 GB, free: 7.215 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0181/1.847, allocations: 5.66 MB / 0.6598 GB, free: 15.93 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01384/1.861, allocations: 3.653 MB / 0.6634 GB, free: 12.28 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001748/1.862, allocations: 36 kB / 0.6634 GB, free: 12.25 MB / 474.7 MB Notification: Performance of matching and sorting (n=793) (initialization): time 0.04539/1.907, allocations: 8.648 MB / 0.6719 GB, free: 3.582 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001588/1.907, allocations: 52 kB / 0.6719 GB, free: 3.531 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002822/1.908, allocations: 124.1 kB / 0.6721 GB, free: 3.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009995/1.918, allocations: 1.052 MB / 0.6731 GB, free: 2.348 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01436/1.932, allocations: 1.372 MB / 0.6744 GB, free: 0.9727 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4623/2.394, allocations: 2.49 MB / 0.6769 GB, free: 117.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006077/2.401, allocations: 322.2 kB / 0.6772 GB, free: 117.6 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001776/2.402, allocations: 348.9 kB / 0.6775 GB, free: 117.6 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 521 * Number of states: 0 () * Number of discrete variables: 24 (freeMotionScalarInit2.arrowColor[3],freeMotionScalarInit2.arrowColor[2],freeMotionScalarInit2.arrowColor[1],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],freeMotionScalarInit1.arrowColor[3],freeMotionScalarInit1.arrowColor[2],freeMotionScalarInit1.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 (740): * Single equations (assignments): 731 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * 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.006968/2.409, allocations: 2.364 MB / 0.6798 GB, free: 117.4 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007802/2.41, allocations: 298.8 kB / 0.6801 GB, free: 117.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01656/2.427, allocations: 5.084 MB / 0.6851 GB, free: 117.3 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001141/2.427, allocations: 44.69 kB / 0.6851 GB, free: 117.3 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.684e-05/2.427, allocations: 0 / 0.6851 GB, free: 117.3 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-05/2.427, allocations: 15.3 kB / 0.6851 GB, free: 117.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03519/2.462, allocations: 11.8 MB / 0.6966 GB, free: 116.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.166e-05/2.462, allocations: 6.719 kB / 0.6966 GB, free: 116.5 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003882/2.466, allocations: 423.9 kB / 0.697 GB, free: 116.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006179/2.472, allocations: 0.9147 MB / 0.6979 GB, free: 116.4 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006301/2.473, allocations: 63.56 kB / 0.698 GB, free: 116.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003621/2.477, allocations: 2.292 MB / 0.7002 GB, free: 115.2 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.247e-06/2.477, allocations: 12.88 kB / 0.7003 GB, free: 115.2 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02013/2.497, allocations: 7.532 MB / 0.7076 GB, free: 112.7 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009954/2.498, allocations: 342.1 kB / 0.7079 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001263/2.499, allocations: 50.06 kB / 0.708 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002917/2.502, allocations: 144.5 kB / 0.7081 GB, free: 112.6 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006698/2.503, allocations: 155.2 kB / 0.7083 GB, free: 112.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002758/2.503, allocations: 80.52 kB / 0.7083 GB, free: 112.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004361/2.508, allocations: 1.803 MB / 0.7101 GB, free: 111.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.82e-07/2.508, allocations: 3.719 kB / 0.7101 GB, free: 111.9 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006826/2.514, allocations: 1.043 MB / 0.7111 GB, free: 111.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 12 (freeMotionScalarInit1.r_rel_a_1,freeMotionScalarInit1.r_rel_a_2,freeMotionScalarInit1.r_rel_a_3,freeMotionScalarInit1.v_rel_a_1,freeMotionScalarInit1.v_rel_a_2,freeMotionScalarInit1.v_rel_a_3,freeMotionScalarInit2.angle_1,freeMotionScalarInit2.angle_2,freeMotionScalarInit2.angle_3,freeMotionScalarInit2.angle_d_1,freeMotionScalarInit2.angle_d_2,freeMotionScalarInit2.angle_d_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 (216): * Single equations (assignments): 207 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(3,100.0%)} * Non-linear Jacobian: 0 * 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.001012/2.516, allocations: 197.7 kB / 0.7113 GB, free: 111.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01698/2.533, allocations: 6.225 MB / 0.7174 GB, free: 109.8 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.846e-05/2.533, allocations: 3.969 kB / 0.7174 GB, free: 109.8 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01091/2.544, allocations: 2.594 MB / 0.7199 GB, free: 108.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005375/2.549, allocations: 453.4 kB / 0.7204 GB, free: 108.8 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04392/2.593, allocations: 14.05 MB / 0.7341 GB, free: 99.95 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01208/2.605, allocations: 3.766 MB / 0.7378 GB, free: 97.07 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002613/2.608, allocations: 293.2 kB / 0.738 GB, free: 96.8 MB / 474.7 MB Notification: Performance of SimCode: time 1.984e-06/2.608, allocations: 0 / 0.738 GB, free: 96.8 MB / 474.7 MB Notification: Performance of Templates: time 0.5928/3.201, allocations: 120 MB / 0.8552 GB, free: 131.7 MB / 490.7 MB