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.FreeMotionScalarInit4.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.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.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadModel(ModelicaTest): time 1.954/1.954, allocations: 209.4 MB / 217.3 MB, free: 4.148 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.598e-05/1.609e-05, allocations: 4 kB / 271.3 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.313, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1456/0.4587, allocations: 94.25 MB / 414.3 MB, free: 2.152 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002383/0.459, allocations: 71.97 kB / 414.3 MB, free: 2.082 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5625/1.021, allocations: 96.09 MB / 0.4985 GB, free: 62.19 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.919e-06/1.021, allocations: 0 / 0.4985 GB, free: 62.19 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001777/1.022, allocations: 88 kB / 0.4985 GB, free: 62.1 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: 1878 * Number of variables: 1878 Notification: Performance of Generate backend data structure: time 0.01737/1.039, allocations: 4.661 MB / 0.5031 GB, free: 57.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/1.039, allocations: 12.03 kB / 0.5031 GB, free: 57.36 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01898/1.058, allocations: 3.624 MB / 0.5066 GB, free: 53.73 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01413/1.072, allocations: 4.886 MB / 0.5114 GB, free: 48.79 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002705/1.073, allocations: 163.9 kB / 0.5116 GB, free: 48.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002342/1.075, allocations: 299.9 kB / 0.5119 GB, free: 48.33 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01645/1.091, allocations: 8.443 MB / 0.5201 GB, free: 39.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02463/1.116, allocations: 11.14 MB / 0.531 GB, free: 28.22 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002002/1.116, allocations: 39.64 kB / 0.531 GB, free: 28.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001441/1.118, allocations: 19.95 kB / 0.531 GB, free: 28.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001952/1.12, allocations: 1.322 MB / 0.5323 GB, free: 26.84 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06669/1.187, allocations: 39.48 MB / 0.5709 GB, free: 2.535 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007742/1.194, allocations: 4.318 MB / 0.5751 GB, free: 13.99 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004526/1.199, allocations: 2.29 MB / 0.5773 GB, free: 11.7 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001785/1.201, allocations: 1.331 MB / 0.5786 GB, free: 10.14 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.404e-05/1.201, allocations: 56.56 kB / 0.5787 GB, free: 10.08 MB / 410.7 MB Notification: Performance of pre-optimization done (n=265): time 7.848e-06/1.201, allocations: 0 / 0.5787 GB, free: 10.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=285): time 0.3332/1.534, allocations: 18.02 MB / 0.5963 GB, free: 92.95 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.792e-05/1.534, allocations: 102.2 kB / 0.5964 GB, free: 92.85 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004876/1.539, allocations: 2.577 MB / 0.5989 GB, free: 92.54 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004715/1.539, allocations: 29.08 kB / 0.5989 GB, free: 92.51 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002076/1.542, allocations: 3.306 MB / 0.6022 GB, free: 90.61 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001191/1.543, allocations: 1.025 MB / 0.6032 GB, free: 89.99 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005082/1.543, allocations: 0 / 0.6032 GB, free: 89.99 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0004724/1.544, allocations: 0.5996 MB / 0.6037 GB, free: 89.66 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004868/1.549, allocations: 2.42 MB / 0.6061 GB, free: 89.65 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006882/1.556, allocations: 6.02 MB / 0.612 GB, free: 85.01 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00727/1.563, allocations: 3.871 MB / 0.6158 GB, free: 84.98 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000119/1.563, allocations: 37.22 kB / 0.6158 GB, free: 84.98 MB / 410.7 MB Notification: Performance of matching and sorting (n=875) (initialization): time 0.02689/1.59, allocations: 9.54 MB / 0.6251 GB, free: 83.77 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00011/1.59, allocations: 58.75 kB / 0.6252 GB, free: 83.77 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001455/1.59, allocations: 128.7 kB / 0.6253 GB, free: 83.77 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01174/1.602, allocations: 2.339 MB / 0.6276 GB, free: 83.58 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006305/1.608, allocations: 1.478 MB / 0.629 GB, free: 83.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02054/1.629, allocations: 9.835 MB / 0.6386 GB, free: 78.92 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005691/1.635, allocations: 212.6 kB / 0.6388 GB, free: 78.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001363/1.636, allocations: 388 kB / 0.6392 GB, free: 78.87 MB / 410.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.002013/1.638, allocations: 433.2 kB / 0.6396 GB, free: 78.51 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007141/1.639, allocations: 307.8 kB / 0.6399 GB, free: 78.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0115/1.65, allocations: 4.997 MB / 0.6448 GB, free: 76.65 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001018/1.651, allocations: 51.52 kB / 0.6448 GB, free: 76.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.352e-05/1.651, allocations: 3.953 kB / 0.6448 GB, free: 76.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.304e-05/1.651, allocations: 10.92 kB / 0.6449 GB, free: 76.64 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02458/1.675, allocations: 10.96 MB / 0.6556 GB, free: 69.07 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.653e-05/1.675, allocations: 15.22 kB / 0.6556 GB, free: 69.06 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002824/1.678, allocations: 467.4 kB / 0.656 GB, free: 68.69 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002571/1.681, allocations: 0.696 MB / 0.6567 GB, free: 68.22 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005465/1.681, allocations: 37.73 kB / 0.6567 GB, free: 68.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002809/1.684, allocations: 2.335 MB / 0.659 GB, free: 66.03 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.069e-05/1.684, allocations: 11.94 kB / 0.659 GB, free: 66.02 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01368/1.698, allocations: 8.294 MB / 0.6671 GB, free: 58.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000808/1.699, allocations: 346.9 kB / 0.6675 GB, free: 57.83 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007623/1.7, allocations: 23.7 kB / 0.6675 GB, free: 57.81 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002035/1.702, allocations: 105.9 kB / 0.6676 GB, free: 57.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004563/1.702, allocations: 177.8 kB / 0.6678 GB, free: 57.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000278/1.702, allocations: 87.25 kB / 0.6678 GB, free: 57.56 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.002962/1.705, allocations: 1.69 MB / 0.6695 GB, free: 56.1 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.07e-06/1.705, allocations: 0 / 0.6695 GB, free: 56.1 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007407/1.713, allocations: 0.9975 MB / 0.6705 GB, free: 55.11 MB / 410.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.0008115/1.714, allocations: 173.1 kB / 0.6706 GB, free: 54.94 MB / 410.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1990:5-1992: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.1/Mechanics/MultiBody/Joints.mo:1984:5-1986: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.1/Mechanics/MultiBody/Joints.mo:1987:5-1989: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.01128/1.725, allocations: 6.065 MB / 0.6765 GB, free: 49.46 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/1.725, allocations: 256 / 0.6765 GB, free: 49.46 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005315/1.73, allocations: 2.643 MB / 0.6791 GB, free: 47.09 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002341/1.733, allocations: 313.2 kB / 0.6794 GB, free: 46.83 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02304/1.756, allocations: 10.38 MB / 0.6896 GB, free: 37.52 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007549/1.763, allocations: 3.884 MB / 0.6934 GB, free: 34.55 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001507/1.765, allocations: 305.8 kB / 0.6937 GB, free: 34.27 MB / 410.7 MB Notification: Performance of SimCode: time 2.222e-06/1.765, allocations: 4 kB / 0.6937 GB, free: 34.27 MB / 410.7 MB Notification: Performance of Templates: time 0.4096/2.175, allocations: 113.1 MB / 0.8041 GB, free: 74.73 MB / 426.7 MB