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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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.365/2.365, allocations: 234.9 MB / 250.5 MB, free: 9.457 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007879/0.0007881, allocations: 19.94 kB / 314.4 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.331, allocations: 54.86 MB / 369.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1529/0.484, allocations: 101.7 MB / 471 MB, free: 4.805 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/0.4843, allocations: 79.97 kB / 471.1 MB, free: 4.727 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5741/1.058, allocations: 97.87 MB / 0.5556 GB, free: 15.79 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.576e-06/1.058, allocations: 0 / 0.5556 GB, free: 15.79 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000177/1.059, allocations: 88 kB / 0.5557 GB, free: 15.7 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.01777/1.076, allocations: 4.806 MB / 0.5604 GB, free: 10.82 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/1.076, allocations: 8.031 kB / 0.5604 GB, free: 10.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01866/1.095, allocations: 3.62 MB / 0.5639 GB, free: 7.184 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01413/1.109, allocations: 4.924 MB / 0.5687 GB, free: 2.207 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000408/1.11, allocations: 378.2 kB / 0.5691 GB, free: 1.836 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0022/1.112, allocations: 0.4919 MB / 0.5696 GB, free: 1.344 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03357/1.146, allocations: 12.24 MB / 0.5815 GB, free: 4.562 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002462/1.146, allocations: 35.64 kB / 0.5816 GB, free: 4.527 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002063/1.148, allocations: 227.9 kB / 0.5818 GB, free: 4.305 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002592/1.151, allocations: 1.311 MB / 0.5831 GB, free: 2.992 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03033/1.181, allocations: 11.54 MB / 0.5943 GB, free: 7.441 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09946/1.28, allocations: 41.98 MB / 0.6353 GB, free: 12.43 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02521/1.306, allocations: 4.885 MB / 0.6401 GB, free: 7.309 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01641/1.322, allocations: 6.579 MB / 0.6465 GB, free: 424 kB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.457e-05/1.322, allocations: 52.56 kB / 0.6466 GB, free: 360 kB / 474.7 MB Notification: Performance of pre-optimization done (n=231): time 6.41e-06/1.322, allocations: 3.938 kB / 0.6466 GB, free: 356 kB / 474.7 MB Notification: Performance of matching and sorting (n=252): time 0.3375/1.66, allocations: 19.36 MB / 0.6655 GB, free: 113.5 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.042e-05/1.66, allocations: 72.28 kB / 0.6656 GB, free: 113.4 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005317/1.665, allocations: 2.843 MB / 0.6683 GB, free: 113.1 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004306/1.666, allocations: 60.38 kB / 0.6684 GB, free: 113.1 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00202/1.668, allocations: 3.269 MB / 0.6716 GB, free: 111.3 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001079/1.669, allocations: 0.9458 MB / 0.6725 GB, free: 110.7 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005136/1.669, allocations: 120.6 kB / 0.6726 GB, free: 110.7 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0004001/1.67, allocations: 0.5712 MB / 0.6732 GB, free: 110.4 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004872/1.675, allocations: 2.461 MB / 0.6756 GB, free: 110.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006747/1.681, allocations: 5.824 MB / 0.6813 GB, free: 106.1 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0071/1.689, allocations: 3.778 MB / 0.685 GB, free: 105.7 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.621e-05/1.689, allocations: 33.41 kB / 0.685 GB, free: 105.7 MB / 474.7 MB Notification: Performance of matching and sorting (n=817) (initialization): time 0.02644/1.715, allocations: 9.978 MB / 0.6947 GB, free: 102.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000101/1.715, allocations: 55.19 kB / 0.6948 GB, free: 102.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001348/1.715, allocations: 117.9 kB / 0.6949 GB, free: 102.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01148/1.727, allocations: 2.346 MB / 0.6972 GB, free: 102.6 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005596/1.733, allocations: 1.36 MB / 0.6985 GB, free: 102.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02262/1.755, allocations: 11.1 MB / 0.7094 GB, free: 97.38 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005448/1.761, allocations: 323.6 kB / 0.7097 GB, free: 97.28 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001121/1.762, allocations: 359.6 kB / 0.71 GB, free: 97.13 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 538 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (733): * Single equations (assignments): 725 * 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 27} Notification: Performance of prepare postOptimizeDAE: time 0.005184/1.767, allocations: 2.428 MB / 0.7124 GB, free: 95.02 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005964/1.768, allocations: 308 kB / 0.7127 GB, free: 94.71 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009172/1.777, allocations: 4.637 MB / 0.7172 GB, free: 90.81 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.428e-05/1.777, allocations: 49.72 kB / 0.7173 GB, free: 90.77 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/1.777, allocations: 7.953 kB / 0.7173 GB, free: 90.76 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.304e-05/1.777, allocations: 10.22 kB / 0.7173 GB, free: 90.76 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02306/1.8, allocations: 10.83 MB / 0.7279 GB, free: 81.76 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.017e-05/1.8, allocations: 7.953 kB / 0.7279 GB, free: 81.75 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002387/1.803, allocations: 422.4 kB / 0.7283 GB, free: 81.42 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002437/1.805, allocations: 0.6914 MB / 0.7289 GB, free: 80.96 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004423/1.806, allocations: 58.08 kB / 0.729 GB, free: 80.91 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00295/1.809, allocations: 2.43 MB / 0.7314 GB, free: 78.65 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.773e-06/1.809, allocations: 7.938 kB / 0.7314 GB, free: 78.64 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01311/1.822, allocations: 7.468 MB / 0.7387 GB, free: 71.87 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008671/1.823, allocations: 358.2 kB / 0.739 GB, free: 71.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008294/1.824, allocations: 51.56 kB / 0.7391 GB, free: 71.46 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002023/1.826, allocations: 136.8 kB / 0.7392 GB, free: 71.38 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004674/1.826, allocations: 141.1 kB / 0.7393 GB, free: 71.29 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002419/1.826, allocations: 76.62 kB / 0.7394 GB, free: 71.22 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003558/1.83, allocations: 1.921 MB / 0.7413 GB, free: 69.64 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.61e-07/1.83, allocations: 0 / 0.7413 GB, free: 69.64 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006428/1.836, allocations: 1.134 MB / 0.7424 GB, free: 68.52 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (206): * Single equations (assignments): 197 * 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.0006583/1.837, allocations: 205.3 kB / 0.7426 GB, free: 68.34 MB / 474.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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 can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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 can't be selected as a state. [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/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 can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01127/1.848, allocations: 6.128 MB / 0.7486 GB, free: 62.95 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 7.822e-06/1.848, allocations: 0 / 0.7486 GB, free: 62.95 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005029/1.853, allocations: 2.532 MB / 0.751 GB, free: 60.71 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002434/1.856, allocations: 420.9 kB / 0.7514 GB, free: 60.38 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02391/1.88, allocations: 14.02 MB / 0.7651 GB, free: 47.57 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006702/1.887, allocations: 3.878 MB / 0.7689 GB, free: 44.61 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001387/1.888, allocations: 286.8 kB / 0.7692 GB, free: 44.34 MB / 474.7 MB Notification: Performance of SimCode: time 2.21e-06/1.888, allocations: 0 / 0.7692 GB, free: 44.34 MB / 474.7 MB Notification: Performance of Templates: time 0.4346/2.323, allocations: 113.9 MB / 0.8804 GB, free: 100.8 MB / 490.7 MB