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.Spherical.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.Spherical,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.Q.1.|body.Q.2.|body.Q.3.|body.Q.4.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.MultiBody.Joints.Spherical") Notification: Performance of loadModel(ModelicaTest): time 2.174/2.174, allocations: 234.9 MB / 250.5 MB, free: 9.531 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000778/0.0007781, allocations: 12 kB / 314.4 MB, free: 9.543 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2869, allocations: 54.86 MB / 369.3 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1408/0.4277, allocations: 95.32 MB / 464.6 MB, free: 11.25 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002458/0.428, allocations: 83.89 kB / 464.7 MB, free: 11.16 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5239/0.9519, allocations: 82.63 MB / 0.5345 GB, free: 37.2 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.524e-06/0.9519, allocations: 0 / 0.5345 GB, free: 37.2 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001379/0.9521, allocations: 71.94 kB / 0.5345 GB, free: 37.12 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: 1479 * Number of variables: 1479 Notification: Performance of Generate backend data structure: time 0.01443/0.9665, allocations: 4 MB / 0.5384 GB, free: 33.06 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.934e-05/0.9666, allocations: 8.031 kB / 0.5385 GB, free: 33.05 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02665/0.9933, allocations: 5.871 MB / 0.5442 GB, free: 27.16 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01466/1.008, allocations: 5.313 MB / 0.5494 GB, free: 21.8 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002331/1.008, allocations: 287.7 kB / 0.5496 GB, free: 21.52 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001248/1.01, allocations: 371.8 kB / 0.55 GB, free: 21.15 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02263/1.032, allocations: 10.43 MB / 0.5602 GB, free: 10.21 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001349/1.032, allocations: 31.69 kB / 0.5602 GB, free: 10.18 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009355/1.033, allocations: 171.9 kB / 0.5604 GB, free: 10.02 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001638/1.035, allocations: 1.144 MB / 0.5615 GB, free: 8.871 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02174/1.057, allocations: 10.1 MB / 0.5714 GB, free: 14.76 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06632/1.123, allocations: 37.32 MB / 0.6078 GB, free: 8.504 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01532/1.138, allocations: 5.593 MB / 0.6133 GB, free: 2.68 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002458/1.141, allocations: 1.88 MB / 0.6151 GB, free: 480 kB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.649e-05/1.141, allocations: 60.55 kB / 0.6152 GB, free: 412 kB / 442.7 MB Notification: Performance of pre-optimization done (n=224): time 6.753e-06/1.141, allocations: 4 kB / 0.6152 GB, free: 408 kB / 442.7 MB Notification: Performance of matching and sorting (n=231): time 0.04876/1.19, allocations: 15.49 MB / 0.6303 GB, free: 0.6758 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001726/1.192, allocations: 1.531 MB / 0.6318 GB, free: 14.99 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005256/1.197, allocations: 2.484 MB / 0.6342 GB, free: 12.5 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004626/1.197, allocations: 49.7 kB / 0.6343 GB, free: 12.44 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002695/1.2, allocations: 2.664 MB / 0.6369 GB, free: 9.738 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001346/1.201, allocations: 0.8557 MB / 0.6377 GB, free: 8.871 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005513/1.202, allocations: 104 kB / 0.6378 GB, free: 8.77 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005416/1.203, allocations: 0.5463 MB / 0.6383 GB, free: 8.215 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005731/1.208, allocations: 2.603 MB / 0.6409 GB, free: 5.605 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.275/1.483, allocations: 5.562 MB / 0.6463 GB, free: 122.2 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007632/1.491, allocations: 3.794 MB / 0.65 GB, free: 122.1 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001223/1.491, allocations: 29.41 kB / 0.65 GB, free: 122.1 MB / 474.7 MB Notification: Performance of matching and sorting (n=721) (initialization): time 0.07739/1.569, allocations: 18.89 MB / 0.6685 GB, free: 121.6 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.218e-05/1.569, allocations: 49.12 kB / 0.6685 GB, free: 121.6 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.05225/1.621, allocations: 12.01 MB / 0.6803 GB, free: 121.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.05572/1.677, allocations: 10.3 MB / 0.6903 GB, free: 120.7 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005132/1.682, allocations: 1.247 MB / 0.6915 GB, free: 120.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03364/1.716, allocations: 17.25 MB / 0.7084 GB, free: 105.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005371/1.721, allocations: 436.6 kB / 0.7088 GB, free: 105.3 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001036/1.722, allocations: 322.9 kB / 0.7091 GB, free: 105 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 474 * 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],spherical.sphereColor[3],spherical.sphereColor[2],spherical.sphereColor[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 (649): * Single equations (assignments): 638 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(4,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 1 {4 9} Notification: Performance of prepare postOptimizeDAE: time 0.004338/1.726, allocations: 2.01 MB / 0.7111 GB, free: 103 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005485/1.727, allocations: 275.5 kB / 0.7113 GB, free: 102.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01052/1.738, allocations: 5.1 MB / 0.7163 GB, free: 97.79 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009014/1.747, allocations: 4.385 MB / 0.7206 GB, free: 93.4 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-05/1.747, allocations: 4 kB / 0.7206 GB, free: 93.4 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.514e-05/1.747, allocations: 7.969 kB / 0.7206 GB, free: 93.39 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02559/1.772, allocations: 12.98 MB / 0.7333 GB, free: 80.33 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.692e-05/1.772, allocations: 11.61 kB / 0.7333 GB, free: 80.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00223/1.775, allocations: 410.4 kB / 0.7337 GB, free: 79.93 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00355/1.778, allocations: 0.9366 MB / 0.7346 GB, free: 78.99 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004196/1.779, allocations: 49.14 kB / 0.7347 GB, free: 78.94 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007291/1.786, allocations: 5.553 MB / 0.7401 GB, free: 73.18 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009784/1.787, allocations: 1.468 MB / 0.7415 GB, free: 71.57 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01362/1.801, allocations: 8.336 MB / 0.7497 GB, free: 63.07 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007381/1.801, allocations: 333.6 kB / 0.75 GB, free: 62.72 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006124/1.802, allocations: 44.53 kB / 0.75 GB, free: 62.68 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00196/1.804, allocations: 196.7 kB / 0.7502 GB, free: 62.48 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004276/1.804, allocations: 144.1 kB / 0.7503 GB, free: 62.35 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000238/1.805, allocations: 72.91 kB / 0.7504 GB, free: 62.28 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002903/1.808, allocations: 1.701 MB / 0.7521 GB, free: 60.57 MB / 474.7 MB Notification: Performance of sort global known variables: time 9.17e-07/1.808, allocations: 0 / 0.7521 GB, free: 60.57 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.005849/1.813, allocations: 1.102 MB / 0.7531 GB, free: 59.48 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * Number of states: 6 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.w_a[1],body.w_a[2],body.w_a[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 (170): * Single equations (assignments): 161 * 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): 1 {(4,100.0%)} * Non-linear Jacobian: 1 {4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005891/1.814, allocations: 188.2 kB / 0.7533 GB, free: 59.3 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01277/1.827, allocations: 6.545 MB / 0.7597 GB, free: 52.77 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.114e-05/1.827, allocations: 0 / 0.7597 GB, free: 52.77 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004684/1.832, allocations: 2.524 MB / 0.7622 GB, free: 50.21 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002137/1.834, allocations: 340.5 kB / 0.7625 GB, free: 49.89 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02255/1.856, allocations: 12.14 MB / 0.7744 GB, free: 37.7 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006164/1.863, allocations: 3.251 MB / 0.7775 GB, free: 34.43 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001445/1.864, allocations: 263.3 kB / 0.7778 GB, free: 34.17 MB / 474.7 MB Notification: Performance of SimCode: time 2.315e-06/1.864, allocations: 0 / 0.7778 GB, free: 34.17 MB / 474.7 MB Notification: Performance of Templates: time 0.4129/2.277, allocations: 106.5 MB / 0.8818 GB, free: 108 MB / 490.7 MB