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.FreeMotionScalarInit.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.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.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit") Notification: Performance of loadModel(ModelicaTest): time 2.191/2.191, allocations: 235.1 MB / 243 MB, free: 9.504 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.391e-05/2.396e-05, allocations: 4 kB / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2741/0.2742, allocations: 54.86 MB / 358 MB, free: 14.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1504/0.4247, allocations: 97.23 MB / 455.3 MB, free: 13.58 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/0.425, allocations: 75.97 kB / 455.3 MB, free: 13.51 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5467/0.9716, allocations: 89.06 MB / 0.5316 GB, free: 35.89 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.362e-06/0.9717, allocations: 4 kB / 0.5316 GB, free: 35.89 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001608/0.9719, allocations: 80 kB / 0.5317 GB, free: 35.81 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: 1696 * Number of variables: 1696 Notification: Performance of Generate backend data structure: time 0.0149/0.9868, allocations: 4.247 MB / 0.5359 GB, free: 31.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.06e-05/0.9868, allocations: 12.03 kB / 0.5359 GB, free: 31.49 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01806/1.005, allocations: 3.554 MB / 0.5394 GB, free: 27.92 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01331/1.018, allocations: 4.67 MB / 0.5439 GB, free: 23.2 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002263/1.019, allocations: 140 kB / 0.544 GB, free: 23.06 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001884/1.02, allocations: 263.9 kB / 0.5443 GB, free: 22.8 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01467/1.035, allocations: 7.784 MB / 0.5519 GB, free: 15.01 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02189/1.057, allocations: 10.18 MB / 0.5618 GB, free: 4.348 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001681/1.057, allocations: 35.64 kB / 0.5619 GB, free: 4.312 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001211/1.058, allocations: 20 kB / 0.5619 GB, free: 4.293 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001787/1.06, allocations: 1.216 MB / 0.5631 GB, free: 3.07 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06661/1.127, allocations: 34.7 MB / 0.597 GB, free: 15.75 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00669/1.134, allocations: 4.008 MB / 0.6009 GB, free: 11.53 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004047/1.138, allocations: 2.081 MB / 0.6029 GB, free: 9.445 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001669/1.139, allocations: 1.323 MB / 0.6042 GB, free: 7.898 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.698e-05/1.14, allocations: 60.55 kB / 0.6043 GB, free: 7.832 MB / 442.7 MB Notification: Performance of pre-optimization done (n=246): time 6.944e-06/1.14, allocations: 0 / 0.6043 GB, free: 7.832 MB / 442.7 MB Notification: Performance of matching and sorting (n=266): time 0.0359/1.175, allocations: 12.01 MB / 0.616 GB, free: 11.82 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.371e-05/1.176, allocations: 73.41 kB / 0.6161 GB, free: 11.74 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005518/1.181, allocations: 2.4 MB / 0.6184 GB, free: 9.332 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004524/1.182, allocations: 25.7 kB / 0.6184 GB, free: 9.301 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003086/1.185, allocations: 3.029 MB / 0.6214 GB, free: 6.23 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001502/1.186, allocations: 0.9556 MB / 0.6223 GB, free: 5.262 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005072/1.187, allocations: 0 / 0.6223 GB, free: 5.262 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006545/1.187, allocations: 0.5753 MB / 0.6229 GB, free: 4.676 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005203/1.193, allocations: 2.253 MB / 0.6251 GB, free: 2.418 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2741/1.467, allocations: 5.63 MB / 0.6306 GB, free: 106.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008139/1.475, allocations: 3.614 MB / 0.6341 GB, free: 106.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002113/1.475, allocations: 34.98 kB / 0.6341 GB, free: 106.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=818) (initialization): time 0.02049/1.496, allocations: 8.012 MB / 0.642 GB, free: 105.7 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000126/1.496, allocations: 56.22 kB / 0.642 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001608/1.496, allocations: 119.4 kB / 0.6421 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004914/1.501, allocations: 1.068 MB / 0.6432 GB, free: 105.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005895/1.507, allocations: 1.417 MB / 0.6446 GB, free: 105.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003025/1.51, allocations: 2.406 MB / 0.6469 GB, free: 104.3 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005375/1.515, allocations: 209.1 kB / 0.6471 GB, free: 104.3 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001355/1.517, allocations: 360.3 kB / 0.6475 GB, free: 104.3 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 (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.001211/1.518, allocations: 410.9 kB / 0.6478 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005581/1.519, allocations: 281.6 kB / 0.6481 GB, free: 104.1 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01189/1.531, allocations: 4.922 MB / 0.6529 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001055/1.531, allocations: 47.62 kB / 0.653 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-05/1.531, allocations: 4.312 kB / 0.653 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.877e-05/1.531, allocations: 10.22 kB / 0.653 GB, free: 103.9 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0242/1.555, allocations: 10.46 MB / 0.6632 GB, free: 103.1 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.493e-05/1.555, allocations: 9 kB / 0.6632 GB, free: 103.1 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002753/1.558, allocations: 433.5 kB / 0.6636 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00442/1.562, allocations: 0.9019 MB / 0.6645 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005502/1.563, allocations: 33.45 kB / 0.6645 GB, free: 103 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002719/1.566, allocations: 2.193 MB / 0.6667 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.3e-05/1.566, allocations: 16.7 kB / 0.6667 GB, free: 101.6 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01492/1.581, allocations: 8.048 MB / 0.6745 GB, free: 98.14 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007747/1.581, allocations: 328.6 kB / 0.6749 GB, free: 97.88 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000692/1.582, allocations: 26.44 kB / 0.6749 GB, free: 97.88 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001909/1.584, allocations: 100.8 kB / 0.675 GB, free: 97.88 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005302/1.585, allocations: 168.2 kB / 0.6751 GB, free: 97.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002692/1.585, allocations: 81.75 kB / 0.6752 GB, free: 97.83 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002852/1.588, allocations: 1.567 MB / 0.6767 GB, free: 97.23 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.99e-07/1.588, allocations: 0 / 0.6767 GB, free: 97.23 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006135/1.594, allocations: 0.8741 MB / 0.6776 GB, free: 97.23 MB / 458.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.0005616/1.595, allocations: 160.5 kB / 0.6778 GB, free: 97.12 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01152/1.606, allocations: 5.945 MB / 0.6836 GB, free: 94.36 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.094e-06/1.606, allocations: 0 / 0.6836 GB, free: 94.36 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004986/1.611, allocations: 2.559 MB / 0.6861 GB, free: 92.09 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002118/1.613, allocations: 285.2 kB / 0.6863 GB, free: 91.85 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02028/1.634, allocations: 9.777 MB / 0.6959 GB, free: 83.16 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006883/1.641, allocations: 3.589 MB / 0.6994 GB, free: 80.39 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001421/1.642, allocations: 295.5 kB / 0.6997 GB, free: 80.12 MB / 458.7 MB Notification: Performance of SimCode: time 1.956e-06/1.642, allocations: 4 kB / 0.6997 GB, free: 80.12 MB / 458.7 MB Notification: Performance of Templates: time 0.4135/2.055, allocations: 113.1 MB / 0.8101 GB, free: 138.1 MB / 490.7 MB