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.SpringWithMass.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.SpringWithMass,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body.frame_a.r_0.1.|body.frame_a.r_0.2.|body.frame_a.r_0.3.|body.v_0.1.|body.v_0.2.|body.v_0.3.|body.w_a.1.|body.w_a.2.|body.w_a.3.",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadModel(Modelica): time 1.667/1.667, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003724/0.0003726, allocations: 8 kB / 233.2 MB, free: 3.066 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07063/0.07103, allocations: 38.77 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass): time 0.02117/0.09224, allocations: 14.53 MB / 286.5 MB, free: 13.62 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01161/0.1039, allocations: 4.546 MB / 291 MB, free: 9.062 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002439/0.1064, allocations: 63.88 kB / 291.1 MB, free: 9 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002273/0.1087, allocations: 0.6921 MB / 291.8 MB, free: 8.305 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007937/0.1167, allocations: 2.279 MB / 294 MB, free: 6.02 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001524/0.1182, allocations: 367.4 kB / 294.4 MB, free: 5.66 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003265/0.1215, allocations: 1.486 MB / 295.9 MB, free: 4.168 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003372/0.1249, allocations: 1.838 MB / 297.7 MB, free: 2.289 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001131/0.1261, allocations: 0.6151 MB / 298.3 MB, free: 1.672 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001486/0.1276, allocations: 0.8723 MB / 299.2 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004602/0.1281, allocations: 84 kB / 299.3 MB, free: 0.7148 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1857/0.3139, allocations: 0.8197 MB / 300.1 MB, free: 10.28 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00144/0.3154, allocations: 0.9206 MB / 301 MB, free: 10.28 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007469/0.3161, allocations: 0.5044 MB / 301.5 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005563/0.3217, allocations: 3.24 MB / 304.8 MB, free: 10.02 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.987e-06/0.3218, allocations: 0 / 304.8 MB, free: 10.02 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.51e-06/0.3218, allocations: 0 / 304.8 MB, free: 10.02 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001348/0.3219, allocations: 0 / 304.8 MB, free: 10.02 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 949 * Number of variables: 949 Notification: Performance of Generate backend data structure: time 0.006784/0.3287, allocations: 2.543 MB / 307.3 MB, free: 8.758 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.184e-05/0.3288, allocations: 9.219 kB / 307.3 MB, free: 8.758 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009686/0.3385, allocations: 2.052 MB / 309.4 MB, free: 8.586 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00392/0.3424, allocations: 1.593 MB / 311 MB, free: 8.211 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001985/0.3427, allocations: 126.7 kB / 311.1 MB, free: 8.207 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001382/0.3441, allocations: 251.3 kB / 311.3 MB, free: 8.203 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01542/0.3595, allocations: 6.568 MB / 317.9 MB, free: 6.238 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001173/0.3597, allocations: 29.12 kB / 317.9 MB, free: 6.234 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006724/0.3604, allocations: 87.23 kB / 318 MB, free: 6.234 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002746/0.3631, allocations: 1.349 MB / 319.4 MB, free: 5.934 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01448/0.3777, allocations: 5.949 MB / 325.3 MB, free: 4.434 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04137/0.4191, allocations: 25.21 MB / 350.5 MB, free: 13.01 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00865/0.4278, allocations: 2.531 MB / 353.1 MB, free: 10.34 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008401/0.4362, allocations: 3.547 MB / 356.6 MB, free: 6.621 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.344e-05/0.4363, allocations: 50.36 kB / 356.7 MB, free: 6.566 MB / 282.7 MB Notification: Performance of pre-optimization done (n=105): time 5.556e-06/0.4364, allocations: 0 / 356.7 MB, free: 6.566 MB / 282.7 MB Notification: Performance of matching and sorting (n=118): time 0.03556/0.4719, allocations: 10.36 MB / 367 MB, free: 12.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001824/0.4738, allocations: 1.603 MB / 368.6 MB, free: 10.28 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006396/0.4802, allocations: 2.812 MB / 371.4 MB, free: 7.445 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003239/0.4806, allocations: 47.42 kB / 371.5 MB, free: 7.395 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002393/0.483, allocations: 2.058 MB / 373.5 MB, free: 5.352 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000897/0.4839, allocations: 492.5 kB / 374 MB, free: 4.875 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004832/0.4845, allocations: 87.52 kB / 374.1 MB, free: 4.793 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0005028/0.485, allocations: 0.5006 MB / 374.6 MB, free: 4.281 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004185/0.4892, allocations: 1.609 MB / 376.2 MB, free: 2.664 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007152/0.4964, allocations: 4.39 MB / 380.6 MB, free: 12.93 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005933/0.5024, allocations: 2.6 MB / 383.2 MB, free: 10.41 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.394e-05/0.5025, allocations: 28 kB / 383.2 MB, free: 10.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=581) (initialization): time 0.02032/0.5228, allocations: 6.953 MB / 390.2 MB, free: 3.598 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.523, allocations: 44 kB / 390.2 MB, free: 3.555 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.008327/0.5313, allocations: 2.566 MB / 392.8 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007144/0.5385, allocations: 1.61 MB / 394.4 MB, free: 15.36 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00428/0.5428, allocations: 0.9902 MB / 395.4 MB, free: 14.37 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01557/0.5584, allocations: 7.618 MB / 403 MB, free: 6.484 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004918/0.5634, allocations: 322.3 kB / 403.3 MB, free: 6.172 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001049/0.5645, allocations: 280 kB / 403.6 MB, free: 5.898 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 449 * Number of states: 0 () * Number of discrete variables: 18 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],spring.color[3],spring.color[2],spring.color[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (533): * Single equations (assignments): 525 * Array equations: 5 * 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 {(5,100.0%) 10} * Non-linear torn systems: 1 {3 1} Notification: Performance of prepare postOptimizeDAE: time 0.003931/0.5684, allocations: 1.405 MB / 405 MB, free: 4.484 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006445/0.5691, allocations: 229 kB / 405.2 MB, free: 4.258 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009245/0.5784, allocations: 2.805 MB / 408 MB, free: 1.43 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.008428/0.5868, allocations: 2.477 MB / 410.5 MB, free: 14.94 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.687e-05/0.5869, allocations: 7.953 kB / 410.5 MB, free: 14.93 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.5e-05/0.587, allocations: 7.984 kB / 410.5 MB, free: 14.92 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0198/0.6068, allocations: 6.711 MB / 417.2 MB, free: 8.156 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.492e-05/0.6068, allocations: 7.953 kB / 417.2 MB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001152/0.608, allocations: 167.7 kB / 417.4 MB, free: 7.984 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006646/0.6147, allocations: 1.44 MB / 418.8 MB, free: 6.535 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003286/0.615, allocations: 30.17 kB / 418.9 MB, free: 6.508 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01573/0.6308, allocations: 7.625 MB / 426.5 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001694/0.6325, allocations: 1.454 MB / 428 MB, free: 13.03 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01275/0.6453, allocations: 4.779 MB / 432.7 MB, free: 8.211 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000916/0.6463, allocations: 301.9 kB / 433 MB, free: 7.895 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006607/0.647, allocations: 24 kB / 433 MB, free: 7.871 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001891/0.6489, allocations: 114.9 kB / 433.2 MB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004993/0.6494, allocations: 72.39 kB / 433.2 MB, free: 7.691 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001704/0.6496, allocations: 39.97 kB / 433.3 MB, free: 7.652 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004592/0.6542, allocations: 1.759 MB / 435 MB, free: 5.883 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.607e-06/0.6543, allocations: 4 kB / 435 MB, free: 5.879 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.005759/0.66, allocations: 0.7656 MB / 435.8 MB, free: 5.113 MB / 362.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.frame_a.r_0[1],body.frame_a.r_0[2],body.frame_a.r_0[3],body.v_0[1],body.v_0[2],body.v_0[3],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 (77): * Single equations (assignments): 71 * Array equations: 3 * 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 {(5,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007388/0.6608, allocations: 178 kB / 436 MB, free: 4.934 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01091/0.6717, allocations: 4.285 MB / 440.3 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.6718, allocations: 0 / 440.3 MB, free: 0.6328 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1895/0.8613, allocations: 1.69 MB / 441.9 MB, free: 131.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00177/0.8631, allocations: 238.9 kB / 442.2 MB, free: 131.5 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01545/0.8786, allocations: 7.848 MB / 450 MB, free: 128.6 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003883/0.8825, allocations: 2.325 MB / 452.4 MB, free: 127.8 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009005/0.8834, allocations: 204.9 kB / 452.6 MB, free: 127.8 MB / 362.7 MB Notification: Performance of SimCode: time 1.689e-06/0.8835, allocations: 0 / 452.6 MB, free: 127.8 MB / 362.7 MB Notification: Performance of Templates: time 0.09573/0.9792, allocations: 70.58 MB / 0.5109 GB, free: 63.34 MB / 362.7 MB