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.FreeMotionScalarInit2.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.FreeMotionScalarInit2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|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|freeMotionScalarInit.w_rel_b_1|freeMotionScalarInit.w_rel_b_2|freeMotionScalarInit.w_rel_b_3",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadModel(ModelicaTest): time 1.875/1.875, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.976e-05/1.986e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2567, allocations: 48.69 MB / 320 MB, free: 14.41 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1345/0.3912, allocations: 90.5 MB / 410.5 MB, free: 5.926 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002361/0.3915, allocations: 75.95 kB / 410.6 MB, free: 5.852 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5307/0.9222, allocations: 89.4 MB / 500 MB, free: 72.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.188e-06/0.9223, allocations: 0 / 500 MB, free: 72.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000149/0.9224, allocations: 83.84 kB / 0.4883 GB, free: 72.19 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: 1717 * Number of variables: 1717 Notification: Performance of Generate backend data structure: time 0.01578/0.9382, allocations: 4.306 MB / 0.4925 GB, free: 67.83 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.9383, allocations: 8.031 kB / 0.4926 GB, free: 67.82 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01818/0.9565, allocations: 3.578 MB / 0.496 GB, free: 64.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01344/0.97, allocations: 4.701 MB / 0.5006 GB, free: 59.51 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00021/0.9702, allocations: 140 kB / 0.5008 GB, free: 59.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001972/0.9722, allocations: 259.9 kB / 0.501 GB, free: 59.12 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01485/0.9871, allocations: 7.932 MB / 0.5088 GB, free: 51.18 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0216/1.009, allocations: 10.37 MB / 0.5189 GB, free: 40.34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001609/1.009, allocations: 23.81 kB / 0.5189 GB, free: 40.32 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00132/1.01, allocations: 12 kB / 0.5189 GB, free: 40.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001844/1.012, allocations: 1.262 MB / 0.5202 GB, free: 39.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05409/1.066, allocations: 35.36 MB / 0.5547 GB, free: 3.191 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005449/1.072, allocations: 4.094 MB / 0.5587 GB, free: 14.88 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00385/1.076, allocations: 2.171 MB / 0.5608 GB, free: 12.7 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00163/1.077, allocations: 1.311 MB / 0.5621 GB, free: 11.16 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.804e-05/1.077, allocations: 52.56 kB / 0.5621 GB, free: 11.11 MB / 394.7 MB Notification: Performance of pre-optimization done (n=246): time 6e-06/1.077, allocations: 0 / 0.5621 GB, free: 11.11 MB / 394.7 MB Notification: Performance of matching and sorting (n=258): time 0.0331/1.11, allocations: 10.5 MB / 0.5724 GB, free: 0.5586 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.562e-05/1.111, allocations: 73.41 kB / 0.5725 GB, free: 484 kB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004683/1.115, allocations: 2.412 MB / 0.5748 GB, free: 14.05 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003744/1.116, allocations: 25.7 kB / 0.5748 GB, free: 14.02 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002721/1.118, allocations: 3.052 MB / 0.5778 GB, free: 10.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001376/1.12, allocations: 0.9288 MB / 0.5787 GB, free: 9.984 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004311/1.12, allocations: 0 / 0.5787 GB, free: 9.984 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0006398/1.121, allocations: 0.5712 MB / 0.5793 GB, free: 9.402 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004894/1.126, allocations: 2.195 MB / 0.5814 GB, free: 7.203 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00832/1.134, allocations: 5.562 MB / 0.5869 GB, free: 15.96 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007191/1.141, allocations: 3.552 MB / 0.5903 GB, free: 12.4 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.223e-05/1.142, allocations: 36 kB / 0.5904 GB, free: 12.36 MB / 426.7 MB Notification: Performance of matching and sorting (n=810) (initialization): time 0.02013/1.162, allocations: 7.844 MB / 0.598 GB, free: 4.508 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001104/1.162, allocations: 56.78 kB / 0.5981 GB, free: 4.453 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001584/1.162, allocations: 120 kB / 0.5982 GB, free: 4.336 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004407/1.166, allocations: 1.036 MB / 0.5992 GB, free: 3.289 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005708/1.172, allocations: 1.392 MB / 0.6006 GB, free: 1.895 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2386/1.411, allocations: 2.393 MB / 0.6029 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004982/1.416, allocations: 209 kB / 0.6031 GB, free: 108.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001072/1.417, allocations: 361 kB / 0.6034 GB, free: 108.1 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 (757): * Single equations (assignments): 748 * 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 {(3,100.0%),(2,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.001036/1.418, allocations: 414.8 kB / 0.6038 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005549/1.419, allocations: 282.7 kB / 0.6041 GB, free: 108 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01143/1.43, allocations: 4.736 MB / 0.6087 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.277e-05/1.43, allocations: 44.38 kB / 0.6088 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/1.43, allocations: 3.906 kB / 0.6088 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.597e-05/1.43, allocations: 12.58 kB / 0.6088 GB, free: 107.8 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0231/1.453, allocations: 10.29 MB / 0.6188 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.756e-05/1.453, allocations: 11.44 kB / 0.6188 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002481/1.456, allocations: 429.6 kB / 0.6193 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003742/1.46, allocations: 0.5898 MB / 0.6198 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003476/1.46, allocations: 23.94 kB / 0.6199 GB, free: 107.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002527/1.463, allocations: 2.012 MB / 0.6218 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.3e-05/1.463, allocations: 14.25 kB / 0.6218 GB, free: 105.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01347/1.476, allocations: 7.611 MB / 0.6293 GB, free: 104.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007388/1.477, allocations: 325.4 kB / 0.6296 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006118/1.477, allocations: 16.16 kB / 0.6296 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001731/1.479, allocations: 98.25 kB / 0.6297 GB, free: 104.1 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003657/1.48, allocations: 161.8 kB / 0.6298 GB, free: 104 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002322/1.48, allocations: 77.56 kB / 0.6299 GB, free: 104 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002595/1.482, allocations: 1.568 MB / 0.6314 GB, free: 103.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.54e-07/1.482, allocations: 0 / 0.6314 GB, free: 103.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005524/1.488, allocations: 0.8669 MB / 0.6323 GB, free: 103.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 41 * 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.w_rel_b_1,freeMotionScalarInit.w_rel_b_2,freeMotionScalarInit.w_rel_b_3) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (209): * Single equations (assignments): 200 * 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.0005707/1.489, allocations: 162 kB / 0.6324 GB, free: 103.3 MB / 426.7 MB [/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 $DER.freeMotionScalarInit.angle_2 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 $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.01102/1.5, allocations: 5.749 MB / 0.6381 GB, free: 101.6 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.158e-05/1.5, allocations: 3.625 kB / 0.6381 GB, free: 101.6 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005016/1.505, allocations: 2.308 MB / 0.6403 GB, free: 100.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002251/1.507, allocations: 287.8 kB / 0.6406 GB, free: 100.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02057/1.528, allocations: 9.708 MB / 0.6501 GB, free: 96.98 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005978/1.534, allocations: 3.608 MB / 0.6536 GB, free: 95.14 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001367/1.535, allocations: 285.3 kB / 0.6539 GB, free: 94.88 MB / 426.7 MB Notification: Performance of SimCode: time 1.761e-06/1.535, allocations: 0 / 0.6539 GB, free: 94.88 MB / 426.7 MB Notification: Performance of Templates: time 0.3746/1.91, allocations: 112.7 MB / 0.7639 GB, free: 127.6 MB / 442.7 MB