Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody.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) 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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody") Notification: Performance of loadModel(Modelica): time 1.911/1.911, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003599/0.0003601, allocations: 12 kB / 263.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1087/0.1091, allocations: 44.52 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.FreeBody): time 0.05097/0.1601, allocations: 31.3 MB / 339.7 MB, free: 1.641 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.02022/0.1804, allocations: 7.951 MB / 347.6 MB, free: 9.664 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005866/0.1863, allocations: 151.6 kB / 347.8 MB, free: 9.516 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00507/0.1914, allocations: 1.571 MB / 349.3 MB, free: 7.938 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01572/0.2072, allocations: 4.551 MB / 353.9 MB, free: 3.375 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002522/0.2098, allocations: 495.1 kB / 354.4 MB, free: 2.891 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.00446/0.2143, allocations: 1.985 MB / 356.4 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007652/0.222, allocations: 3.666 MB / 360 MB, free: 13.18 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002984/0.225, allocations: 0.8915 MB / 360.9 MB, free: 12.28 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003515/0.2286, allocations: 1.141 MB / 362 MB, free: 11.14 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009397/0.2296, allocations: 116 kB / 362.2 MB, free: 11.02 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003114/0.2327, allocations: 0.8621 MB / 363 MB, free: 10.16 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002105/0.2349, allocations: 1.325 MB / 364.3 MB, free: 8.832 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001053/0.236, allocations: 0.722 MB / 365.1 MB, free: 8.102 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007581/0.2436, allocations: 4.7 MB / 369.8 MB, free: 3.391 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.116e-06/0.2436, allocations: 0 / 369.8 MB, free: 3.391 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.075e-06/0.2436, allocations: 0 / 369.8 MB, free: 3.391 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001113/0.2438, allocations: 0 / 369.8 MB, free: 3.391 MB / 314.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.2131/0.4569, allocations: 3.462 MB / 373.2 MB, free: 62.64 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.4569, allocations: 9.562 kB / 373.2 MB, free: 62.64 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01017/0.4671, allocations: 2.169 MB / 375.4 MB, free: 62.39 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005317/0.4725, allocations: 2.22 MB / 377.6 MB, free: 61.53 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002285/0.4728, allocations: 202.1 kB / 377.8 MB, free: 61.47 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001516/0.4743, allocations: 357.7 kB / 378.2 MB, free: 61.39 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01778/0.4921, allocations: 8.704 MB / 386.9 MB, free: 56.56 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001164/0.4923, allocations: 39.36 kB / 386.9 MB, free: 56.54 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005087/0.4928, allocations: 130.6 kB / 387 MB, free: 56.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002871/0.4957, allocations: 1.608 MB / 388.7 MB, free: 55.75 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01618/0.5119, allocations: 7.358 MB / 396 MB, free: 48.39 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04234/0.5542, allocations: 34.52 MB / 430.5 MB, free: 13.05 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008963/0.5633, allocations: 3.163 MB / 433.7 MB, free: 9.742 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01015/0.5735, allocations: 6.072 MB / 439.8 MB, free: 3.504 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.253e-05/0.5735, allocations: 47.12 kB / 439.8 MB, free: 3.449 MB / 314.7 MB Notification: Performance of pre-optimization done (n=118): time 5.257e-06/0.5736, allocations: 4 kB / 439.8 MB, free: 3.445 MB / 314.7 MB Notification: Performance of matching and sorting (n=125): time 0.03256/0.6061, allocations: 11.02 MB / 450.8 MB, free: 8.199 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001855/0.608, allocations: 1.627 MB / 452.5 MB, free: 6.398 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007404/0.6155, allocations: 3.636 MB / 456.1 MB, free: 2.762 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003249/0.6158, allocations: 44.44 kB / 456.1 MB, free: 2.715 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002834/0.6187, allocations: 2.699 MB / 458.8 MB, free: 20 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009127/0.6196, allocations: 0.5319 MB / 459.4 MB, free: 15.49 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004086/0.6201, allocations: 104.1 kB / 459.5 MB, free: 15.39 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004823/0.6206, allocations: 0.534 MB / 460 MB, free: 14.85 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004478/0.625, allocations: 1.908 MB / 461.9 MB, free: 12.93 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008027/0.6331, allocations: 5.318 MB / 467.2 MB, free: 5.887 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00672/0.6399, allocations: 3.102 MB / 470.3 MB, free: 2.785 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001026/0.64, allocations: 36 kB / 470.4 MB, free: 2.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=693) (initialization): time 0.02675/0.6668, allocations: 8.571 MB / 478.9 MB, free: 10.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001256/0.667, allocations: 58.97 kB / 479 MB, free: 10.11 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01308/0.6801, allocations: 3.42 MB / 482.4 MB, free: 6.672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01255/0.6927, allocations: 2.25 MB / 484.7 MB, free: 4.406 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005159/0.6979, allocations: 1.216 MB / 485.9 MB, free: 3.188 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0147/0.7126, allocations: 7.235 MB / 493.1 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005291/0.7179, allocations: 379.3 kB / 493.5 MB, free: 11.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009584/0.7189, allocations: 339.9 kB / 493.8 MB, free: 10.98 MB / 378.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): 3 * Torn equation systems: 1 * 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: 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 prepare postOptimizeDAE: time 0.004331/0.7233, allocations: 1.83 MB / 495.7 MB, free: 9.141 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007779/0.7241, allocations: 296.2 kB / 495.9 MB, free: 8.848 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007443/0.7315, allocations: 2.69 MB / 498.6 MB, free: 6.137 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006376/0.738, allocations: 2.3 MB / 0.4892 GB, free: 3.812 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.501e-05/0.738, allocations: 0 / 0.4892 GB, free: 3.812 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.34e-05/0.7381, allocations: 7.984 kB / 0.4892 GB, free: 3.805 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007752/0.7458, allocations: 3.363 MB / 0.4925 GB, free: 420 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.972e-05/0.7459, allocations: 0 / 0.4925 GB, free: 420 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001434/0.7474, allocations: 199.7 kB / 0.4927 GB, free: 220 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004279/0.7517, allocations: 1.061 MB / 0.4937 GB, free: 15.14 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002995/0.752, allocations: 31.97 kB / 0.4937 GB, free: 15.11 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008422/0.7604, allocations: 5.047 MB / 0.4987 GB, free: 9.801 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001589/0.7621, allocations: 1.498 MB / 0.5001 GB, free: 8.156 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01146/0.7736, allocations: 4.841 MB / 0.5049 GB, free: 3.281 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001073/0.7747, allocations: 365.1 kB / 0.5052 GB, free: 2.902 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007003/0.7754, allocations: 35.56 kB / 0.5052 GB, free: 2.871 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002097/0.7775, allocations: 127.7 kB / 0.5054 GB, free: 2.746 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003957/0.7779, allocations: 76.53 kB / 0.5054 GB, free: 2.668 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000162/0.7781, allocations: 36.45 kB / 0.5055 GB, free: 2.633 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005037/0.7832, allocations: 2.272 MB / 0.5077 GB, free: 380 kB / 394.7 MB Notification: Performance of sort global known variables: time 1.18e-06/0.7832, allocations: 0 / 0.5077 GB, free: 380 kB / 394.7 MB Notification: Performance of remove unused functions: time 0.2213/1.005, allocations: 0.9525 MB / 0.5086 GB, free: 124.9 MB / 394.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.000629/1.005, allocations: 176.5 kB / 0.5088 GB, free: 124.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01206/1.017, allocations: 5.164 MB / 0.5138 GB, free: 123.8 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.081e-06/1.017, allocations: 3.594 kB / 0.5138 GB, free: 123.8 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004688/1.022, allocations: 1.964 MB / 0.5158 GB, free: 122.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002337/1.024, allocations: 357.9 kB / 0.5161 GB, free: 122.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01747/1.042, allocations: 10.14 MB / 0.526 GB, free: 117.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004133/1.046, allocations: 2.937 MB / 0.5289 GB, free: 116.4 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001057/1.047, allocations: 247.3 kB / 0.5291 GB, free: 116.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.822e-06/1.047, allocations: 0 / 0.5291 GB, free: 116.3 MB / 394.7 MB Notification: Performance of Templates: time 0.1754/1.223, allocations: 109.8 MB / 0.6363 GB, free: 11.3 MB / 394.7 MB