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.FreeMotionScalarInit4.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.FreeMotionScalarInit4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|freeMotionScalarInit.angle_1|freeMotionScalarInit.angle_2|freeMotionScalarInit.angle_3|freeMotionScalarInit.derdd.1..u|freeMotionScalarInit.derdd.2..u|freeMotionScalarInit.derdd.3..u|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.FreeMotionScalarInit4") Notification: Performance of loadModel(ModelicaTest): time 2.136/2.136, allocations: 235.1 MB / 243 MB, free: 9.496 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 1.896e-05/1.908e-05, allocations: 0 / 303.2 MB, free: 13.2 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2784/0.2784, allocations: 54.87 MB / 358 MB, free: 14.93 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1973/0.4757, allocations: 101 MB / 459 MB, free: 9.812 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002428/0.476, allocations: 79.95 kB / 459.1 MB, free: 9.734 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6015/1.078, allocations: 96.1 MB / 0.5422 GB, free: 25.51 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.326e-06/1.078, allocations: 0 / 0.5422 GB, free: 25.51 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001737/1.078, allocations: 88 kB / 0.5423 GB, free: 25.42 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: 1878 * Number of variables: 1878 Notification: Performance of Generate backend data structure: time 0.0173/1.095, allocations: 4.656 MB / 0.5468 GB, free: 20.7 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/1.095, allocations: 8.031 kB / 0.5468 GB, free: 20.69 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02035/1.115, allocations: 3.624 MB / 0.5504 GB, free: 17.05 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01404/1.13, allocations: 4.886 MB / 0.5551 GB, free: 12.11 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002606/1.13, allocations: 160.3 kB / 0.5553 GB, free: 11.96 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002137/1.132, allocations: 299.9 kB / 0.5556 GB, free: 11.66 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01614/1.148, allocations: 8.443 MB / 0.5638 GB, free: 3.215 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.028/1.176, allocations: 11.15 MB / 0.5747 GB, free: 7.539 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002319/1.177, allocations: 39.64 kB / 0.5747 GB, free: 7.5 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001647/1.178, allocations: 16 kB / 0.5748 GB, free: 7.484 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002541/1.181, allocations: 1.314 MB / 0.576 GB, free: 6.164 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1035/1.284, allocations: 39.48 MB / 0.6146 GB, free: 13.87 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007615/1.292, allocations: 4.307 MB / 0.6188 GB, free: 9.332 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004508/1.296, allocations: 2.293 MB / 0.621 GB, free: 7.031 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001777/1.298, allocations: 1.319 MB / 0.6223 GB, free: 5.492 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.843e-05/1.298, allocations: 64.5 kB / 0.6224 GB, free: 5.418 MB / 458.7 MB Notification: Performance of pre-optimization done (n=265): time 8.739e-06/1.298, allocations: 0 / 0.6224 GB, free: 5.418 MB / 458.7 MB Notification: Performance of matching and sorting (n=285): time 0.3531/1.652, allocations: 18.02 MB / 0.64 GB, free: 104 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.486e-05/1.652, allocations: 104.8 kB / 0.6401 GB, free: 103.9 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00425/1.656, allocations: 2.583 MB / 0.6426 GB, free: 103.6 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004408/1.656, allocations: 29.45 kB / 0.6426 GB, free: 103.5 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00205/1.658, allocations: 3.301 MB / 0.6459 GB, free: 101.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001245/1.66, allocations: 1.021 MB / 0.6469 GB, free: 101.1 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005643/1.66, allocations: 0 / 0.6469 GB, free: 101.1 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004891/1.661, allocations: 0.5977 MB / 0.6474 GB, free: 100.8 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004482/1.665, allocations: 2.417 MB / 0.6498 GB, free: 100.8 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006722/1.672, allocations: 6.02 MB / 0.6557 GB, free: 96.14 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00738/1.679, allocations: 3.872 MB / 0.6595 GB, free: 96.1 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001185/1.68, allocations: 38.53 kB / 0.6595 GB, free: 96.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=875) (initialization): time 0.02605/1.706, allocations: 9.548 MB / 0.6688 GB, free: 95.21 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001132/1.706, allocations: 63.69 kB / 0.6689 GB, free: 95.21 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001421/1.706, allocations: 128.5 kB / 0.669 GB, free: 95.21 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01193/1.718, allocations: 2.339 MB / 0.6713 GB, free: 95.01 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005874/1.724, allocations: 1.464 MB / 0.6727 GB, free: 94.84 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02001/1.744, allocations: 9.849 MB / 0.6823 GB, free: 90.37 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005646/1.75, allocations: 221.4 kB / 0.6826 GB, free: 90.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001298/1.751, allocations: 395.4 kB / 0.6829 GB, free: 90.31 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 583 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (794): * Single equations (assignments): 786 * 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: 0 * Non-linear torn systems: 2 {3 5,3 24} Notification: Performance of prepare postOptimizeDAE: time 0.001351/1.752, allocations: 423.2 kB / 0.6833 GB, free: 89.96 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006626/1.753, allocations: 313.3 kB / 0.6836 GB, free: 89.79 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01076/1.764, allocations: 4.993 MB / 0.6885 GB, free: 88.11 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.56e-05/1.764, allocations: 49.5 kB / 0.6886 GB, free: 88.1 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.274e-05/1.764, allocations: 3.969 kB / 0.6886 GB, free: 88.1 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.489e-05/1.764, allocations: 14.78 kB / 0.6886 GB, free: 88.1 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02414/1.788, allocations: 10.96 MB / 0.6993 GB, free: 79.94 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.634e-05/1.788, allocations: 12.88 kB / 0.6993 GB, free: 79.93 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002626/1.791, allocations: 475 kB / 0.6997 GB, free: 79.55 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00256/1.793, allocations: 0.6999 MB / 0.7004 GB, free: 79.09 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000507/1.794, allocations: 35.97 kB / 0.7005 GB, free: 79.07 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002776/1.797, allocations: 2.327 MB / 0.7027 GB, free: 76.91 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.24e-05/1.797, allocations: 11.94 kB / 0.7027 GB, free: 76.9 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01317/1.81, allocations: 8.289 MB / 0.7108 GB, free: 69.09 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008533/1.811, allocations: 352.2 kB / 0.7112 GB, free: 68.73 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000843/1.812, allocations: 23.56 kB / 0.7112 GB, free: 68.71 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002176/1.814, allocations: 109 kB / 0.7113 GB, free: 68.65 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005582/1.815, allocations: 176.9 kB / 0.7115 GB, free: 68.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002783/1.815, allocations: 83.39 kB / 0.7115 GB, free: 68.46 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.003346/1.818, allocations: 1.685 MB / 0.7132 GB, free: 67 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.314e-06/1.818, allocations: 0 / 0.7132 GB, free: 67 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007208/1.826, allocations: 1 MB / 0.7142 GB, free: 66.01 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * 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.derdd[1].u,freeMotionScalarInit.derdd[2].u,freeMotionScalarInit.derdd[3].u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (236): * Single equations (assignments): 227 * 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.00081/1.826, allocations: 178.8 kB / 0.7143 GB, free: 65.84 MB / 458.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1958:5-1960:161:writable] Warning: Variable freeMotionScalarInit.angle_3 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1952:5-1954:161:writable] Warning: Variable freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/Mechanics/MultiBody/Joints.mo:1955:5-1957:161:writable] Warning: Variable freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.01089/1.837, allocations: 6.057 MB / 0.7203 GB, free: 60.38 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.043e-05/1.837, allocations: 2.109 kB / 0.7203 GB, free: 60.38 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005246/1.843, allocations: 2.656 MB / 0.7228 GB, free: 57.98 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002358/1.845, allocations: 316.5 kB / 0.7232 GB, free: 57.73 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02173/1.867, allocations: 10.37 MB / 0.7333 GB, free: 48.43 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006877/1.874, allocations: 3.885 MB / 0.7371 GB, free: 45.46 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001507/1.875, allocations: 298.1 kB / 0.7374 GB, free: 45.19 MB / 458.7 MB Notification: Performance of SimCode: time 2.108e-06/1.875, allocations: 0 / 0.7374 GB, free: 45.19 MB / 458.7 MB Notification: Performance of Templates: time 0.4288/2.304, allocations: 113.1 MB / 0.8478 GB, free: 123.9 MB / 490.7 MB