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.FreeMotionScalarInit2.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/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.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadModel(ModelicaTest): time 2.172/2.172, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.609e-05/1.625e-05, allocations: 4 kB / 303.2 MB, free: 13.21 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.303/0.303, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1648/0.4679, allocations: 97.23 MB / 455.3 MB, free: 13.57 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.4682, allocations: 79.95 kB / 455.3 MB, free: 13.5 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5611/1.029, allocations: 89.42 MB / 0.532 GB, free: 35.49 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.994e-06/1.029, allocations: 0 / 0.532 GB, free: 35.49 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001368/1.03, allocations: 80 kB / 0.5321 GB, free: 35.41 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: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.01905/1.049, allocations: 4.293 MB / 0.5363 GB, free: 31.05 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.99e-05/1.049, allocations: 8.031 kB / 0.5363 GB, free: 31.04 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0386/1.087, allocations: 3.574 MB / 0.5398 GB, free: 27.46 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02522/1.113, allocations: 4.698 MB / 0.5444 GB, free: 22.71 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003631/1.113, allocations: 144 kB / 0.5445 GB, free: 22.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002407/1.115, allocations: 255.9 kB / 0.5447 GB, free: 22.32 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0202/1.136, allocations: 7.937 MB / 0.5525 GB, free: 14.37 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02324/1.159, allocations: 10.36 MB / 0.5626 GB, free: 3.539 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001734/1.159, allocations: 31.66 kB / 0.5626 GB, free: 3.508 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001571/1.161, allocations: 16 kB / 0.5626 GB, free: 3.492 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001925/1.163, allocations: 1.251 MB / 0.5639 GB, free: 2.234 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07232/1.235, allocations: 35.35 MB / 0.5984 GB, free: 14.26 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006812/1.242, allocations: 4.094 MB / 0.6024 GB, free: 9.941 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004044/1.246, allocations: 2.163 MB / 0.6045 GB, free: 7.777 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001704/1.248, allocations: 1.323 MB / 0.6058 GB, free: 6.23 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.402e-05/1.248, allocations: 56.5 kB / 0.6058 GB, free: 6.168 MB / 442.7 MB Notification: Performance of pre-optimization done (n=246): time 7.715e-06/1.248, allocations: 0 / 0.6058 GB, free: 6.168 MB / 442.7 MB Notification: Performance of matching and sorting (n=258): time 0.03407/1.282, allocations: 10.51 MB / 0.6161 GB, free: 11.62 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.902e-05/1.282, allocations: 73.41 kB / 0.6162 GB, free: 11.53 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004789/1.287, allocations: 2.4 MB / 0.6185 GB, free: 9.121 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003997/1.287, allocations: 25.7 kB / 0.6185 GB, free: 9.09 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003023/1.29, allocations: 3.055 MB / 0.6215 GB, free: 5.992 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001423/1.292, allocations: 0.9248 MB / 0.6224 GB, free: 5.055 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004636/1.292, allocations: 4 kB / 0.6224 GB, free: 5.051 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006082/1.293, allocations: 0.5673 MB / 0.623 GB, free: 4.473 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004946/1.298, allocations: 2.199 MB / 0.6251 GB, free: 2.27 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2691/1.567, allocations: 5.558 MB / 0.6306 GB, free: 106 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007778/1.575, allocations: 3.55 MB / 0.634 GB, free: 106 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002403/1.575, allocations: 35.5 kB / 0.6341 GB, free: 106 MB / 458.7 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.01972/1.595, allocations: 7.844 MB / 0.6417 GB, free: 105.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001336/1.595, allocations: 58.97 kB / 0.6418 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001615/1.595, allocations: 119.4 kB / 0.6419 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004157/1.599, allocations: 1.03 MB / 0.6429 GB, free: 105.5 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005684/1.605, allocations: 1.401 MB / 0.6443 GB, free: 105.4 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002866/1.608, allocations: 2.401 MB / 0.6466 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005313/1.613, allocations: 208.2 kB / 0.6468 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001323/1.615, allocations: 360.6 kB / 0.6472 GB, free: 104.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 545 * 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 (757): * Single equations (assignments): 748 * 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.001171/1.616, allocations: 407.7 kB / 0.6475 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005346/1.616, allocations: 290.8 kB / 0.6478 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01045/1.627, allocations: 4.728 MB / 0.6524 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.08e-05/1.627, allocations: 46.8 kB / 0.6525 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.348e-05/1.627, allocations: 3.875 kB / 0.6525 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.583e-05/1.627, allocations: 11.53 kB / 0.6525 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02289/1.65, allocations: 10.3 MB / 0.6626 GB, free: 102.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-05/1.65, allocations: 11.25 kB / 0.6626 GB, free: 102.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002247/1.652, allocations: 415.5 kB / 0.663 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003205/1.656, allocations: 0.5942 MB / 0.6635 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004394/1.656, allocations: 31.09 kB / 0.6636 GB, free: 102.8 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002361/1.658, allocations: 2.006 MB / 0.6655 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.617e-05/1.658, allocations: 18.61 kB / 0.6656 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01327/1.672, allocations: 7.61 MB / 0.673 GB, free: 98.15 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007402/1.672, allocations: 329.8 kB / 0.6733 GB, free: 97.89 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005837/1.673, allocations: 15.03 kB / 0.6733 GB, free: 97.89 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001632/1.675, allocations: 97.19 kB / 0.6734 GB, free: 97.89 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003691/1.675, allocations: 158.1 kB / 0.6736 GB, free: 97.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002324/1.675, allocations: 86.59 kB / 0.6736 GB, free: 97.84 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002631/1.678, allocations: 1.568 MB / 0.6752 GB, free: 97.25 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.258e-06/1.678, allocations: 5.281 kB / 0.6752 GB, free: 97.25 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00615/1.684, allocations: 0.8606 MB / 0.676 GB, free: 97.25 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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 (209): * Single equations (assignments): 200 * 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.0005762/1.685, allocations: 167.6 kB / 0.6762 GB, free: 97.14 MB / 458.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1955:5-1957: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/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1952:5-1954: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.01073/1.696, allocations: 5.745 MB / 0.6818 GB, free: 95.14 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.094e-05/1.696, allocations: 0 / 0.6818 GB, free: 95.14 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004483/1.7, allocations: 2.312 MB / 0.684 GB, free: 93.12 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002236/1.702, allocations: 284 kB / 0.6843 GB, free: 92.89 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02013/1.723, allocations: 9.709 MB / 0.6938 GB, free: 84.21 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006465/1.729, allocations: 3.605 MB / 0.6973 GB, free: 81.44 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00139/1.731, allocations: 285 kB / 0.6976 GB, free: 81.17 MB / 458.7 MB Notification: Performance of SimCode: time 1.852e-06/1.731, allocations: 7.938 kB / 0.6976 GB, free: 81.16 MB / 458.7 MB Notification: Performance of Templates: time 0.4211/2.152, allocations: 112.7 MB / 0.8076 GB, free: 137.7 MB / 490.7 MB