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.FreeMotionScalarInit2.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.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.r_rel_a_1|freeMotionScalarInit.r_rel_a_2|freeMotionScalarInit.r_rel_a_3|freeMotionScalarInit.v_rel_a_1|freeMotionScalarInit.v_rel_a_2|freeMotionScalarInit.v_rel_a_3|freeMotionScalarInit.w_rel_b_1|freeMotionScalarInit.w_rel_b_2|freeMotionScalarInit.w_rel_b_3",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadModel(ModelicaTest): time 1.787/1.787, allocations: 209.3 MB / 222.4 MB, free: 7.727 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.737e-05/2.746e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08442/0.08447, allocations: 48.71 MB / 326.5 MB, free: 14.5 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3537/0.4382, allocations: 91.16 MB / 417.7 MB, free: 0.6523 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000208/0.4384, allocations: 71.97 kB / 417.8 MB, free: 0.6172 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.338/0.7765, allocations: 90.99 MB / 0.4968 GB, free: 12.4 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.702e-06/0.7765, allocations: 4 kB / 0.4968 GB, free: 12.4 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001769/0.7767, allocations: 83.98 kB / 0.4969 GB, free: 12.32 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.01535/0.7921, allocations: 4.293 MB / 0.5011 GB, free: 7.961 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.7921, allocations: 8.031 kB / 0.5011 GB, free: 7.953 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01953/0.8117, allocations: 3.589 MB / 0.5046 GB, free: 4.352 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01527/0.827, allocations: 4.698 MB / 0.5092 GB, free: 15.59 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004/0.8274, allocations: 340.7 kB / 0.5095 GB, free: 15.26 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001746/0.8292, allocations: 439.8 kB / 0.51 GB, free: 14.83 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02856/0.8578, allocations: 11.4 MB / 0.5211 GB, free: 2.957 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000149/0.858, allocations: 31.7 kB / 0.5211 GB, free: 2.926 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009232/0.8589, allocations: 203.9 kB / 0.5213 GB, free: 2.727 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002246/0.8612, allocations: 1.255 MB / 0.5225 GB, free: 1.469 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2591/1.12, allocations: 10.93 MB / 0.5332 GB, free: 94.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05971/1.18, allocations: 38.03 MB / 0.5704 GB, free: 78.82 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01059/1.191, allocations: 4.651 MB / 0.5749 GB, free: 76.6 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003654/1.194, allocations: 2.22 MB / 0.5771 GB, free: 75.75 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001187/1.196, allocations: 1.325 MB / 0.5784 GB, free: 74.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.692e-05/1.196, allocations: 55.12 kB / 0.5784 GB, free: 74.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=244): time 7.261e-06/1.196, allocations: 3.812 kB / 0.5784 GB, free: 74.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=256): time 0.04267/1.238, allocations: 11.26 MB / 0.5894 GB, free: 71.95 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/1.238, allocations: 75.22 kB / 0.5895 GB, free: 71.88 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004399/1.243, allocations: 2.484 MB / 0.5919 GB, free: 70.98 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003486/1.243, allocations: 61.16 kB / 0.592 GB, free: 70.92 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001399/1.245, allocations: 2.946 MB / 0.5948 GB, free: 68.71 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008197/1.245, allocations: 0.9436 MB / 0.5958 GB, free: 68.01 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003283/1.246, allocations: 115.9 kB / 0.5959 GB, free: 67.92 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003569/1.246, allocations: 0.5587 MB / 0.5964 GB, free: 67.5 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004124/1.25, allocations: 2.229 MB / 0.5986 GB, free: 66.79 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005548/1.256, allocations: 5.365 MB / 0.6038 GB, free: 61.91 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006295/1.262, allocations: 3.51 MB / 0.6073 GB, free: 60.86 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.268e-05/1.262, allocations: 32.91 kB / 0.6073 GB, free: 60.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01715/1.28, allocations: 8.225 MB / 0.6153 GB, free: 54.87 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.372e-05/1.28, allocations: 52 kB / 0.6154 GB, free: 54.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001108/1.28, allocations: 112 kB / 0.6155 GB, free: 54.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003835/1.284, allocations: 1.032 MB / 0.6165 GB, free: 54.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0052/1.289, allocations: 1.313 MB / 0.6178 GB, free: 52.88 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002822/1.292, allocations: 2.465 MB / 0.6202 GB, free: 50.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005107/1.297, allocations: 320 kB / 0.6205 GB, free: 50.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006086/1.297, allocations: 335.6 kB / 0.6208 GB, free: 49.98 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 500 * 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],freeMotionScalarInit.arrowColor[3],freeMotionScalarInit.arrowColor[2],freeMotionScalarInit.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (710): * Single equations (assignments): 701 * 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 {(3,100.0%),(2,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.0008941/1.298, allocations: 0.5043 MB / 0.6213 GB, free: 49.47 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004658/1.299, allocations: 284.3 kB / 0.6216 GB, free: 49.19 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009987/1.309, allocations: 4.865 MB / 0.6263 GB, free: 45.19 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.241e-05/1.309, allocations: 47.23 kB / 0.6264 GB, free: 45.14 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.663e-06/1.309, allocations: 0 / 0.6264 GB, free: 45.14 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.01e-05/1.309, allocations: 13.27 kB / 0.6264 GB, free: 45.14 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02256/1.332, allocations: 11.46 MB / 0.6376 GB, free: 35.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.129e-05/1.332, allocations: 8 kB / 0.6376 GB, free: 35.49 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002235/1.334, allocations: 414.2 kB / 0.638 GB, free: 35.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003175/1.337, allocations: 0.6122 MB / 0.6386 GB, free: 34.76 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000255/1.337, allocations: 51.8 kB / 0.6386 GB, free: 34.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002418/1.34, allocations: 2.067 MB / 0.6406 GB, free: 32.71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.146e-05/1.34, allocations: 15.94 kB / 0.6407 GB, free: 32.69 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01228/1.352, allocations: 7.663 MB / 0.6481 GB, free: 25.46 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007452/1.353, allocations: 336.5 kB / 0.6485 GB, free: 25.12 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005202/1.353, allocations: 51.75 kB / 0.6485 GB, free: 25.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001585/1.355, allocations: 128.4 kB / 0.6486 GB, free: 24.99 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003494/1.355, allocations: 156.6 kB / 0.6488 GB, free: 24.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002257/1.356, allocations: 71.8 kB / 0.6488 GB, free: 24.82 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002743/1.358, allocations: 1.688 MB / 0.6505 GB, free: 23.33 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.275e-06/1.358, allocations: 0 / 0.6505 GB, free: 23.33 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004972/1.363, allocations: 0.9941 MB / 0.6515 GB, free: 22.34 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * Number of states: 12 (freeMotionScalarInit.r_rel_a_1,freeMotionScalarInit.r_rel_a_2,freeMotionScalarInit.r_rel_a_3,freeMotionScalarInit.v_rel_a_1,freeMotionScalarInit.v_rel_a_2,freeMotionScalarInit.v_rel_a_3,freeMotionScalarInit.angle_1,freeMotionScalarInit.angle_2,freeMotionScalarInit.angle_3,freeMotionScalarInit.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (207): * Single equations (assignments): 198 * 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.0004776/1.364, allocations: 197.7 kB / 0.6517 GB, free: 22.16 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1987:5-1989:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1984:5-1986:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.01053/1.374, allocations: 5.891 MB / 0.6574 GB, free: 16.79 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/1.375, allocations: 8.125 kB / 0.6574 GB, free: 16.79 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004389/1.379, allocations: 2.356 MB / 0.6597 GB, free: 14.63 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002223/1.381, allocations: 394.2 kB / 0.6601 GB, free: 14.31 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01854/1.4, allocations: 9.762 MB / 0.6696 GB, free: 4.828 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004932/1.405, allocations: 3.606 MB / 0.6731 GB, free: 1.207 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001322/1.406, allocations: 279.4 kB / 0.6734 GB, free: 0.9375 MB / 426.7 MB Notification: Performance of SimCode: time 1.706e-06/1.406, allocations: 4 kB / 0.6734 GB, free: 0.9336 MB / 426.7 MB Notification: Performance of Templates: time 0.3831/1.789, allocations: 113.8 MB / 0.7846 GB, free: 57.57 MB / 442.7 MB