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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.969/1.969, allocations: 209.4 MB / 217.3 MB, free: 4.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.695e-05/1.701e-05, allocations: 4 kB / 271.3 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2606/0.2606, allocations: 48.69 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1378/0.3985, allocations: 90.5 MB / 410.5 MB, free: 5.902 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002422/0.3987, allocations: 71.95 kB / 410.6 MB, free: 5.832 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5427/0.9415, allocations: 89.05 MB / 499.6 MB, free: 72.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.092e-06/0.9416, allocations: 0 / 499.6 MB, free: 72.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001529/0.9417, allocations: 80 kB / 499.7 MB, free: 72.51 MB / 378.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.01561/0.9573, allocations: 4.254 MB / 0.4922 GB, free: 68.2 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.049e-05/0.9574, allocations: 12.03 kB / 0.4922 GB, free: 68.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01863/0.976, allocations: 3.559 MB / 0.4956 GB, free: 64.62 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01331/0.9894, allocations: 4.663 MB / 0.5002 GB, free: 59.94 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002237/0.9897, allocations: 140 kB / 0.5003 GB, free: 59.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001922/0.9916, allocations: 267.8 kB / 0.5006 GB, free: 59.54 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01461/1.006, allocations: 7.777 MB / 0.5082 GB, free: 51.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02157/1.028, allocations: 10.19 MB / 0.5181 GB, free: 41.09 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001651/1.028, allocations: 27.72 kB / 0.5182 GB, free: 41.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0013/1.029, allocations: 15.94 kB / 0.5182 GB, free: 41.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001774/1.031, allocations: 1.231 MB / 0.5194 GB, free: 39.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05423/1.085, allocations: 34.68 MB / 0.5532 GB, free: 4.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005137/1.091, allocations: 4.014 MB / 0.5572 GB, free: 452 kB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003721/1.094, allocations: 2.074 MB / 0.5592 GB, free: 14.37 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001649/1.096, allocations: 1.323 MB / 0.5605 GB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.603e-05/1.096, allocations: 60.55 kB / 0.5605 GB, free: 12.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=246): time 6.915e-06/1.096, allocations: 0 / 0.5605 GB, free: 12.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=266): time 0.03452/1.131, allocations: 12.01 MB / 0.5723 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.424e-05/1.131, allocations: 73.41 kB / 0.5723 GB, free: 0.6602 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004734/1.136, allocations: 2.408 MB / 0.5747 GB, free: 14.24 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004165/1.136, allocations: 25.7 kB / 0.5747 GB, free: 14.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002823/1.139, allocations: 3.021 MB / 0.5777 GB, free: 11.15 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001414/1.14, allocations: 0.9595 MB / 0.5786 GB, free: 10.18 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004052/1.141, allocations: 0 / 0.5786 GB, free: 10.18 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0005913/1.141, allocations: 0.5753 MB / 0.5792 GB, free: 9.59 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004847/1.146, allocations: 2.253 MB / 0.5814 GB, free: 7.332 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008319/1.155, allocations: 5.628 MB / 0.5869 GB, free: 20 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007548/1.162, allocations: 3.615 MB / 0.5904 GB, free: 12.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.708e-05/1.162, allocations: 35.94 kB / 0.5904 GB, free: 12.37 MB / 426.7 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.02142/1.184, allocations: 8.027 MB / 0.5983 GB, free: 4.324 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001137/1.184, allocations: 56.78 kB / 0.5983 GB, free: 4.27 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001616/1.184, allocations: 123.9 kB / 0.5984 GB, free: 4.148 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004686/1.189, allocations: 1.06 MB / 0.5995 GB, free: 3.078 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006147/1.195, allocations: 1.419 MB / 0.6008 GB, free: 1.656 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2417/1.437, allocations: 2.389 MB / 0.6032 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0052/1.442, allocations: 213.5 kB / 0.6034 GB, free: 107.3 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001179/1.443, allocations: 364.2 kB / 0.6037 GB, free: 107.3 MB / 426.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 (765): * Single equations (assignments): 756 * 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.001033/1.444, allocations: 407.2 kB / 0.6041 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005752/1.445, allocations: 288.2 kB / 0.6044 GB, free: 107.2 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01168/1.456, allocations: 4.931 MB / 0.6092 GB, free: 107 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.011e-05/1.457, allocations: 48.73 kB / 0.6093 GB, free: 107 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.396e-05/1.457, allocations: 3.844 kB / 0.6093 GB, free: 107 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.275e-05/1.457, allocations: 10.78 kB / 0.6093 GB, free: 107 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02385/1.48, allocations: 10.44 MB / 0.6195 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.02e-05/1.481, allocations: 13.94 kB / 0.6195 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002553/1.483, allocations: 432.8 kB / 0.6199 GB, free: 106.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004104/1.487, allocations: 0.9033 MB / 0.6208 GB, free: 106.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004091/1.488, allocations: 32 kB / 0.6208 GB, free: 106.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002509/1.49, allocations: 2.181 MB / 0.6229 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.05e-05/1.49, allocations: 19.83 kB / 0.623 GB, free: 105.1 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01428/1.505, allocations: 8.056 MB / 0.6308 GB, free: 103.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007051/1.505, allocations: 327.8 kB / 0.6311 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005963/1.506, allocations: 18.77 kB / 0.6312 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001667/1.508, allocations: 100.8 kB / 0.6312 GB, free: 103.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003802/1.508, allocations: 167.3 kB / 0.6314 GB, free: 103.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002599/1.508, allocations: 79.69 kB / 0.6315 GB, free: 103.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002586/1.511, allocations: 1.577 MB / 0.633 GB, free: 102.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.88e-07/1.511, allocations: 0 / 0.633 GB, free: 102.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005817/1.517, allocations: 0.8757 MB / 0.6339 GB, free: 102.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 35 * 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 (217): * Single equations (assignments): 208 * 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.0005258/1.517, allocations: 163.8 kB / 0.634 GB, free: 102.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01131/1.529, allocations: 5.956 MB / 0.6399 GB, free: 100.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.025e-06/1.529, allocations: 0 / 0.6399 GB, free: 100.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005422/1.534, allocations: 2.544 MB / 0.6423 GB, free: 99.74 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002057/1.536, allocations: 281.5 kB / 0.6426 GB, free: 99.62 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02009/1.556, allocations: 9.78 MB / 0.6522 GB, free: 95.86 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005992/1.562, allocations: 3.596 MB / 0.6557 GB, free: 93.09 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001422/1.564, allocations: 293.7 kB / 0.6559 GB, free: 92.82 MB / 426.7 MB Notification: Performance of SimCode: time 2.063e-06/1.564, allocations: 0 / 0.6559 GB, free: 92.82 MB / 426.7 MB Notification: Performance of Templates: time 0.3805/1.944, allocations: 113.1 MB / 0.7664 GB, free: 125.8 MB / 442.7 MB