Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.body.frame_a.r_0.1.|body.body.frame_a.r_0.2.|body.body.frame_a.r_0.3.|body.body.w_a.1.|body.body.w_a.2.|body.body.w_a.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") Notification: Performance of loadModel(Modelica): time 1.57/1.57, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003636/0.0003638, allocations: 8 kB / 233.2 MB, free: 0.9609 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06887/0.06926, allocations: 38.77 MB / 271.9 MB, free: 10.1 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.2145/0.2838, allocations: 31.29 MB / 303.2 MB, free: 14.1 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02171/0.3055, allocations: 7.936 MB / 311.2 MB, free: 8.719 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007348/0.3129, allocations: 154.2 kB / 311.3 MB, free: 8.695 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005237/0.3182, allocations: 1.549 MB / 312.9 MB, free: 7.789 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01628/0.3345, allocations: 4.563 MB / 317.4 MB, free: 4.586 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00256/0.3371, allocations: 0.4984 MB / 317.9 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004477/0.3416, allocations: 1.984 MB / 319.9 MB, free: 2.719 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00669/0.3484, allocations: 3.663 MB / 323.6 MB, free: 15.01 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001717/0.3501, allocations: 0.9031 MB / 324.5 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001877/0.352, allocations: 1.137 MB / 325.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004189/0.3525, allocations: 120 kB / 325.7 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002119/0.3546, allocations: 0.8426 MB / 326.6 MB, free: 12 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001941/0.3566, allocations: 1.317 MB / 327.9 MB, free: 10.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001031/0.3576, allocations: 0.7182 MB / 328.6 MB, free: 9.953 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007291/0.3649, allocations: 4.7 MB / 333.3 MB, free: 5.242 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.365, allocations: 0 / 333.3 MB, free: 5.242 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.698e-06/0.365, allocations: 0 / 333.3 MB, free: 5.242 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001135/0.3651, allocations: 0 / 333.3 MB, free: 5.242 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1295 * Number of variables: 1295 Notification: Performance of Generate backend data structure: time 0.008256/0.3734, allocations: 3.471 MB / 336.8 MB, free: 1.707 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.322e-05/0.3734, allocations: 8.031 kB / 336.8 MB, free: 1.699 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009652/0.3831, allocations: 2.148 MB / 338.9 MB, free: 15.54 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005252/0.3884, allocations: 2.201 MB / 341.1 MB, free: 13.28 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002406/0.3887, allocations: 209.2 kB / 341.3 MB, free: 13.07 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001232/0.3899, allocations: 363.6 kB / 341.7 MB, free: 12.72 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02027/0.4102, allocations: 8.697 MB / 350.4 MB, free: 3.387 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001441/0.4104, allocations: 43.59 kB / 350.4 MB, free: 3.344 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007695/0.4112, allocations: 131.9 kB / 350.6 MB, free: 3.215 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003354/0.4146, allocations: 1.602 MB / 352.2 MB, free: 1.613 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01943/0.434, allocations: 7.361 MB / 359.5 MB, free: 10.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06849/0.5026, allocations: 34.49 MB / 394 MB, free: 6.727 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01781/0.5204, allocations: 3.179 MB / 397.2 MB, free: 3.395 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01211/0.5326, allocations: 6.03 MB / 403.2 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.708e-05/0.5327, allocations: 47.11 kB / 403.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=118): time 5.366e-06/0.5327, allocations: 0 / 403.3 MB, free: 13.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=125): time 0.03353/0.5662, allocations: 11.03 MB / 414.3 MB, free: 1.852 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001726/0.568, allocations: 1.627 MB / 415.9 MB, free: 52 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1866/0.7546, allocations: 3.625 MB / 419.5 MB, free: 112.2 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002501/0.7549, allocations: 45.45 kB / 419.6 MB, free: 112.2 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001818/0.7567, allocations: 2.709 MB / 422.3 MB, free: 110.4 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006516/0.7574, allocations: 0.5187 MB / 422.8 MB, free: 110 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003103/0.7577, allocations: 105.4 kB / 422.9 MB, free: 110 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003441/0.7581, allocations: 0.5289 MB / 423.4 MB, free: 109.6 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003847/0.7619, allocations: 1.876 MB / 425.3 MB, free: 108.9 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00588/0.7678, allocations: 5.292 MB / 430.6 MB, free: 103.7 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00594/0.7738, allocations: 3.079 MB / 433.7 MB, free: 102.5 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000157/0.774, allocations: 35.19 kB / 433.7 MB, free: 102.5 MB / 346.7 MB Notification: Performance of matching and sorting (n=693) (initialization): time 0.01842/0.7925, allocations: 7.657 MB / 441.4 MB, free: 99.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001183/0.7926, allocations: 61.09 kB / 441.4 MB, free: 99.66 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.006121/0.7988, allocations: 2.481 MB / 443.9 MB, free: 98.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004248/0.803, allocations: 1.27 MB / 445.2 MB, free: 98.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004701/0.8078, allocations: 1.215 MB / 446.4 MB, free: 98.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006358/0.8142, allocations: 5.068 MB / 451.5 MB, free: 93.87 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005087/0.8193, allocations: 380.6 kB / 451.8 MB, free: 93.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006539/0.82, allocations: 328.6 kB / 452.2 MB, free: 93.18 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 554 * Number of states: 0 () * Number of discrete variables: 33 (spring2.color[3],spring2.color[2],spring2.color[1],spring2.massColor[3],spring2.massColor[2],spring2.massColor[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar2.color[3],bar2.color[2],bar2.color[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (655): * Single equations (assignments): 646 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(4,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: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.003023/0.823, allocations: 1.829 MB / 454 MB, free: 91.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000614/0.8237, allocations: 296.2 kB / 454.3 MB, free: 91.05 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005904/0.8296, allocations: 2.692 MB / 457 MB, free: 88.35 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.005082/0.8347, allocations: 2.296 MB / 459.3 MB, free: 86.03 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/0.8347, allocations: 0 / 459.3 MB, free: 86.03 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-05/0.8348, allocations: 15.97 kB / 459.3 MB, free: 86.02 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005667/0.8404, allocations: 3.349 MB / 462.6 MB, free: 82.64 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.445e-05/0.8405, allocations: 0.875 kB / 462.6 MB, free: 82.64 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001231/0.8417, allocations: 207.7 kB / 462.8 MB, free: 82.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003572/0.8453, allocations: 1.05 MB / 463.9 MB, free: 81.37 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001985/0.8456, allocations: 34.91 kB / 463.9 MB, free: 81.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006058/0.8516, allocations: 5.064 MB / 469 MB, free: 76.01 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009886/0.8527, allocations: 1.496 MB / 470.5 MB, free: 74.38 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008694/0.8614, allocations: 4.847 MB / 475.3 MB, free: 69.49 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000863/0.8623, allocations: 369.1 kB / 475.7 MB, free: 69.11 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004869/0.8628, allocations: 20 kB / 475.7 MB, free: 69.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001661/0.8645, allocations: 130.6 kB / 475.8 MB, free: 68.96 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002501/0.8647, allocations: 76.53 kB / 475.9 MB, free: 68.89 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/0.8649, allocations: 39.97 kB / 476 MB, free: 68.85 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003419/0.8683, allocations: 2.265 MB / 478.2 MB, free: 66.6 MB / 346.7 MB Notification: Performance of sort global known variables: time 9.7e-07/0.8683, allocations: 0 / 478.2 MB, free: 66.6 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00536/0.8737, allocations: 0.9505 MB / 479.2 MB, free: 65.65 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 12 ($STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body.v_0[1],body.v_0[2],body.v_0[3],body.body.frame_a.r_0[1],body.body.frame_a.r_0[2],body.body.frame_a.r_0[3],body.body.w_a[1],body.body.w_a[2],body.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 (93): * Single equations (assignments): 86 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * 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%),(4,100.0%)} * Non-linear Jacobian: 1 {4} * 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.0004826/0.8742, allocations: 172.2 kB / 479.3 MB, free: 65.48 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.009629/0.8839, allocations: 5.115 MB / 484.4 MB, free: 60.33 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.93e-06/0.8839, allocations: 0 / 484.4 MB, free: 60.33 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004027/0.888, allocations: 1.967 MB / 486.4 MB, free: 58.3 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002112/0.8901, allocations: 350.9 kB / 486.8 MB, free: 57.95 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01506/0.9052, allocations: 10.14 MB / 496.9 MB, free: 47.76 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003357/0.9086, allocations: 2.935 MB / 499.8 MB, free: 44.8 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009473/0.9096, allocations: 251.4 kB / 0.4884 GB, free: 44.55 MB / 346.7 MB Notification: Performance of SimCode: time 2.427e-06/0.9096, allocations: 0 / 0.4884 GB, free: 44.55 MB / 346.7 MB Notification: Performance of Templates: time 0.3187/1.228, allocations: 108.9 MB / 0.5947 GB, free: 76.64 MB / 362.7 MB