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.712/1.712, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003566, allocations: 8 kB / 233.3 MB, free: 3.012 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07106/0.07144, allocations: 38.76 MB / 272 MB, free: 12.16 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3023/0.3737, allocations: 79.5 MB / 351.5 MB, free: 10.65 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002741/0.3741, allocations: 92.12 kB / 351.6 MB, free: 10.6 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2229/0.5969, allocations: 56.43 MB / 408 MB, free: 7.723 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.112e-06/0.597, allocations: 3.938 kB / 408 MB, free: 7.719 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001198/0.5971, allocations: 44 kB / 408.1 MB, free: 7.676 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.01321/0.6103, allocations: 3.024 MB / 411.1 MB, free: 4.594 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.6104, allocations: 15.97 kB / 411.1 MB, free: 4.578 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01197/0.6224, allocations: 2.036 MB / 413.2 MB, free: 2.535 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01242/0.6348, allocations: 3.603 MB / 416.8 MB, free: 14.88 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003049/0.6352, allocations: 188.8 kB / 416.9 MB, free: 14.69 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001247/0.6365, allocations: 247.7 kB / 417.2 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01701/0.6535, allocations: 6.899 MB / 424.1 MB, free: 6.805 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001372/0.6537, allocations: 43.61 kB / 424.1 MB, free: 6.762 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006551/0.6543, allocations: 123.9 kB / 424.3 MB, free: 6.641 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001433/0.6558, allocations: 0.7072 MB / 425 MB, free: 5.938 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2091/0.8649, allocations: 5.968 MB / 430.9 MB, free: 81.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03811/0.9031, allocations: 32.27 MB / 463.2 MB, free: 60.61 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00783/0.911, allocations: 2.531 MB / 465.7 MB, free: 59.95 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007153/0.9182, allocations: 3.534 MB / 469.3 MB, free: 58.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.126e-05/0.9183, allocations: 48.34 kB / 469.3 MB, free: 58.34 MB / 346.7 MB Notification: Performance of pre-optimization done (n=105): time 5.304e-06/0.9183, allocations: 0 / 469.3 MB, free: 58.34 MB / 346.7 MB Notification: Performance of matching and sorting (n=118): time 0.03095/0.9493, allocations: 10.35 MB / 479.7 MB, free: 55.4 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0011/0.9504, allocations: 1.594 MB / 481.3 MB, free: 53.82 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004401/0.9548, allocations: 2.454 MB / 483.7 MB, free: 52.95 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002547/0.9551, allocations: 42.72 kB / 483.7 MB, free: 52.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001216/0.9563, allocations: 2.048 MB / 485.8 MB, free: 51.3 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005821/0.957, allocations: 492.7 kB / 486.3 MB, free: 50.96 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000328/0.9573, allocations: 86.78 kB / 486.4 MB, free: 50.89 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002745/0.9576, allocations: 0.4985 MB / 486.9 MB, free: 50.5 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003251/0.9609, allocations: 1.607 MB / 488.5 MB, free: 49.99 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004605/0.9655, allocations: 4.358 MB / 492.8 MB, free: 45.78 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004993/0.9705, allocations: 2.598 MB / 495.4 MB, free: 44.86 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.949e-05/0.9706, allocations: 26.38 kB / 495.4 MB, free: 44.86 MB / 346.7 MB Notification: Performance of matching and sorting (n=579) (initialization): time 0.0173/0.9879, allocations: 6.825 MB / 0.4905 GB, free: 42.63 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.446e-05/0.9881, allocations: 47.22 kB / 0.4905 GB, free: 42.63 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.007088/0.9952, allocations: 2.413 MB / 0.4929 GB, free: 42.04 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00592/1.001, allocations: 1.427 MB / 0.4943 GB, free: 41.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004204/1.005, allocations: 1.018 MB / 0.4953 GB, free: 41.71 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01084/1.016, allocations: 7.054 MB / 0.5022 GB, free: 37.21 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004794/1.021, allocations: 365 kB / 0.5025 GB, free: 36.94 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00078/1.022, allocations: 279.1 kB / 0.5028 GB, free: 36.67 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.002676/1.025, allocations: 1.401 MB / 0.5042 GB, free: 35.43 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005195/1.025, allocations: 233 kB / 0.5044 GB, free: 35.2 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007513/1.033, allocations: 2.8 MB / 0.5071 GB, free: 33.14 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007068/1.04, allocations: 2.473 MB / 0.5095 GB, free: 31.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.35e-05/1.04, allocations: 7.938 kB / 0.5095 GB, free: 31.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.409e-05/1.04, allocations: 7.703 kB / 0.5095 GB, free: 31.32 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0156/1.056, allocations: 6.721 MB / 0.5161 GB, free: 25.6 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.911e-05/1.056, allocations: 0 / 0.5161 GB, free: 25.6 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001076/1.057, allocations: 167.7 kB / 0.5163 GB, free: 25.43 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00598/1.063, allocations: 1.435 MB / 0.5177 GB, free: 23.99 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002597/1.063, allocations: 27.98 kB / 0.5177 GB, free: 23.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01177/1.075, allocations: 7.667 MB / 0.5252 GB, free: 16.04 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009571/1.076, allocations: 1.469 MB / 0.5266 GB, free: 14.44 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01028/1.086, allocations: 4.825 MB / 0.5313 GB, free: 9.562 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007189/1.087, allocations: 294 kB / 0.5316 GB, free: 9.254 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004618/1.087, allocations: 23.98 kB / 0.5316 GB, free: 9.23 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001709/1.089, allocations: 127.8 kB / 0.5318 GB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003195/1.089, allocations: 76.39 kB / 0.5318 GB, free: 9.031 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001567/1.09, allocations: 37.08 kB / 0.5319 GB, free: 8.996 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003497/1.093, allocations: 1.7 MB / 0.5335 GB, free: 7.285 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.287e-06/1.093, allocations: 4 kB / 0.5335 GB, free: 7.281 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005128/1.098, allocations: 0.7499 MB / 0.5343 GB, free: 6.535 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.0004866/1.099, allocations: 166.5 kB / 0.5344 GB, free: 6.371 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01193/1.111, allocations: 4.139 MB / 0.5385 GB, free: 2.219 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.592e-06/1.111, allocations: 0 / 0.5385 GB, free: 2.219 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006879/1.118, allocations: 1.706 MB / 0.5401 GB, free: 480 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003019/1.121, allocations: 235.1 kB / 0.5404 GB, free: 248 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02673/1.148, allocations: 7.801 MB / 0.548 GB, free: 8.445 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00705/1.155, allocations: 2.325 MB / 0.5502 GB, free: 6.098 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001407/1.156, allocations: 195.4 kB / 0.5504 GB, free: 5.906 MB / 362.7 MB Notification: Performance of SimCode: time 5.456e-06/1.156, allocations: 0 / 0.5504 GB, free: 5.906 MB / 362.7 MB Notification: Performance of Templates: time 0.3487/1.505, allocations: 70.01 MB / 0.6188 GB, free: 64.45 MB / 362.7 MB