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.314/2.314, allocations: 235 MB / 248.1 MB, free: 14.36 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.169e-05/3.191e-05, allocations: 4 kB / 309.7 MB, free: 1.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3188/0.3188, allocations: 54.86 MB / 364.5 MB, free: 5.531 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1964/0.5153, allocations: 101.6 MB / 466.2 MB, free: 10.79 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002351/0.5156, allocations: 79.95 kB / 466.3 MB, free: 10.71 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6263/1.142, allocations: 97.95 MB / 0.551 GB, free: 107.4 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.094e-06/1.142, allocations: 2.719 kB / 0.551 GB, free: 107.4 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001882/1.142, allocations: 88.86 kB / 0.5511 GB, free: 107.4 MB / 458.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.01743/1.16, allocations: 4.65 MB / 0.5556 GB, free: 105.5 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.328e-05/1.16, allocations: 10.41 kB / 0.5556 GB, free: 105.5 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02047/1.18, allocations: 3.629 MB / 0.5592 GB, free: 105.1 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01513/1.195, allocations: 4.893 MB / 0.5639 GB, free: 104.5 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004021/1.196, allocations: 385.2 kB / 0.5643 GB, free: 104.5 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002367/1.198, allocations: 0.4895 MB / 0.5648 GB, free: 104.5 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03051/1.229, allocations: 12.14 MB / 0.5766 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000248/1.229, allocations: 41.3 kB / 0.5767 GB, free: 101.3 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002105/1.231, allocations: 222 kB / 0.5769 GB, free: 101.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002293/1.233, allocations: 1.316 MB / 0.5782 GB, free: 101 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02734/1.261, allocations: 11.37 MB / 0.5893 GB, free: 97.39 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06552/1.326, allocations: 41.98 MB / 0.6303 GB, free: 59.86 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01266/1.339, allocations: 4.851 MB / 0.635 GB, free: 54.79 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003955/1.343, allocations: 2.358 MB / 0.6373 GB, free: 52.42 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01235/1.355, allocations: 6.58 MB / 0.6438 GB, free: 45.56 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.519e-05/1.356, allocations: 52.56 kB / 0.6438 GB, free: 45.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=231): time 6.356e-06/1.356, allocations: 0 / 0.6438 GB, free: 45.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=252): time 0.056/1.412, allocations: 16.08 MB / 0.6595 GB, free: 29.38 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.042e-05/1.412, allocations: 77.41 kB / 0.6596 GB, free: 29.29 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005344/1.417, allocations: 2.82 MB / 0.6623 GB, free: 26.46 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004031/1.417, allocations: 63.48 kB / 0.6624 GB, free: 26.39 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001923/1.419, allocations: 3.274 MB / 0.6656 GB, free: 23.12 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001057/1.42, allocations: 0.9394 MB / 0.6665 GB, free: 22.18 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005914/1.421, allocations: 119.9 kB / 0.6666 GB, free: 22.07 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004427/1.422, allocations: 0.5752 MB / 0.6672 GB, free: 21.48 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004581/1.426, allocations: 2.406 MB / 0.6695 GB, free: 19.07 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006502/1.433, allocations: 5.783 MB / 0.6752 GB, free: 11.62 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00667/1.439, allocations: 3.762 MB / 0.6789 GB, free: 7.859 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.262e-05/1.44, allocations: 32 kB / 0.6789 GB, free: 7.828 MB / 458.7 MB Notification: Performance of matching and sorting (n=817) (initialization): time 0.02542/1.465, allocations: 9.887 MB / 0.6885 GB, free: 13.95 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001256/1.465, allocations: 52 kB / 0.6886 GB, free: 13.9 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001641/1.465, allocations: 120 kB / 0.6887 GB, free: 13.79 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01169/1.477, allocations: 2.345 MB / 0.691 GB, free: 11.44 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006302/1.483, allocations: 1.353 MB / 0.6923 GB, free: 10.09 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2953/1.779, allocations: 10.63 MB / 0.7027 GB, free: 105.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005578/1.784, allocations: 329.2 kB / 0.703 GB, free: 105.7 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001415/1.786, allocations: 357.8 kB / 0.7034 GB, free: 105.7 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 () * 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.001524/1.787, allocations: 0.5454 MB / 0.7039 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006444/1.788, allocations: 309 kB / 0.7042 GB, free: 105.6 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01081/1.799, allocations: 4.585 MB / 0.7087 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.292e-05/1.799, allocations: 50.05 kB / 0.7087 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.249e-05/1.799, allocations: 0 / 0.7087 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.304e-05/1.799, allocations: 10.27 kB / 0.7087 GB, free: 105.4 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02762/1.827, allocations: 10.79 MB / 0.7192 GB, free: 104.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.032e-05/1.827, allocations: 7.969 kB / 0.7193 GB, free: 104.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002614/1.829, allocations: 419.9 kB / 0.7197 GB, free: 104.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002832/1.832, allocations: 0.686 MB / 0.7203 GB, free: 104.7 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005483/1.833, allocations: 57.91 kB / 0.7204 GB, free: 104.7 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003268/1.836, allocations: 2.409 MB / 0.7227 GB, free: 103.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.996e-06/1.836, allocations: 8.781 kB / 0.7227 GB, free: 103.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0135/1.85, allocations: 7.396 MB / 0.73 GB, free: 102.2 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000896/1.851, allocations: 355.7 kB / 0.7303 GB, free: 102.1 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007345/1.851, allocations: 49.75 kB / 0.7304 GB, free: 102 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002022/1.853, allocations: 142.3 kB / 0.7305 GB, free: 102 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000409/1.854, allocations: 132.9 kB / 0.7306 GB, free: 102 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000254/1.854, allocations: 73.5 kB / 0.7307 GB, free: 102 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.003488/1.858, allocations: 1.9 MB / 0.7325 GB, free: 101.3 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.313e-06/1.858, allocations: 0 / 0.7325 GB, free: 101.3 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006337/1.864, allocations: 1.134 MB / 0.7336 GB, free: 101.2 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 () * 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.0006582/1.865, allocations: 193.2 kB / 0.7338 GB, free: 101.1 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 was selected as a continuous variable. [/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 was selected as a continuous variable. [/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 was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.01167/1.876, allocations: 6.059 MB / 0.7397 GB, free: 99.32 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.157e-06/1.877, allocations: 0 / 0.7397 GB, free: 99.32 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005477/1.882, allocations: 2.507 MB / 0.7422 GB, free: 98.38 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002747/1.885, allocations: 418.8 kB / 0.7426 GB, free: 98.21 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02287/1.908, allocations: 9.995 MB / 0.7524 GB, free: 94.66 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007424/1.915, allocations: 3.88 MB / 0.7561 GB, free: 93.25 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001488/1.917, allocations: 291.6 kB / 0.7564 GB, free: 93.24 MB / 474.7 MB Notification: Performance of SimCode: time 1.795e-06/1.917, allocations: 3.219 kB / 0.7564 GB, free: 93.24 MB / 474.7 MB Notification: Performance of Templates: time 0.1539/2.071, allocations: 113.9 MB / 0.8676 GB, free: 13.97 MB / 490.7 MB