Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/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.1_cpp_ModelicaTest.MultiBody.Joints.FreeMotionScalarInit4") Notification: Performance of loadModel(ModelicaTest): time 2.005/2.005, allocations: 209.2 MB / 225.4 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004399/0.00044, allocations: 12 kB / 283.1 MB, free: 9.711 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3858/0.3863, allocations: 48.71 MB / 331.8 MB, free: 6.504 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1695/0.5559, allocations: 95 MB / 426.8 MB, free: 15.4 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003111/0.5562, allocations: 83.95 kB / 426.9 MB, free: 15.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6609/1.217, allocations: 98.36 MB / 0.5129 GB, free: 83.85 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.686e-06/1.217, allocations: 0 / 0.5129 GB, free: 83.85 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000202/1.217, allocations: 87.94 kB / 0.513 GB, free: 83.85 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.02374/1.241, allocations: 4.808 MB / 0.5177 GB, free: 79.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/1.241, allocations: 8.031 kB / 0.5177 GB, free: 79.98 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02711/1.268, allocations: 3.62 MB / 0.5213 GB, free: 76.35 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01854/1.287, allocations: 4.924 MB / 0.5261 GB, free: 71.42 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004423/1.287, allocations: 380.2 kB / 0.5264 GB, free: 71.09 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003122/1.291, allocations: 0.491 MB / 0.5269 GB, free: 70.63 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03597/1.327, allocations: 12.28 MB / 0.5389 GB, free: 57.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003109/1.327, allocations: 35.8 kB / 0.5389 GB, free: 57.8 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003028/1.33, allocations: 219.9 kB / 0.5391 GB, free: 57.59 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002865/1.333, allocations: 1.318 MB / 0.5404 GB, free: 56.27 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03266/1.366, allocations: 11.54 MB / 0.5517 GB, free: 44.71 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08302/1.449, allocations: 41.97 MB / 0.5927 GB, free: 1.719 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01696/1.466, allocations: 4.882 MB / 0.5975 GB, free: 12.6 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01807/1.484, allocations: 6.586 MB / 0.6039 GB, free: 5.695 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.632e-05/1.484, allocations: 56.55 kB / 0.6039 GB, free: 5.633 MB / 410.7 MB Notification: Performance of pre-optimization done (n=231): time 6.833e-06/1.484, allocations: 0 / 0.6039 GB, free: 5.633 MB / 410.7 MB Notification: Performance of matching and sorting (n=252): time 0.09365/1.578, allocations: 19.59 MB / 0.6231 GB, free: 1.82 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.139e-05/1.578, allocations: 73.41 kB / 0.6231 GB, free: 1.738 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2999/1.878, allocations: 3.168 MB / 0.6262 GB, free: 106.9 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005732/1.878, allocations: 59.11 kB / 0.6263 GB, free: 106.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002808/1.881, allocations: 3.278 MB / 0.6295 GB, free: 105.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00157/1.883, allocations: 0.9447 MB / 0.6304 GB, free: 105 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00086/1.884, allocations: 122.1 kB / 0.6305 GB, free: 105 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0007014/1.884, allocations: 0.5706 MB / 0.6311 GB, free: 104.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007352/1.892, allocations: 2.458 MB / 0.6335 GB, free: 104.7 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009646/1.901, allocations: 5.851 MB / 0.6392 GB, free: 100.4 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009543/1.911, allocations: 3.774 MB / 0.6429 GB, free: 100.3 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001617/1.911, allocations: 34.53 kB / 0.6429 GB, free: 100.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=817) (initialization): time 0.03445/1.946, allocations: 9.986 MB / 0.6527 GB, free: 99.35 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001059/1.946, allocations: 56.06 kB / 0.6527 GB, free: 99.35 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001782/1.946, allocations: 118.1 kB / 0.6528 GB, free: 99.35 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01605/1.962, allocations: 2.341 MB / 0.6551 GB, free: 99.13 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008284/1.97, allocations: 1.358 MB / 0.6564 GB, free: 98.97 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02885/1.999, allocations: 11.09 MB / 0.6673 GB, free: 93.95 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006485/2.006, allocations: 334 kB / 0.6676 GB, free: 93.85 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001496/2.007, allocations: 358.3 kB / 0.6679 GB, free: 93.8 MB / 426.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.007123/2.015, allocations: 2.42 MB / 0.6703 GB, free: 92.71 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008434/2.015, allocations: 307 kB / 0.6706 GB, free: 92.54 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01356/2.029, allocations: 4.648 MB / 0.6751 GB, free: 90.88 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001095/2.029, allocations: 43.83 kB / 0.6752 GB, free: 90.88 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-05/2.029, allocations: 2.906 kB / 0.6752 GB, free: 90.88 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.465e-05/2.029, allocations: 7.781 kB / 0.6752 GB, free: 90.88 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03222/2.061, allocations: 10.85 MB / 0.6858 GB, free: 86.95 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.101e-05/2.062, allocations: 4.5 kB / 0.6858 GB, free: 86.94 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003784/2.065, allocations: 418.7 kB / 0.6862 GB, free: 86.61 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003649/2.069, allocations: 0.6973 MB / 0.6869 GB, free: 86.14 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006241/2.07, allocations: 57.89 kB / 0.6869 GB, free: 86.09 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003937/2.074, allocations: 2.435 MB / 0.6893 GB, free: 83.82 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/2.074, allocations: 4 kB / 0.6893 GB, free: 83.82 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01728/2.091, allocations: 7.118 MB / 0.6963 GB, free: 77.49 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00114/2.092, allocations: 350.4 kB / 0.6966 GB, free: 77.14 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001408/2.094, allocations: 52.27 kB / 0.6966 GB, free: 77.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003151/2.097, allocations: 136.9 kB / 0.6968 GB, free: 77.01 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008654/2.098, allocations: 145.2 kB / 0.6969 GB, free: 76.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008409/2.099, allocations: 72.44 kB / 0.697 GB, free: 76.85 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005253/2.104, allocations: 1.926 MB / 0.6989 GB, free: 75.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.61e-07/2.104, allocations: 0 / 0.6989 GB, free: 75.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007284/2.111, allocations: 1.137 MB / 0.7 GB, free: 74.14 MB / 426.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.001006/2.112, allocations: 197.5 kB / 0.7002 GB, free: 73.96 MB / 426.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1990:5-1992: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/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1984:5-1986: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/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Mechanics/MultiBody/Joints.mo:1987:5-1989: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.01494/2.127, allocations: 6.126 MB / 0.7061 GB, free: 68.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.999e-06/2.127, allocations: 4.438 kB / 0.7061 GB, free: 68.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007413/2.135, allocations: 2.533 MB / 0.7086 GB, free: 66.33 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003669/2.138, allocations: 430.8 kB / 0.709 GB, free: 65.98 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03194/2.17, allocations: 14.04 MB / 0.7227 GB, free: 53.16 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009123/2.18, allocations: 3.873 MB / 0.7265 GB, free: 50.2 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00187/2.181, allocations: 297.2 kB / 0.7268 GB, free: 49.93 MB / 426.7 MB Notification: Performance of SimCode: time 1.473e-06/2.182, allocations: 0 / 0.7268 GB, free: 49.93 MB / 426.7 MB Notification: Performance of Templates: time 0.5047/2.686, allocations: 113.8 MB / 0.838 GB, free: 87.73 MB / 442.7 MB