Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.1_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2.conf.json Using package ModelicaTest with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo) Using package ModelicaServices with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/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_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit2") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.002593/0.002598, allocations: 350.6 kB / 15.94 MB, free: 6.215 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 3.618/3.618, allocations: 341.5 MB / 358.2 MB, free: 12.62 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.003657/0.003656, allocations: 214.2 kB / 397.8 MB, free: 4.973 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.5402/0.5402, allocations: 76.09 MB / 0.5014 GB, free: 112.6 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005256/0.0005257, allocations: 16 kB / 0.5592 GB, free: 53.46 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08824/0.0888, allocations: 48.7 MB / 0.6067 GB, free: 4.66 MB / 362.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4416/0.5305, allocations: 91.25 MB / 0.6958 GB, free: 21.48 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002929/0.5309, allocations: 86.48 kB / 0.6959 GB, free: 21.39 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6512/1.182, allocations: 90.37 MB / 0.7842 GB, free: 86.99 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.106e-06/1.182, allocations: 1.375 kB / 0.7842 GB, free: 86.99 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002053/1.182, allocations: 76.38 kB / 0.7842 GB, free: 86.99 MB / 410.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.0227/1.205, allocations: 4.386 MB / 0.7885 GB, free: 85.11 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/1.205, allocations: 10.94 kB / 0.7885 GB, free: 85.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0278/1.233, allocations: 3.544 MB / 0.792 GB, free: 84.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01236/1.245, allocations: 3.612 MB / 0.7955 GB, free: 84.27 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004382/1.246, allocations: 335.3 kB / 0.7958 GB, free: 84.26 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003305/1.249, allocations: 443.4 kB / 0.7963 GB, free: 84.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03603/1.285, allocations: 11.43 MB / 0.8074 GB, free: 82.82 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000253/1.286, allocations: 26.62 kB / 0.8075 GB, free: 82.81 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002839/1.288, allocations: 203.1 kB / 0.8077 GB, free: 82.77 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00278/1.291, allocations: 1.247 MB / 0.8089 GB, free: 82.54 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03074/1.322, allocations: 11 MB / 0.8196 GB, free: 79.14 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.077/1.399, allocations: 37.95 MB / 0.8567 GB, free: 50.81 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01357/1.413, allocations: 4.698 MB / 0.8613 GB, free: 45.92 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00483/1.418, allocations: 2.245 MB / 0.8635 GB, free: 43.68 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00148/1.419, allocations: 1.313 MB / 0.8647 GB, free: 42.15 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.451e-05/1.419, allocations: 60.5 kB / 0.8648 GB, free: 42.08 MB / 410.7 MB Notification: Performance of pre-optimization done (n=244): time 6.122e-06/1.419, allocations: 0 / 0.8648 GB, free: 42.08 MB / 410.7 MB Notification: Performance of matching and sorting (n=256): time 0.0762/1.495, allocations: 14.55 MB / 0.879 GB, free: 27.46 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.799e-05/1.496, allocations: 73.41 kB / 0.8791 GB, free: 27.38 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004954/1.5, allocations: 2.796 MB / 0.8818 GB, free: 24.57 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005276/1.501, allocations: 70.09 kB / 0.8819 GB, free: 24.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002068/1.503, allocations: 2.957 MB / 0.8848 GB, free: 21.54 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001317/1.504, allocations: 0.9314 MB / 0.8857 GB, free: 20.61 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005803/1.505, allocations: 113 kB / 0.8858 GB, free: 20.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003785/1.505, allocations: 0.55 MB / 0.8863 GB, free: 19.95 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005504/1.511, allocations: 2.276 MB / 0.8885 GB, free: 17.66 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007538/1.519, allocations: 5.433 MB / 0.8938 GB, free: 10.69 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008214/1.527, allocations: 3.517 MB / 0.8973 GB, free: 7.176 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.573e-05/1.527, allocations: 35.95 kB / 0.8973 GB, free: 7.141 MB / 410.7 MB Notification: Performance of matching and sorting (n=763) (initialization): time 0.02496/1.552, allocations: 8.387 MB / 0.9055 GB, free: 14.75 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001136/1.552, allocations: 52 kB / 0.9056 GB, free: 14.7 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002083/1.552, allocations: 112 kB / 0.9057 GB, free: 14.59 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006771/1.559, allocations: 1.03 MB / 0.9067 GB, free: 13.55 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008786/1.568, allocations: 1.318 MB / 0.908 GB, free: 12.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004478/1.573, allocations: 2.463 MB / 0.9104 GB, free: 9.633 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005661/1.578, allocations: 319.6 kB / 0.9107 GB, free: 9.32 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00146/1.58, allocations: 336 kB / 0.911 GB, free: 8.992 MB / 426.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.006876/1.587, allocations: 2.264 MB / 0.9132 GB, free: 6.723 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007578/1.587, allocations: 284.3 kB / 0.9135 GB, free: 6.441 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01738/1.605, allocations: 4.904 MB / 0.9183 GB, free: 1.469 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001214/1.605, allocations: 44 kB / 0.9183 GB, free: 1.426 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.299e-05/1.605, allocations: 0 / 0.9183 GB, free: 1.426 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.225e-05/1.605, allocations: 11.95 kB / 0.9183 GB, free: 1.414 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3323/1.937, allocations: 11.48 MB / 0.9295 GB, free: 91.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.748e-05/1.937, allocations: 12.36 kB / 0.9295 GB, free: 91.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003842/1.941, allocations: 412.1 kB / 0.9299 GB, free: 91.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005426/1.947, allocations: 0.619 MB / 0.9305 GB, free: 91.52 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006273/1.947, allocations: 61.58 kB / 0.9306 GB, free: 91.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003396/1.951, allocations: 2.061 MB / 0.9326 GB, free: 90.27 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.406e-05/1.951, allocations: 16.47 kB / 0.9326 GB, free: 90.27 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01919/1.97, allocations: 6.961 MB / 0.9394 GB, free: 89.62 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009478/1.971, allocations: 336.6 kB / 0.9397 GB, free: 89.53 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001586/1.973, allocations: 50.84 kB / 0.9398 GB, free: 89.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004593/1.977, allocations: 128.5 kB / 0.9399 GB, free: 89.53 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001387/1.979, allocations: 160.4 kB / 0.9401 GB, free: 89.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008311/1.98, allocations: 76.33 kB / 0.9401 GB, free: 89.52 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.006922/1.987, allocations: 1.709 MB / 0.9418 GB, free: 89.38 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.51e-07/1.987, allocations: 0 / 0.9418 GB, free: 89.38 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007181/1.994, allocations: 0.9949 MB / 0.9428 GB, free: 89.38 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,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.001011/1.995, allocations: 194.5 kB / 0.943 GB, free: 89.29 MB / 426.7 MB [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Mechanics/MultiBody/Joints.mo:1987:5-1989:161:writable] Warning: Variable $DER.freeMotionScalarInit.angle_2 has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/Mechanics/MultiBody/Joints.mo:1984:5-1986: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.01593/2.011, allocations: 5.97 MB / 0.9488 GB, free: 88.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.641e-05/2.011, allocations: 0 / 0.9488 GB, free: 88.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006853/2.018, allocations: 2.374 MB / 0.9511 GB, free: 88.52 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004448/2.022, allocations: 430.1 kB / 0.9515 GB, free: 88.48 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02923/2.052, allocations: 12.95 MB / 0.9642 GB, free: 82.02 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008194/2.06, allocations: 3.603 MB / 0.9677 GB, free: 80.66 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.009407/2.069, allocations: 2.067 MB / 0.9697 GB, free: 80.53 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001546/2.071, allocations: 228.3 kB / 0.9699 GB, free: 80.52 MB / 426.7 MB Notification: Performance of SimCode: time 1.322e-06/2.071, allocations: 4 kB / 0.9699 GB, free: 80.52 MB / 426.7 MB Notification: Performance of Templates: time 0.08953/2.16, allocations: 30.78 MB / 1 GB, free: 69.79 MB / 426.7 MB