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.FreeMotionScalarInit3.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.FreeMotionScalarInit3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.w_a.1.|body.w_a.2.|body.w_a.3.|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",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit3") Notification: Performance of loadModel(ModelicaTest): time 2.024/2.024, allocations: 209.4 MB / 217.3 MB, free: 4.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.074e-05/2.081e-05, allocations: 4 kB / 271.3 MB, free: 14.13 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2646, allocations: 48.69 MB / 320 MB, free: 14.39 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1562/0.4209, allocations: 94.22 MB / 414.2 MB, free: 2.176 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.4212, allocations: 75.97 kB / 414.3 MB, free: 2.102 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.643/1.064, allocations: 95.66 MB / 0.498 GB, free: 47.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.589e-06/1.064, allocations: 8 kB / 0.498 GB, free: 47.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001758/1.064, allocations: 87.05 kB / 0.4981 GB, free: 47.62 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: 1869 * Number of variables: 1869 Notification: Performance of Generate backend data structure: time 0.01709/1.082, allocations: 4.639 MB / 0.5026 GB, free: 43.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/1.082, allocations: 8.031 kB / 0.5026 GB, free: 43.28 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01873/1.1, allocations: 3.622 MB / 0.5062 GB, free: 39.66 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01432/1.115, allocations: 4.881 MB / 0.5109 GB, free: 35.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002931/1.115, allocations: 164 kB / 0.5111 GB, free: 35.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002416/1.117, allocations: 288 kB / 0.5114 GB, free: 35.31 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01667/1.134, allocations: 8.424 MB / 0.5196 GB, free: 28.43 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02554/1.16, allocations: 11.11 MB / 0.5305 GB, free: 16.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002253/1.16, allocations: 39.66 kB / 0.5305 GB, free: 16.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002065/1.162, allocations: 19.95 kB / 0.5305 GB, free: 16.73 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002042/1.164, allocations: 1.314 MB / 0.5318 GB, free: 15.42 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07151/1.236, allocations: 39.39 MB / 0.5703 GB, free: 7.469 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007646/1.243, allocations: 4.293 MB / 0.5745 GB, free: 2.949 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004589/1.248, allocations: 2.286 MB / 0.5767 GB, free: 0.6562 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001786/1.25, allocations: 1.322 MB / 0.578 GB, free: 15.12 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.745e-05/1.25, allocations: 60.5 kB / 0.578 GB, free: 15.05 MB / 426.7 MB Notification: Performance of pre-optimization done (n=262): time 8.158e-06/1.25, allocations: 0 / 0.578 GB, free: 15.05 MB / 426.7 MB Notification: Performance of matching and sorting (n=271): time 0.05884/1.309, allocations: 14.35 MB / 0.5921 GB, free: 492 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001419/1.309, allocations: 111.1 kB / 0.5922 GB, free: 360 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3095/1.619, allocations: 2.567 MB / 0.5947 GB, free: 104.1 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005738/1.619, allocations: 25.7 kB / 0.5947 GB, free: 104 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003184/1.622, allocations: 3.289 MB / 0.5979 GB, free: 102.8 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001752/1.624, allocations: 0.9856 MB / 0.5989 GB, free: 102.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008107/1.625, allocations: 0 / 0.5989 GB, free: 102.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008788/1.626, allocations: 0.5848 MB / 0.5994 GB, free: 101.8 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005207/1.631, allocations: 2.34 MB / 0.6017 GB, free: 101.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006693/1.638, allocations: 5.939 MB / 0.6075 GB, free: 97.19 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007035/1.645, allocations: 3.774 MB / 0.6112 GB, free: 97.16 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001101/1.645, allocations: 36.81 kB / 0.6112 GB, free: 97.16 MB / 426.7 MB Notification: Performance of matching and sorting (n=861) (initialization): time 0.02055/1.666, allocations: 8.409 MB / 0.6195 GB, free: 96.62 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001037/1.666, allocations: 63.92 kB / 0.6195 GB, free: 96.62 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001444/1.666, allocations: 128.5 kB / 0.6196 GB, free: 96.62 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004588/1.671, allocations: 1.137 MB / 0.6207 GB, free: 96.6 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006289/1.677, allocations: 1.481 MB / 0.6222 GB, free: 96.47 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00668/1.684, allocations: 4.488 MB / 0.6266 GB, free: 94.67 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005926/1.69, allocations: 218.7 kB / 0.6268 GB, free: 94.67 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001353/1.691, allocations: 380.4 kB / 0.6271 GB, free: 94.67 MB / 426.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 (801): * Single equations (assignments): 793 * 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: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {3 5} Notification: Performance of prepare postOptimizeDAE: time 0.001237/1.692, allocations: 429.6 kB / 0.6276 GB, free: 94.35 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007062/1.693, allocations: 307.1 kB / 0.6278 GB, free: 94.18 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01093/1.704, allocations: 4.769 MB / 0.6325 GB, free: 93.95 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001061/1.704, allocations: 48.8 kB / 0.6326 GB, free: 93.95 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/1.704, allocations: 7.391 kB / 0.6326 GB, free: 93.94 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-05/1.704, allocations: 11.25 kB / 0.6326 GB, free: 93.94 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02477/1.729, allocations: 10.6 MB / 0.6429 GB, free: 91.37 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.568e-05/1.729, allocations: 7.125 kB / 0.6429 GB, free: 91.37 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002682/1.732, allocations: 454.3 kB / 0.6434 GB, free: 91.33 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002484/1.734, allocations: 0.6511 MB / 0.644 GB, free: 91.23 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005341/1.735, allocations: 38.67 kB / 0.644 GB, free: 91.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00291/1.738, allocations: 2.343 MB / 0.6463 GB, free: 89.73 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.451e-05/1.738, allocations: 14.72 kB / 0.6463 GB, free: 89.73 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01362/1.751, allocations: 8.025 MB / 0.6542 GB, free: 84.62 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008926/1.752, allocations: 348 kB / 0.6545 GB, free: 84.27 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007753/1.753, allocations: 15.47 kB / 0.6545 GB, free: 84.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001985/1.755, allocations: 113.3 kB / 0.6546 GB, free: 84.19 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005542/1.756, allocations: 168.1 kB / 0.6548 GB, free: 84.08 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002742/1.756, allocations: 79.84 kB / 0.6549 GB, free: 84.01 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003237/1.759, allocations: 1.687 MB / 0.6565 GB, free: 82.55 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.179e-06/1.759, allocations: 0 / 0.6565 GB, free: 82.55 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006743/1.766, allocations: 0.9456 MB / 0.6574 GB, free: 81.61 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 39 * 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,body.w_a[1],body.w_a[2],body.w_a[3]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (222): * Single equations (assignments): 213 * 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.0007789/1.767, allocations: 174 kB / 0.6576 GB, free: 81.44 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01043/1.777, allocations: 5.759 MB / 0.6632 GB, free: 76.23 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.254e-05/1.777, allocations: 4 kB / 0.6632 GB, free: 76.23 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004913/1.782, allocations: 2.521 MB / 0.6657 GB, free: 73.96 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002368/1.785, allocations: 304.4 kB / 0.666 GB, free: 73.71 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02207/1.807, allocations: 10.38 MB / 0.6761 GB, free: 64.41 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007848/1.815, allocations: 3.847 MB / 0.6799 GB, free: 61.46 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001564/1.816, allocations: 309.3 kB / 0.6802 GB, free: 61.18 MB / 426.7 MB Notification: Performance of SimCode: time 1.842e-06/1.816, allocations: 0 / 0.6802 GB, free: 61.18 MB / 426.7 MB Notification: Performance of Templates: time 0.4013/2.218, allocations: 111.1 MB / 0.7886 GB, free: 107.6 MB / 442.7 MB