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/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.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.287/2.287, allocations: 235 MB / 248.1 MB, free: 14.39 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.73e-05/2.75e-05, allocations: 4 kB / 309.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3276, allocations: 54.86 MB / 364.5 MB, free: 5.539 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1511/0.4787, allocations: 97.9 MB / 462.4 MB, free: 14.56 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002542/0.479, allocations: 76.95 kB / 462.5 MB, free: 14.48 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6569/1.136, allocations: 91 MB / 0.5405 GB, free: 107.9 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.938e-06/1.136, allocations: 6.688 kB / 0.5406 GB, free: 107.9 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0002006/1.136, allocations: 79.91 kB / 0.5406 GB, free: 107.9 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: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.01697/1.153, allocations: 4.291 MB / 0.5448 GB, free: 106.1 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/1.153, allocations: 9.438 kB / 0.5448 GB, free: 106.1 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03772/1.191, allocations: 3.578 MB / 0.5483 GB, free: 105.8 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02955/1.221, allocations: 4.696 MB / 0.5529 GB, free: 105.3 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007259/1.221, allocations: 339.8 kB / 0.5532 GB, free: 105.3 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003967/1.225, allocations: 447.6 kB / 0.5537 GB, free: 105.3 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04711/1.273, allocations: 11.41 MB / 0.5648 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003045/1.273, allocations: 25.41 kB / 0.5648 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002675/1.276, allocations: 199.3 kB / 0.565 GB, free: 104 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003563/1.279, allocations: 1.257 MB / 0.5662 GB, free: 103.9 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04241/1.322, allocations: 10.94 MB / 0.5769 GB, free: 100.9 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07192/1.394, allocations: 38.02 MB / 0.6141 GB, free: 73.81 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01017/1.404, allocations: 4.652 MB / 0.6186 GB, free: 69.49 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00357/1.408, allocations: 2.218 MB / 0.6208 GB, free: 67.46 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001156/1.409, allocations: 1.32 MB / 0.6221 GB, free: 66.02 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/1.409, allocations: 60.5 kB / 0.6221 GB, free: 65.96 MB / 458.7 MB Notification: Performance of pre-optimization done (n=244): time 7.175e-06/1.409, allocations: 0 / 0.6221 GB, free: 65.96 MB / 458.7 MB Notification: Performance of matching and sorting (n=256): time 0.04231/1.451, allocations: 11.27 MB / 0.6331 GB, free: 55.94 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.281e-05/1.451, allocations: 85.36 kB / 0.6332 GB, free: 55.84 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004633/1.456, allocations: 2.478 MB / 0.6356 GB, free: 53.35 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004359/1.456, allocations: 61.7 kB / 0.6357 GB, free: 53.29 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001914/1.458, allocations: 2.946 MB / 0.6386 GB, free: 50.34 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001135/1.459, allocations: 0.9409 MB / 0.6395 GB, free: 49.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005399/1.46, allocations: 112.9 kB / 0.6396 GB, free: 49.3 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004172/1.46, allocations: 0.5586 MB / 0.6401 GB, free: 48.73 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004284/1.465, allocations: 2.233 MB / 0.6423 GB, free: 46.49 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006298/1.471, allocations: 5.363 MB / 0.6475 GB, free: 39.58 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006243/1.477, allocations: 3.507 MB / 0.651 GB, free: 36.07 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.789e-05/1.477, allocations: 28 kB / 0.651 GB, free: 36.04 MB / 458.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.01908/1.497, allocations: 8.235 MB / 0.659 GB, free: 27.8 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.859e-05/1.497, allocations: 52 kB / 0.6591 GB, free: 27.75 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00011/1.497, allocations: 108 kB / 0.6592 GB, free: 27.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005857/1.503, allocations: 1.033 MB / 0.6602 GB, free: 26.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01005/1.513, allocations: 1.314 MB / 0.6615 GB, free: 25.28 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005424/1.518, allocations: 2.47 MB / 0.6639 GB, free: 22.67 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008879/1.527, allocations: 318.9 kB / 0.6642 GB, free: 22.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001724/1.529, allocations: 332 kB / 0.6645 GB, free: 22.04 MB / 458.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.002362/1.531, allocations: 0.5043 MB / 0.665 GB, free: 21.53 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009904/1.532, allocations: 280.3 kB / 0.6653 GB, free: 21.25 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02019/1.553, allocations: 4.865 MB / 0.67 GB, free: 16.32 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001325/1.553, allocations: 44 kB / 0.6701 GB, free: 16.27 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.906e-05/1.553, allocations: 0 / 0.6701 GB, free: 16.27 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.513e-05/1.553, allocations: 15.91 kB / 0.6701 GB, free: 16.26 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04117/1.594, allocations: 11.46 MB / 0.6813 GB, free: 4.668 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.302e-05/1.594, allocations: 8.219 kB / 0.6813 GB, free: 4.66 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004131/1.598, allocations: 419.3 kB / 0.6817 GB, free: 4.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005615/1.604, allocations: 0.6071 MB / 0.6823 GB, free: 3.633 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006639/1.605, allocations: 59.81 kB / 0.6823 GB, free: 3.578 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004425/1.609, allocations: 2.069 MB / 0.6844 GB, free: 1.383 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.785e-05/1.609, allocations: 11.94 kB / 0.6844 GB, free: 1.371 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02805/1.637, allocations: 7.652 MB / 0.6918 GB, free: 9.328 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001414/1.639, allocations: 329.3 kB / 0.6922 GB, free: 8.984 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001411/1.64, allocations: 59.55 kB / 0.6922 GB, free: 8.93 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003807/1.644, allocations: 135.7 kB / 0.6923 GB, free: 8.801 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009493/1.645, allocations: 153.6 kB / 0.6925 GB, free: 8.648 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005181/1.646, allocations: 79.98 kB / 0.6926 GB, free: 8.57 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.006892/1.653, allocations: 1.678 MB / 0.6942 GB, free: 6.883 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.695e-06/1.653, allocations: 0 / 0.6942 GB, free: 6.883 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0112/1.664, allocations: 1.003 MB / 0.6952 GB, free: 5.883 MB / 474.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.001234/1.665, allocations: 193.4 kB / 0.6954 GB, free: 5.688 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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/OpenModelica/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.3554/2.021, allocations: 5.891 MB / 0.7011 GB, free: 112.3 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.06e-05/2.021, allocations: 2.719 kB / 0.7011 GB, free: 112.3 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005485/2.026, allocations: 2.352 MB / 0.7034 GB, free: 112 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002556/2.029, allocations: 388.8 kB / 0.7038 GB, free: 112 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02341/2.052, allocations: 9.755 MB / 0.7133 GB, free: 110.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007141/2.059, allocations: 3.613 MB / 0.7168 GB, free: 109.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001487/2.061, allocations: 278.1 kB / 0.7171 GB, free: 109.3 MB / 474.7 MB Notification: Performance of SimCode: time 2.755e-06/2.061, allocations: 3.094 kB / 0.7171 GB, free: 109.3 MB / 474.7 MB Notification: Performance of Templates: time 0.1542/2.215, allocations: 113.9 MB / 0.8283 GB, free: 36.68 MB / 474.7 MB