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.FreeMotionScalarInit2.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.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.2_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadModel(ModelicaTest): time 2.42/2.42, allocations: 234.9 MB / 250.5 MB, free: 9.465 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004384/0.0004386, allocations: 8 kB / 314.4 MB, free: 9.461 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.296/0.2965, allocations: 54.85 MB / 369.3 MB, free: 12.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2174/0.514, allocations: 97.98 MB / 467.2 MB, free: 10.62 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002884/0.5143, allocations: 83.95 kB / 467.3 MB, free: 10.54 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5794/1.094, allocations: 90.94 MB / 0.5452 GB, free: 88.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.063e-06/1.094, allocations: 0 / 0.5452 GB, free: 88.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001642/1.094, allocations: 76 kB / 0.5453 GB, free: 88.25 MB / 426.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.01702/1.111, allocations: 4.434 MB / 0.5496 GB, free: 83.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.133e-05/1.111, allocations: 8.031 kB / 0.5496 GB, free: 83.77 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01841/1.129, allocations: 3.583 MB / 0.5531 GB, free: 80.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01378/1.143, allocations: 4.72 MB / 0.5577 GB, free: 75.44 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004408/1.144, allocations: 336.7 kB / 0.558 GB, free: 75.11 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002409/1.146, allocations: 439.9 kB / 0.5584 GB, free: 74.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02869/1.175, allocations: 11.5 MB / 0.5697 GB, free: 62.7 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001957/1.175, allocations: 31.72 kB / 0.5697 GB, free: 62.67 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001932/1.177, allocations: 195.9 kB / 0.5699 GB, free: 62.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002033/1.179, allocations: 1.259 MB / 0.5711 GB, free: 61.22 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02537/1.205, allocations: 11.08 MB / 0.5819 GB, free: 50.12 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0946/1.299, allocations: 38.01 MB / 0.6191 GB, free: 11.23 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01808/1.317, allocations: 4.691 MB / 0.6236 GB, free: 6.309 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001233/1.319, allocations: 1.327 MB / 0.6249 GB, free: 4.762 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.476e-05/1.319, allocations: 60.59 kB / 0.625 GB, free: 4.695 MB / 426.7 MB Notification: Performance of pre-optimization done (n=244): time 8.065e-06/1.319, allocations: 0 / 0.625 GB, free: 4.695 MB / 426.7 MB Notification: Performance of matching and sorting (n=256): time 0.05338/1.372, allocations: 14.35 MB / 0.639 GB, free: 6.148 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.103e-05/1.372, allocations: 77.39 kB / 0.6391 GB, free: 6.059 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00614/1.378, allocations: 2.502 MB / 0.6415 GB, free: 3.543 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004486/1.379, allocations: 57.7 kB / 0.6416 GB, free: 3.48 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003073/1.382, allocations: 2.952 MB / 0.6445 GB, free: 500 kB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001502/1.384, allocations: 0.9404 MB / 0.6454 GB, free: 15.54 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000586/1.384, allocations: 112 kB / 0.6455 GB, free: 15.43 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006217/1.385, allocations: 0.5586 MB / 0.646 GB, free: 14.86 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005578/1.39, allocations: 2.276 MB / 0.6482 GB, free: 12.57 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008993/1.399, allocations: 5.401 MB / 0.6535 GB, free: 5.633 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008034/1.408, allocations: 3.517 MB / 0.657 GB, free: 2.117 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001124/1.408, allocations: 32 kB / 0.657 GB, free: 2.086 MB / 458.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02289/1.431, allocations: 8.324 MB / 0.6651 GB, free: 9.746 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001149/1.431, allocations: 56.2 kB / 0.6652 GB, free: 9.691 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001672/1.431, allocations: 112 kB / 0.6653 GB, free: 9.582 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004565/1.435, allocations: 1.025 MB / 0.6663 GB, free: 8.547 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005897/1.441, allocations: 1.318 MB / 0.6676 GB, free: 7.227 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004182/1.446, allocations: 2.494 MB / 0.67 GB, free: 4.594 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005036/1.451, allocations: 315.7 kB / 0.6703 GB, free: 4.285 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001238/1.452, allocations: 328 kB / 0.6706 GB, free: 3.965 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 500 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (710): * Single equations (assignments): 701 * 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.006166/1.458, allocations: 2.27 MB / 0.6728 GB, free: 1.68 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006758/1.459, allocations: 284.3 kB / 0.6731 GB, free: 1.398 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2899/1.749, allocations: 4.891 MB / 0.6779 GB, free: 124.6 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.555e-05/1.749, allocations: 47.92 kB / 0.6779 GB, free: 124.6 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.951e-05/1.749, allocations: 6.531 kB / 0.6779 GB, free: 124.6 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.437e-05/1.749, allocations: 13.58 kB / 0.6779 GB, free: 124.6 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02707/1.776, allocations: 11.51 MB / 0.6892 GB, free: 123.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.528e-05/1.776, allocations: 7.25 kB / 0.6892 GB, free: 123.9 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002365/1.779, allocations: 410 kB / 0.6896 GB, free: 123.9 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003597/1.782, allocations: 0.6151 MB / 0.6902 GB, free: 123.8 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000477/1.783, allocations: 55.42 kB / 0.6902 GB, free: 123.8 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002615/1.785, allocations: 2.1 MB / 0.6923 GB, free: 122.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.069e-05/1.785, allocations: 13 kB / 0.6923 GB, free: 122.6 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01459/1.8, allocations: 7.723 MB / 0.6998 GB, free: 120.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009119/1.801, allocations: 337.4 kB / 0.7002 GB, free: 120.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009452/1.802, allocations: 45.56 kB / 0.7002 GB, free: 120.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002108/1.804, allocations: 129.2 kB / 0.7003 GB, free: 120.4 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005232/1.805, allocations: 163.1 kB / 0.7005 GB, free: 120.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002435/1.805, allocations: 77.34 kB / 0.7006 GB, free: 120.4 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003357/1.808, allocations: 1.709 MB / 0.7022 GB, free: 119.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.197e-06/1.808, allocations: 0 / 0.7022 GB, free: 119.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006284/1.815, allocations: 0.9933 MB / 0.7032 GB, free: 119.7 MB / 474.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,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (207): * Single equations (assignments): 198 * 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.0007707/1.815, allocations: 196.9 kB / 0.7034 GB, free: 119.5 MB / 474.7 MB [/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 $DER.freeMotionScalarInit.angle_2 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 $DER.freeMotionScalarInit.angle_1 has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01214/1.828, allocations: 5.963 MB / 0.7092 GB, free: 117.7 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.33e-05/1.828, allocations: 3.969 kB / 0.7092 GB, free: 117.7 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005426/1.833, allocations: 2.377 MB / 0.7115 GB, free: 116.8 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00255/1.836, allocations: 401.7 kB / 0.7119 GB, free: 116.6 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02478/1.86, allocations: 13.42 MB / 0.725 GB, free: 109.3 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007262/1.868, allocations: 3.617 MB / 0.7286 GB, free: 106.5 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001385/1.869, allocations: 277.1 kB / 0.7288 GB, free: 106.2 MB / 474.7 MB Notification: Performance of SimCode: time 2.114e-06/1.869, allocations: 0 / 0.7288 GB, free: 106.2 MB / 474.7 MB Notification: Performance of Templates: time 0.1579/2.027, allocations: 113.9 MB / 0.84 GB, free: 15.64 MB / 490.7 MB