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.FreeMotionScalarInit.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.FreeMotionScalarInit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.angle_d_1|freeMotionScalarInit.angle_d_2|freeMotionScalarInit.angle_d_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",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit") Notification: Performance of loadModel(ModelicaTest): time 1.959/1.959, allocations: 209.3 MB / 222.4 MB, free: 7.73 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.497e-05/2.52e-05, allocations: 4 kB / 277.8 MB, free: 15.3 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08463/0.08468, allocations: 48.7 MB / 326.5 MB, free: 14.52 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3539/0.4386, allocations: 91.16 MB / 417.7 MB, free: 0.668 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002136/0.4389, allocations: 73.72 kB / 417.8 MB, free: 0.6328 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3507/0.7896, allocations: 90.64 MB / 0.4965 GB, free: 12.74 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.067e-06/0.7897, allocations: 3.938 kB / 0.4965 GB, free: 12.74 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001846/0.7899, allocations: 76 kB / 0.4966 GB, free: 12.66 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: 1696 * Number of variables: 1696 Notification: Performance of Generate backend data structure: time 0.01676/0.8066, allocations: 4.266 MB / 0.5007 GB, free: 8.336 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.8067, allocations: 8.031 kB / 0.5007 GB, free: 8.328 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01979/0.8265, allocations: 3.562 MB / 0.5042 GB, free: 4.754 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01541/0.8419, allocations: 4.666 MB / 0.5088 GB, free: 32 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004963/0.8425, allocations: 328.7 kB / 0.5091 GB, free: 15.7 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002174/0.8447, allocations: 439.7 kB / 0.5095 GB, free: 15.28 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02851/0.8732, allocations: 10.95 MB / 0.5202 GB, free: 3.848 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001635/0.8734, allocations: 23.81 kB / 0.5202 GB, free: 3.824 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001117/0.8745, allocations: 195.8 kB / 0.5204 GB, free: 3.633 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002292/0.8768, allocations: 1.231 MB / 0.5216 GB, free: 2.398 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.261/1.138, allocations: 10.52 MB / 0.5319 GB, free: 93.75 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06185/1.2, allocations: 37.34 MB / 0.5684 GB, free: 79.07 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009283/1.209, allocations: 4.359 MB / 0.5726 GB, free: 76.92 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003486/1.213, allocations: 2.126 MB / 0.5747 GB, free: 76.11 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001201/1.214, allocations: 1.319 MB / 0.576 GB, free: 74.93 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.422e-05/1.214, allocations: 55.97 kB / 0.576 GB, free: 74.87 MB / 426.7 MB Notification: Performance of pre-optimization done (n=244): time 6.852e-06/1.214, allocations: 0 / 0.576 GB, free: 74.87 MB / 426.7 MB Notification: Performance of matching and sorting (n=265): time 0.04252/1.256, allocations: 11.17 MB / 0.5869 GB, free: 72.12 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.968e-05/1.257, allocations: 73.78 kB / 0.587 GB, free: 72.05 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004355/1.261, allocations: 2.48 MB / 0.5894 GB, free: 71.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004142/1.261, allocations: 60.2 kB / 0.5895 GB, free: 71.1 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00167/1.263, allocations: 2.926 MB / 0.5923 GB, free: 68.97 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001074/1.264, allocations: 0.9723 MB / 0.5933 GB, free: 68.25 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004622/1.265, allocations: 110.6 kB / 0.5934 GB, free: 68.17 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0003789/1.265, allocations: 0.567 MB / 0.5939 GB, free: 67.74 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00435/1.269, allocations: 2.282 MB / 0.5962 GB, free: 67 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006052/1.275, allocations: 5.419 MB / 0.6015 GB, free: 62.11 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006237/1.282, allocations: 3.574 MB / 0.605 GB, free: 61.02 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.992e-05/1.282, allocations: 33.34 kB / 0.605 GB, free: 61.02 MB / 426.7 MB Notification: Performance of matching and sorting (n=772) (initialization): time 0.01949/1.301, allocations: 8.378 MB / 0.6132 GB, free: 56.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.863e-05/1.301, allocations: 52 kB / 0.6132 GB, free: 56.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001215/1.302, allocations: 112 kB / 0.6133 GB, free: 56.39 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004268/1.306, allocations: 1.055 MB / 0.6144 GB, free: 55.68 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005793/1.312, allocations: 1.33 MB / 0.6157 GB, free: 54.53 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003037/1.315, allocations: 2.462 MB / 0.6181 GB, free: 52.21 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004852/1.32, allocations: 311.5 kB / 0.6184 GB, free: 51.96 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007334/1.32, allocations: 342.2 kB / 0.6187 GB, free: 51.63 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 (719): * Single equations (assignments): 710 * 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.0009937/1.321, allocations: 0.5191 MB / 0.6192 GB, free: 51.11 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005085/1.322, allocations: 288.2 kB / 0.6195 GB, free: 50.83 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01195/1.334, allocations: 5.021 MB / 0.6244 GB, free: 46.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.816e-05/1.334, allocations: 43.56 kB / 0.6244 GB, free: 46.66 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.38e-05/1.334, allocations: 4 kB / 0.6244 GB, free: 46.66 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.707e-05/1.334, allocations: 10.08 kB / 0.6244 GB, free: 46.66 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02438/1.359, allocations: 11.57 MB / 0.6357 GB, free: 37.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.556e-05/1.359, allocations: 7.938 kB / 0.6357 GB, free: 37.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002501/1.361, allocations: 426.9 kB / 0.6361 GB, free: 36.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00383/1.365, allocations: 0.9066 MB / 0.637 GB, free: 36.11 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005237/1.366, allocations: 66.94 kB / 0.6371 GB, free: 36.06 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002698/1.368, allocations: 2.284 MB / 0.6393 GB, free: 33.91 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.539e-06/1.368, allocations: 11.94 kB / 0.6393 GB, free: 33.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01366/1.382, allocations: 8.081 MB / 0.6472 GB, free: 26.47 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007586/1.383, allocations: 329 kB / 0.6475 GB, free: 26.14 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006055/1.383, allocations: 52 kB / 0.6476 GB, free: 26.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001644/1.385, allocations: 142 kB / 0.6477 GB, free: 26 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003777/1.385, allocations: 161.7 kB / 0.6479 GB, free: 25.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002391/1.386, allocations: 75.84 kB / 0.6479 GB, free: 25.82 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002795/1.389, allocations: 1.682 MB / 0.6496 GB, free: 24.33 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.3e-07/1.389, allocations: 0 / 0.6496 GB, free: 24.33 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005324/1.394, allocations: 1.017 MB / 0.6506 GB, free: 23.32 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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.angle_d_1,freeMotionScalarInit.angle_d_2,freeMotionScalarInit.angle_d_3) * Number of discrete variables: 0 () * Number of discrete 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.000527/1.394, allocations: 193.1 kB / 0.6508 GB, free: 23.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01157/1.406, allocations: 6.071 MB / 0.6567 GB, free: 17.62 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/1.406, allocations: 4 kB / 0.6567 GB, free: 17.62 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005132/1.411, allocations: 2.571 MB / 0.6592 GB, free: 15.31 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002349/1.414, allocations: 377.2 kB / 0.6596 GB, free: 15 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01952/1.433, allocations: 9.819 MB / 0.6692 GB, free: 5.426 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005451/1.439, allocations: 3.596 MB / 0.6727 GB, free: 1.816 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001436/1.44, allocations: 287.4 kB / 0.6729 GB, free: 1.535 MB / 426.7 MB Notification: Performance of SimCode: time 1.805e-06/1.44, allocations: 4 kB / 0.6729 GB, free: 1.531 MB / 426.7 MB Notification: Performance of Templates: time 0.3945/1.835, allocations: 114.2 MB / 0.7845 GB, free: 57.67 MB / 442.7 MB