Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.InitSpringConstant") Notification: Performance of loadModel(Modelica): time 1.795/1.795, allocations: 194.8 MB / 212.3 MB, free: 3.016 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003403/0.0003404, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08974/0.0901, allocations: 44.51 MB / 309 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4122/0.5024, allocations: 90.99 MB / 400 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/0.5027, allocations: 93.88 kB / 400.1 MB, free: 14.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2863/0.7891, allocations: 72.16 MB / 472.2 MB, free: 20 kB / 346.7 MB Notification: Performance of FrontEnd: time 5.22e-06/0.7892, allocations: 4 kB / 472.2 MB, free: 16 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002485/0.7894, allocations: 60.05 kB / 472.3 MB, free: 15.95 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.01233/0.8018, allocations: 3.569 MB / 475.9 MB, free: 12.35 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.532e-05/0.8018, allocations: 16.03 kB / 475.9 MB, free: 12.33 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01535/0.8172, allocations: 2.074 MB / 477.9 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01521/0.8324, allocations: 4.038 MB / 482 MB, free: 6.207 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002826/0.8328, allocations: 257.5 kB / 482.2 MB, free: 5.977 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001031/0.8338, allocations: 354.1 kB / 482.6 MB, free: 5.656 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02253/0.8564, allocations: 8.872 MB / 491.4 MB, free: 11.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000189/0.8566, allocations: 59.45 kB / 491.5 MB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006992/0.8573, allocations: 174.7 kB / 491.7 MB, free: 11.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001876/0.8592, allocations: 0.868 MB / 492.5 MB, free: 10.79 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02078/0.88, allocations: 7.167 MB / 499.7 MB, free: 3.613 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3396/1.22, allocations: 42.59 MB / 0.5296 GB, free: 70.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01115/1.231, allocations: 3.171 MB / 0.5327 GB, free: 69.45 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008803/1.24, allocations: 4.079 MB / 0.5367 GB, free: 68.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.569e-05/1.24, allocations: 47.91 kB / 0.5367 GB, free: 68.04 MB / 410.7 MB Notification: Performance of pre-optimization done (n=114): time 5.841e-06/1.24, allocations: 0 / 0.5367 GB, free: 68.04 MB / 410.7 MB Notification: Performance of matching and sorting (n=122): time 0.04338/1.283, allocations: 11.56 MB / 0.548 GB, free: 65.21 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.373e-05/1.283, allocations: 140 kB / 0.5481 GB, free: 65.06 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006141/1.29, allocations: 3.702 MB / 0.5518 GB, free: 64.73 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002974/1.29, allocations: 43.48 kB / 0.5518 GB, free: 64.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001675/1.292, allocations: 2.674 MB / 0.5544 GB, free: 63.23 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005957/1.292, allocations: 0.493 MB / 0.5549 GB, free: 62.96 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003542/1.293, allocations: 108.4 kB / 0.555 GB, free: 62.96 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002872/1.293, allocations: 0.5269 MB / 0.5555 GB, free: 62.64 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003361/1.296, allocations: 1.666 MB / 0.5571 GB, free: 62.63 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004942/1.301, allocations: 5.08 MB / 0.5621 GB, free: 58.2 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005563/1.307, allocations: 2.844 MB / 0.5649 GB, free: 58.18 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.094e-05/1.307, allocations: 34.59 kB / 0.5649 GB, free: 58.18 MB / 410.7 MB Notification: Performance of matching and sorting (n=684) (initialization): time 0.01375/1.321, allocations: 6.518 MB / 0.5713 GB, free: 57.85 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.168e-05/1.321, allocations: 58.41 kB / 0.5713 GB, free: 57.85 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001223/1.321, allocations: 120.6 kB / 0.5714 GB, free: 57.85 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008613/1.322, allocations: 342.1 kB / 0.5718 GB, free: 57.84 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006537/1.328, allocations: 1.27 MB / 0.573 GB, free: 57.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002994/1.331, allocations: 2.385 MB / 0.5753 GB, free: 56.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004953/1.336, allocations: 282.9 kB / 0.5756 GB, free: 56.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006185/1.337, allocations: 329.9 kB / 0.5759 GB, free: 56.31 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 554 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],fixed.color[3],fixed.color[2],fixed.color[1],body.color[3],body.color[2],body.color[1],body.body.sphereColor[3],body.body.sphereColor[2],body.body.sphereColor[1],body.frameTranslation.color[3],body.frameTranslation.color[2],body.frameTranslation.color[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (656): * Single equations (assignments): 652 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003527/1.34, allocations: 1.774 MB / 0.5777 GB, free: 55.54 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006625/1.341, allocations: 308.1 kB / 0.5779 GB, free: 55.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006697/1.348, allocations: 2.324 MB / 0.5802 GB, free: 54.59 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-05/1.348, allocations: 13.69 kB / 0.5802 GB, free: 54.59 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.002e-05/1.348, allocations: 3.75 kB / 0.5802 GB, free: 54.59 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.339e-05/1.348, allocations: 9.375 kB / 0.5802 GB, free: 54.59 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01519/1.363, allocations: 5.841 MB / 0.5859 GB, free: 52.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.28e-05/1.363, allocations: 3.281 kB / 0.5859 GB, free: 52.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001374/1.365, allocations: 163.3 kB / 0.5861 GB, free: 52.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003505/1.368, allocations: 0.7142 MB / 0.5868 GB, free: 52.38 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001247/1.368, allocations: 21.38 kB / 0.5868 GB, free: 52.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008111/1.376, allocations: 4.564 MB / 0.5913 GB, free: 49.79 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/1.376, allocations: 3.719 kB / 0.5913 GB, free: 49.79 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009548/1.386, allocations: 4.265 MB / 0.5954 GB, free: 48.04 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001448/1.387, allocations: 0.5238 MB / 0.596 GB, free: 47.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005389/1.388, allocations: 21.16 kB / 0.596 GB, free: 47.69 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001786/1.39, allocations: 64.72 kB / 0.596 GB, free: 47.68 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002225/1.39, allocations: 64.97 kB / 0.5961 GB, free: 47.67 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001273/1.39, allocations: 38.3 kB / 0.5961 GB, free: 47.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004359/1.395, allocations: 2.299 MB / 0.5984 GB, free: 46.88 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.71e-07/1.395, allocations: 0 / 0.5984 GB, free: 46.88 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005239/1.4, allocations: 0.8203 MB / 0.5992 GB, free: 46.78 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (90): * Single equations (assignments): 86 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004474/1.4, allocations: 161 kB / 0.5993 GB, free: 46.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007983/1.408, allocations: 3.944 MB / 0.6032 GB, free: 44.34 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.32e-06/1.408, allocations: 2.438 kB / 0.6032 GB, free: 44.34 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001991/1.41, allocations: 1.085 MB / 0.6043 GB, free: 43.37 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002435/1.413, allocations: 340 kB / 0.6046 GB, free: 43.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01588/1.429, allocations: 8.889 MB / 0.6133 GB, free: 35.02 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003474/1.432, allocations: 2.848 MB / 0.616 GB, free: 32.83 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001201/1.433, allocations: 242.2 kB / 0.6163 GB, free: 32.6 MB / 410.7 MB Notification: Performance of SimCode: time 9.72e-07/1.433, allocations: 0 / 0.6163 GB, free: 32.6 MB / 410.7 MB Notification: Performance of Templates: time 0.1078/1.541, allocations: 60.86 MB / 0.6757 GB, free: 9.441 MB / 442.7 MB