Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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) 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.777/1.777, allocations: 171.2 MB / 187.3 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003684/0.0003687, allocations: 12 kB / 233.8 MB, free: 3.051 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09285/0.09324, allocations: 38.77 MB / 272.6 MB, free: 12.21 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4172/0.5105, allocations: 79.49 MB / 352 MB, free: 10.58 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000364/0.5109, allocations: 93.33 kB / 352.1 MB, free: 10.53 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2808/0.7918, allocations: 56.95 MB / 409.1 MB, free: 7.246 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.555e-06/0.7918, allocations: 0 / 409.1 MB, free: 7.246 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001434/0.792, allocations: 44 kB / 409.1 MB, free: 7.203 MB / 330.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.01953/0.8115, allocations: 3.02 MB / 412.1 MB, free: 4.121 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.8116, allocations: 8.031 kB / 412.2 MB, free: 4.113 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01802/0.8296, allocations: 2.04 MB / 414.2 MB, free: 2.066 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01595/0.8456, allocations: 3.607 MB / 417.8 MB, free: 14.41 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000296/0.846, allocations: 180.8 kB / 418 MB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001704/0.8477, allocations: 251.8 kB / 418.2 MB, free: 13.98 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02388/0.8716, allocations: 6.918 MB / 425.1 MB, free: 6.316 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001888/0.8719, allocations: 43.61 kB / 425.2 MB, free: 6.273 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001079/0.873, allocations: 123.9 kB / 425.3 MB, free: 6.152 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001865/0.8748, allocations: 0.6917 MB / 426 MB, free: 5.461 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2782/1.153, allocations: 5.984 MB / 432 MB, free: 80.99 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04678/1.2, allocations: 32.27 MB / 464.3 MB, free: 60.31 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01102/1.211, allocations: 2.515 MB / 466.8 MB, free: 59.65 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008033/1.219, allocations: 3.54 MB / 470.3 MB, free: 58.07 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.657e-05/1.219, allocations: 46.91 kB / 470.4 MB, free: 58.03 MB / 346.7 MB Notification: Performance of pre-optimization done (n=105): time 4.809e-06/1.219, allocations: 0 / 470.4 MB, free: 58.03 MB / 346.7 MB Notification: Performance of matching and sorting (n=118): time 0.04306/1.262, allocations: 10.35 MB / 480.7 MB, free: 54.92 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001415/1.264, allocations: 1.598 MB / 482.3 MB, free: 53.34 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005852/1.27, allocations: 2.733 MB / 485 MB, free: 52.38 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003726/1.27, allocations: 42.58 kB / 485.1 MB, free: 52.34 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001676/1.272, allocations: 2.052 MB / 487.1 MB, free: 50.71 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008621/1.273, allocations: 495.4 kB / 487.6 MB, free: 50.37 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005236/1.273, allocations: 85.81 kB / 487.7 MB, free: 50.3 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003155/1.274, allocations: 0.5024 MB / 488.2 MB, free: 49.91 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004058/1.278, allocations: 1.604 MB / 489.8 MB, free: 49.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006157/1.284, allocations: 4.374 MB / 494.2 MB, free: 45.19 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0062/1.29, allocations: 2.591 MB / 496.8 MB, free: 44.29 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.303e-05/1.29, allocations: 32.62 kB / 496.8 MB, free: 44.29 MB / 346.7 MB Notification: Performance of matching and sorting (n=579) (initialization): time 0.02196/1.312, allocations: 6.82 MB / 0.4918 GB, free: 41.99 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.489e-05/1.312, allocations: 43.53 kB / 0.4919 GB, free: 41.99 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00981/1.322, allocations: 2.419 MB / 0.4942 GB, free: 41.39 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008353/1.331, allocations: 1.423 MB / 0.4956 GB, free: 41.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005908/1.336, allocations: 1.018 MB / 0.4966 GB, free: 41.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01395/1.35, allocations: 7.045 MB / 0.5035 GB, free: 36.12 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006234/1.357, allocations: 367.6 kB / 0.5038 GB, free: 35.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001171/1.358, allocations: 277.7 kB / 0.5041 GB, free: 35.58 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 447 * 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 (534): * Single equations (assignments): 526 * 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: 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 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(5,100.0%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004034/1.362, allocations: 1.403 MB / 0.5055 GB, free: 34.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006824/1.363, allocations: 232.6 kB / 0.5057 GB, free: 34.11 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01136/1.374, allocations: 2.796 MB / 0.5084 GB, free: 32.05 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01025/1.384, allocations: 2.476 MB / 0.5108 GB, free: 30.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.504e-05/1.385, allocations: 4 kB / 0.5108 GB, free: 30.23 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.431e-05/1.385, allocations: 7.234 kB / 0.5108 GB, free: 30.22 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02188/1.406, allocations: 6.717 MB / 0.5174 GB, free: 24.32 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.59e-05/1.407, allocations: 3.938 kB / 0.5174 GB, free: 24.31 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001644/1.408, allocations: 168.8 kB / 0.5176 GB, free: 24.15 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008786/1.417, allocations: 1.439 MB / 0.519 GB, free: 22.7 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003576/1.417, allocations: 23.98 kB / 0.519 GB, free: 22.68 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01597/1.433, allocations: 7.67 MB / 0.5265 GB, free: 14.76 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001203/1.435, allocations: 1.465 MB / 0.5279 GB, free: 13.15 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01467/1.449, allocations: 4.759 MB / 0.5326 GB, free: 8.363 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008654/1.45, allocations: 294 kB / 0.5328 GB, free: 8.055 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007781/1.451, allocations: 32.95 kB / 0.5329 GB, free: 8.023 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002501/1.454, allocations: 123.8 kB / 0.533 GB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005069/1.454, allocations: 64.45 kB / 0.5331 GB, free: 7.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001571/1.454, allocations: 45.48 kB / 0.5331 GB, free: 7.801 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004399/1.459, allocations: 1.7 MB / 0.5348 GB, free: 6.09 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.312e-06/1.459, allocations: 4 kB / 0.5348 GB, free: 6.086 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005525/1.464, allocations: 0.7462 MB / 0.5355 GB, free: 5.348 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.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.0007008/1.465, allocations: 166.2 kB / 0.5357 GB, free: 5.18 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0113/1.476, allocations: 4.147 MB / 0.5397 GB, free: 1.02 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.61e-06/1.476, allocations: 4 kB / 0.5397 GB, free: 1.016 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005716/1.482, allocations: 1.691 MB / 0.5414 GB, free: 15.28 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002312/1.485, allocations: 241.6 kB / 0.5416 GB, free: 15.04 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02028/1.505, allocations: 7.83 MB / 0.5492 GB, free: 7.23 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005074/1.51, allocations: 2.319 MB / 0.5515 GB, free: 4.883 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001138/1.511, allocations: 203.4 kB / 0.5517 GB, free: 4.684 MB / 362.7 MB Notification: Performance of SimCode: time 1.433e-06/1.511, allocations: 0 / 0.5517 GB, free: 4.684 MB / 362.7 MB Notification: Performance of Templates: time 0.3759/1.887, allocations: 70.01 MB / 0.6201 GB, free: 62.97 MB / 362.7 MB