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.694/1.694, allocations: 171.2 MB / 184.3 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.705e-05/2.724e-05, allocations: 8 kB / 228.8 MB, free: 15.32 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2079/0.208, allocations: 38.77 MB / 267.6 MB, free: 9.32 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1619/0.3699, allocations: 79.43 MB / 347 MB, free: 9.77 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002633/0.3702, allocations: 83.95 kB / 347.1 MB, free: 9.688 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3847/0.7549, allocations: 56.45 MB / 403.6 MB, free: 42.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.246e-06/0.755, allocations: 0 / 403.6 MB, free: 42.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.54e-05/0.7551, allocations: 44 kB / 403.6 MB, free: 42.38 MB / 298.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.0114/0.7665, allocations: 2.907 MB / 406.5 MB, free: 39.41 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.304e-05/0.7666, allocations: 12.03 kB / 406.5 MB, free: 39.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0117/0.7783, allocations: 2.032 MB / 408.6 MB, free: 37.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01084/0.7892, allocations: 3.596 MB / 412.1 MB, free: 33.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002351/0.7895, allocations: 184.8 kB / 412.3 MB, free: 33.53 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001145/0.7906, allocations: 251.8 kB / 412.6 MB, free: 33.29 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01446/0.8051, allocations: 6.826 MB / 419.4 MB, free: 25.71 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001354/0.8053, allocations: 39.62 kB / 419.4 MB, free: 25.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007027/0.806, allocations: 123.9 kB / 419.6 MB, free: 25.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001137/0.8072, allocations: 0.7033 MB / 420.3 MB, free: 24.85 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01263/0.8198, allocations: 5.838 MB / 426.1 MB, free: 19 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04011/0.86, allocations: 32.26 MB / 458.4 MB, free: 1.66 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008501/0.8685, allocations: 2.518 MB / 460.9 MB, free: 14.99 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002093/0.8707, allocations: 0.9886 MB / 461.9 MB, free: 13.99 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007915/0.8786, allocations: 3.541 MB / 465.4 MB, free: 10.24 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.355e-05/0.8787, allocations: 50.94 kB / 465.5 MB, free: 10.18 MB / 330.7 MB Notification: Performance of pre-optimization done (n=105): time 5.557e-06/0.8788, allocations: 0 / 465.5 MB, free: 10.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=118): time 0.03005/0.9088, allocations: 8.683 MB / 474.1 MB, free: 1.371 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001733/0.9106, allocations: 1.58 MB / 475.7 MB, free: 15.62 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00524/0.9159, allocations: 2.399 MB / 478.1 MB, free: 13.2 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002662/0.9162, allocations: 37.7 kB / 478.2 MB, free: 13.15 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002149/0.9183, allocations: 2.054 MB / 480.2 MB, free: 11.07 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008031/0.9192, allocations: 493.8 kB / 480.7 MB, free: 10.58 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004518/0.9196, allocations: 84 kB / 480.8 MB, free: 10.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004528/0.9201, allocations: 0.4967 MB / 481.3 MB, free: 9.992 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003698/0.9238, allocations: 1.547 MB / 482.8 MB, free: 8.438 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006468/0.9303, allocations: 4.299 MB / 487.1 MB, free: 2.746 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005512/0.9359, allocations: 2.566 MB / 489.7 MB, free: 184 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.529e-05/0.936, allocations: 28.28 kB / 489.7 MB, free: 156 kB / 346.7 MB Notification: Performance of matching and sorting (n=579) (initialization): time 0.2187/1.155, allocations: 6.688 MB / 496.4 MB, free: 87.44 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.938e-05/1.155, allocations: 47.22 kB / 496.4 MB, free: 87.44 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00724/1.162, allocations: 2.412 MB / 498.9 MB, free: 87.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005948/1.168, allocations: 1.423 MB / 0.4886 GB, free: 87.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004213/1.172, allocations: 1.018 MB / 0.4896 GB, free: 87.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01071/1.183, allocations: 6.89 MB / 0.4963 GB, free: 84.58 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005121/1.188, allocations: 372 kB / 0.4966 GB, free: 84.57 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008412/1.189, allocations: 278.8 kB / 0.4969 GB, free: 84.57 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 () * 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.0008318/1.19, allocations: 443.7 kB / 0.4973 GB, free: 84.38 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005424/1.191, allocations: 227.9 kB / 0.4975 GB, free: 84.38 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007858/1.198, allocations: 2.779 MB / 0.5003 GB, free: 84.24 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007385/1.206, allocations: 2.457 MB / 0.5027 GB, free: 84.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.109e-05/1.206, allocations: 10.42 kB / 0.5027 GB, free: 84.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.476e-05/1.206, allocations: 3.328 kB / 0.5027 GB, free: 84.09 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01694/1.223, allocations: 6.711 MB / 0.5092 GB, free: 81.85 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.986e-05/1.223, allocations: 0 / 0.5092 GB, free: 81.85 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001091/1.224, allocations: 165.5 kB / 0.5094 GB, free: 81.83 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006443/1.231, allocations: 1.432 MB / 0.5108 GB, free: 81.63 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002731/1.231, allocations: 29.98 kB / 0.5108 GB, free: 81.62 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01206/1.243, allocations: 7.447 MB / 0.5181 GB, free: 77.55 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0009564/1.244, allocations: 1.45 MB / 0.5195 GB, free: 76.14 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01001/1.254, allocations: 4.794 MB / 0.5242 GB, free: 72.48 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007101/1.255, allocations: 296.9 kB / 0.5245 GB, free: 72.19 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005107/1.255, allocations: 24 kB / 0.5245 GB, free: 72.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00169/1.257, allocations: 124 kB / 0.5246 GB, free: 72.09 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003212/1.257, allocations: 76.12 kB / 0.5247 GB, free: 72.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001414/1.258, allocations: 37.95 kB / 0.5247 GB, free: 72.02 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003044/1.261, allocations: 1.647 MB / 0.5263 GB, free: 70.55 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.112e-06/1.261, allocations: 0 / 0.5263 GB, free: 70.55 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00498/1.266, allocations: 0.7496 MB / 0.5271 GB, free: 69.8 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 () * 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.000459/1.266, allocations: 164.4 kB / 0.5272 GB, free: 69.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008155/1.274, allocations: 4.069 MB / 0.5312 GB, free: 66.04 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.927e-06/1.274, allocations: 3.172 kB / 0.5312 GB, free: 66.04 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003746/1.278, allocations: 1.686 MB / 0.5328 GB, free: 64.55 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001703/1.28, allocations: 237.4 kB / 0.5331 GB, free: 64.34 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01196/1.292, allocations: 5.716 MB / 0.5386 GB, free: 59.45 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00297/1.295, allocations: 2.324 MB / 0.5409 GB, free: 57.61 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007603/1.296, allocations: 198 kB / 0.5411 GB, free: 57.43 MB / 346.7 MB Notification: Performance of SimCode: time 1.746e-06/1.296, allocations: 0 / 0.5411 GB, free: 57.43 MB / 346.7 MB Notification: Performance of Templates: time 0.2932/1.589, allocations: 70 MB / 0.6095 GB, free: 100.8 MB / 362.7 MB