Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Mechanics.MultiBody.Examples.Elementary.SpringWithMass") Notification: Performance of loadModel(Modelica): time 1.803/1.803, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.0003488, allocations: 12 kB / 233.9 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1015, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3533/0.4548, allocations: 79.51 MB / 352.1 MB, free: 10.07 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003165/0.4552, allocations: 90.69 kB / 352.2 MB, free: 10.02 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3067/0.7619, allocations: 56.95 MB / 409.2 MB, free: 6.645 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.7619, allocations: 0 / 409.2 MB, free: 6.645 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001362/0.7621, allocations: 47.94 kB / 409.2 MB, free: 6.598 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.01838/0.7805, allocations: 3.02 MB / 412.2 MB, free: 3.516 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.832e-05/0.7805, allocations: 12.03 kB / 412.2 MB, free: 3.504 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01658/0.7971, allocations: 2.036 MB / 414.3 MB, free: 1.461 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01526/0.8124, allocations: 3.595 MB / 417.9 MB, free: 13.82 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002523/0.8128, allocations: 192.8 kB / 418.1 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001215/0.814, allocations: 251.8 kB / 418.3 MB, free: 13.38 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01987/0.8339, allocations: 6.887 MB / 425.2 MB, free: 5.742 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001452/0.8341, allocations: 51.61 kB / 425.2 MB, free: 5.691 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006296/0.8347, allocations: 119.9 kB / 425.4 MB, free: 5.574 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001714/0.8364, allocations: 0.7033 MB / 426.1 MB, free: 4.871 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2647/1.101, allocations: 5.976 MB / 432 MB, free: 81.28 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04971/1.151, allocations: 32.27 MB / 464.3 MB, free: 60.6 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01064/1.162, allocations: 2.526 MB / 466.8 MB, free: 59.94 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008177/1.17, allocations: 3.536 MB / 470.4 MB, free: 58.36 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.914e-05/1.17, allocations: 46.72 kB / 470.4 MB, free: 58.32 MB / 346.7 MB Notification: Performance of pre-optimization done (n=105): time 6.482e-06/1.17, allocations: 0 / 470.4 MB, free: 58.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=118): time 0.04276/1.213, allocations: 10.35 MB / 480.8 MB, free: 55.06 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001383/1.214, allocations: 1.594 MB / 482.4 MB, free: 53.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0062/1.22, allocations: 2.733 MB / 485.1 MB, free: 52.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003596/1.221, allocations: 45.84 kB / 485.1 MB, free: 52.47 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002563/1.223, allocations: 2.047 MB / 487.2 MB, free: 50.89 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001301/1.225, allocations: 499 kB / 487.7 MB, free: 50.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007802/1.226, allocations: 91.75 kB / 487.8 MB, free: 50.48 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004121/1.226, allocations: 0.4909 MB / 488.3 MB, free: 50.09 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004436/1.231, allocations: 1.61 MB / 489.9 MB, free: 49.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006154/1.237, allocations: 4.356 MB / 494.2 MB, free: 45.37 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006241/1.243, allocations: 2.595 MB / 496.8 MB, free: 44.45 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001391/1.243, allocations: 26.94 kB / 496.8 MB, free: 44.45 MB / 346.7 MB Notification: Performance of matching and sorting (n=579) (initialization): time 0.03409/1.277, allocations: 6.876 MB / 0.4919 GB, free: 42.12 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001291/1.278, allocations: 46.69 kB / 0.492 GB, free: 42.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01527/1.293, allocations: 2.422 MB / 0.4943 GB, free: 41.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0129/1.306, allocations: 1.423 MB / 0.4957 GB, free: 41.32 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009225/1.315, allocations: 1.015 MB / 0.4967 GB, free: 41.19 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01393/1.329, allocations: 7.056 MB / 0.5036 GB, free: 35.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006476/1.336, allocations: 361.8 kB / 0.5039 GB, free: 35.3 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001211/1.337, allocations: 275.9 kB / 0.5042 GB, free: 35.04 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.00424/1.341, allocations: 1.408 MB / 0.5056 GB, free: 33.79 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000815/1.342, allocations: 229 kB / 0.5058 GB, free: 33.57 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01525/1.357, allocations: 2.805 MB / 0.5085 GB, free: 31.5 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01387/1.371, allocations: 2.465 MB / 0.5109 GB, free: 29.69 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.521e-05/1.371, allocations: 4 kB / 0.5109 GB, free: 29.69 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.491e-05/1.371, allocations: 6.656 kB / 0.511 GB, free: 29.69 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02844/1.4, allocations: 6.727 MB / 0.5175 GB, free: 23.69 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.798e-05/1.4, allocations: 0 / 0.5175 GB, free: 23.69 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001968/1.402, allocations: 167.7 kB / 0.5177 GB, free: 23.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01111/1.413, allocations: 1.437 MB / 0.5191 GB, free: 22.08 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002153/1.413, allocations: 32.62 kB / 0.5191 GB, free: 22.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01526/1.428, allocations: 7.665 MB / 0.5266 GB, free: 14.14 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00105/1.43, allocations: 1.454 MB / 0.528 GB, free: 12.54 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01343/1.443, allocations: 4.762 MB / 0.5327 GB, free: 7.75 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007761/1.444, allocations: 298 kB / 0.533 GB, free: 7.438 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005192/1.444, allocations: 29.34 kB / 0.533 GB, free: 7.41 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002076/1.446, allocations: 131 kB / 0.5331 GB, free: 7.285 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000377/1.447, allocations: 69.62 kB / 0.5332 GB, free: 7.219 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001441/1.447, allocations: 39.97 kB / 0.5332 GB, free: 7.18 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003506/1.451, allocations: 1.704 MB / 0.5349 GB, free: 5.465 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.451, allocations: 3.938 kB / 0.5349 GB, free: 5.461 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004915/1.455, allocations: 0.7529 MB / 0.5356 GB, free: 4.715 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.0005009/1.456, allocations: 158.8 kB / 0.5358 GB, free: 4.555 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01038/1.466, allocations: 4.125 MB / 0.5398 GB, free: 428 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.722e-06/1.466, allocations: 4 kB / 0.5398 GB, free: 424 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00544/1.472, allocations: 1.705 MB / 0.5415 GB, free: 14.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/1.474, allocations: 242.7 kB / 0.5417 GB, free: 14.43 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02346/1.497, allocations: 7.523 MB / 0.549 GB, free: 6.926 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00475/1.502, allocations: 2.319 MB / 0.5513 GB, free: 4.578 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.006589/1.509, allocations: 1.384 MB / 0.5527 GB, free: 3.191 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009342/1.51, allocations: 163.4 kB / 0.5528 GB, free: 3.031 MB / 362.7 MB Notification: Performance of SimCode: time 1.593e-06/1.51, allocations: 3.938 kB / 0.5528 GB, free: 3.027 MB / 362.7 MB Notification: Performance of Templates: time 0.391/1.901, allocations: 25.68 MB / 0.5779 GB, free: 87.27 MB / 362.7 MB