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.FreeMotionScalarInit3.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.FreeMotionScalarInit3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.w_a.1.|body.w_a.2.|body.w_a.3.|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",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3") Notification: Performance of loadModel(ModelicaTest): time 2.348/2.348, allocations: 234.9 MB / 251.1 MB, free: 9.773 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006484/0.0006485, allocations: 12 kB / 314.9 MB, free: 9.816 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4504/0.4511, allocations: 54.85 MB / 369.8 MB, free: 12.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1918/0.643, allocations: 101.7 MB / 471.5 MB, free: 6.969 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002688/0.6433, allocations: 87.89 kB / 471.6 MB, free: 6.883 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6873/1.331, allocations: 97.94 MB / 0.5562 GB, free: 78.04 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.938e-06/1.331, allocations: 4 kB / 0.5562 GB, free: 78.03 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002245/1.331, allocations: 95.94 kB / 0.5563 GB, free: 77.94 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: 1869 * Number of variables: 1869 Notification: Performance of Generate backend data structure: time 0.02354/1.354, allocations: 4.787 MB / 0.5609 GB, free: 73.08 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.542e-05/1.355, allocations: 8.031 kB / 0.5609 GB, free: 73.07 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02648/1.381, allocations: 3.616 MB / 0.5645 GB, free: 69.44 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0184/1.399, allocations: 4.917 MB / 0.5693 GB, free: 64.47 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003952/1.4, allocations: 378.3 kB / 0.5696 GB, free: 64.1 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003296/1.403, allocations: 496.1 kB / 0.5701 GB, free: 63.61 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.038/1.441, allocations: 12.24 MB / 0.5821 GB, free: 50.83 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003165/1.442, allocations: 35.73 kB / 0.5821 GB, free: 50.8 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002737/1.444, allocations: 223.8 kB / 0.5823 GB, free: 50.58 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002573/1.447, allocations: 1.318 MB / 0.5836 GB, free: 49.25 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0331/1.48, allocations: 11.52 MB / 0.5948 GB, free: 37.72 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08524/1.565, allocations: 41.88 MB / 0.6357 GB, free: 10.82 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01768/1.583, allocations: 4.959 MB / 0.6406 GB, free: 5.625 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01814/1.601, allocations: 6.566 MB / 0.647 GB, free: 14.74 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000108/1.602, allocations: 60.45 kB / 0.647 GB, free: 14.67 MB / 458.7 MB Notification: Performance of pre-optimization done (n=228): time 7.303e-06/1.602, allocations: 0 / 0.647 GB, free: 14.67 MB / 458.7 MB Notification: Performance of matching and sorting (n=237): time 0.07107/1.673, allocations: 16.76 MB / 0.6634 GB, free: 13.65 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.181e-05/1.673, allocations: 77.34 kB / 0.6635 GB, free: 13.56 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007945/1.681, allocations: 3.174 MB / 0.6666 GB, free: 10.38 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006747/1.681, allocations: 57.7 kB / 0.6666 GB, free: 10.31 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003538/1.685, allocations: 3.257 MB / 0.6698 GB, free: 7.008 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001668/1.687, allocations: 0.8943 MB / 0.6707 GB, free: 6.102 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007543/1.688, allocations: 116 kB / 0.6708 GB, free: 5.988 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0006587/1.688, allocations: 0.5749 MB / 0.6714 GB, free: 5.402 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007384/1.696, allocations: 2.382 MB / 0.6737 GB, free: 3.016 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3429/2.039, allocations: 5.756 MB / 0.6793 GB, free: 117.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009861/2.049, allocations: 3.685 MB / 0.6829 GB, free: 117.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001967/2.049, allocations: 34.5 kB / 0.6829 GB, free: 117.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=802) (initialization): time 0.0265/2.075, allocations: 8.844 MB / 0.6916 GB, free: 117.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001127/2.075, allocations: 60.88 kB / 0.6916 GB, free: 117.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001557/2.076, allocations: 116.3 kB / 0.6918 GB, free: 117.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006301/2.082, allocations: 1.159 MB / 0.6929 GB, free: 117.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008691/2.091, allocations: 1.372 MB / 0.6942 GB, free: 117.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008981/2.1, allocations: 4.657 MB / 0.6988 GB, free: 115.3 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006791/2.107, allocations: 323.8 kB / 0.6991 GB, free: 115.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00163/2.108, allocations: 353 kB / 0.6994 GB, free: 115.3 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 538 * Number of states: 0 () * Number of discrete variables: 27 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[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],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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (742): * Single equations (assignments): 734 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {3 5} Notification: Performance of prepare postOptimizeDAE: time 0.006747/2.115, allocations: 2.418 MB / 0.7018 GB, free: 115 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007055/2.116, allocations: 302.1 kB / 0.7021 GB, free: 115 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01229/2.128, allocations: 4.436 MB / 0.7064 GB, free: 114.9 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001013/2.128, allocations: 52.73 kB / 0.7064 GB, free: 114.9 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/2.128, allocations: 0 / 0.7064 GB, free: 114.9 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.201e-05/2.128, allocations: 11.17 kB / 0.7065 GB, free: 114.9 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02974/2.158, allocations: 10.44 MB / 0.7167 GB, free: 111.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.429e-05/2.158, allocations: 7.156 kB / 0.7167 GB, free: 111.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003459/2.162, allocations: 385.1 kB / 0.717 GB, free: 111.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003401/2.165, allocations: 0.6726 MB / 0.7177 GB, free: 111.1 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006356/2.166, allocations: 51.89 kB / 0.7177 GB, free: 111.1 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003976/2.17, allocations: 2.442 MB / 0.7201 GB, free: 109.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/2.17, allocations: 11.03 kB / 0.7201 GB, free: 109.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01603/2.186, allocations: 6.767 MB / 0.7267 GB, free: 107.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009344/2.187, allocations: 349.2 kB / 0.7271 GB, free: 107 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009264/2.188, allocations: 50.44 kB / 0.7271 GB, free: 107 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002811/2.19, allocations: 142.7 kB / 0.7273 GB, free: 106.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005923/2.191, allocations: 124 kB / 0.7274 GB, free: 106.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002465/2.191, allocations: 66.81 kB / 0.7274 GB, free: 106.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.004211/2.196, allocations: 1.931 MB / 0.7293 GB, free: 106.2 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.8e-07/2.196, allocations: 0 / 0.7293 GB, free: 106.2 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.007314/2.203, allocations: 1.073 MB / 0.7304 GB, free: 106.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * 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,body.w_a[1],body.w_a[2],body.w_a[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 (191): * Single equations (assignments): 182 * 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.0009667/2.204, allocations: 196.7 kB / 0.7306 GB, free: 106 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01402/2.218, allocations: 5.807 MB / 0.7362 GB, free: 101.1 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.729e-06/2.218, allocations: 0 / 0.7362 GB, free: 101.1 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007086/2.225, allocations: 2.415 MB / 0.7386 GB, free: 98.93 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003803/2.229, allocations: 423.5 kB / 0.739 GB, free: 98.59 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02952/2.259, allocations: 14.03 MB / 0.7527 GB, free: 85.79 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007633/2.266, allocations: 3.831 MB / 0.7564 GB, free: 82.87 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001856/2.268, allocations: 288.4 kB / 0.7567 GB, free: 82.6 MB / 474.7 MB Notification: Performance of SimCode: time 1.343e-06/2.268, allocations: 0 / 0.7567 GB, free: 82.6 MB / 474.7 MB Notification: Performance of Templates: time 0.5385/2.807, allocations: 111.9 MB / 0.866 GB, free: 129.2 MB / 490.7 MB