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.PendulumWithSpringDamper.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.PendulumWithSpringDamper,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|prismatic.s|prismatic.v|revolute.phi|revolute.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadModel(Modelica): time 1.812/1.812, allocations: 194.8 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003381/0.0003382, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0923/0.09265, allocations: 44.51 MB / 309 MB, free: 1.027 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4155/0.5082, allocations: 92.87 MB / 401.9 MB, free: 14.45 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003105/0.5086, allocations: 100.1 kB / 402 MB, free: 14.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2947/0.8033, allocations: 74.46 MB / 476.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.8034, allocations: 0 / 476.4 MB, free: 12.13 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001959/0.8036, allocations: 75.94 kB / 476.5 MB, free: 12.06 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: 1323 * Number of variables: 1323 Notification: Performance of Generate backend data structure: time 0.01538/0.819, allocations: 3.599 MB / 480.1 MB, free: 8.395 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.655e-05/0.819, allocations: 12.03 kB / 480.1 MB, free: 8.383 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02381/0.8429, allocations: 2.257 MB / 482.4 MB, free: 6.117 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02035/0.8633, allocations: 3.909 MB / 486.3 MB, free: 2.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004762/0.8638, allocations: 275.1 kB / 486.5 MB, free: 1.891 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002292/0.8661, allocations: 359.9 kB / 486.9 MB, free: 1.539 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03971/0.9058, allocations: 10.38 MB / 497.3 MB, free: 6.191 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001898/0.9061, allocations: 55.45 kB / 497.3 MB, free: 6.137 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008906/0.907, allocations: 187.8 kB / 497.5 MB, free: 5.953 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002434/0.9094, allocations: 0.9818 MB / 498.5 MB, free: 4.969 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03158/0.941, allocations: 8.644 MB / 0.4952 GB, free: 12.31 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3511/1.292, allocations: 44.35 MB / 0.5385 GB, free: 69 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01612/1.308, allocations: 3.56 MB / 0.542 GB, free: 68.34 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01695/1.325, allocations: 7.143 MB / 0.549 GB, free: 66.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.288e-05/1.326, allocations: 55.03 kB / 0.5491 GB, free: 66.48 MB / 410.7 MB Notification: Performance of pre-optimization done (n=139): time 5.149e-06/1.326, allocations: 0 / 0.5491 GB, free: 66.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=155): time 0.08689/1.412, allocations: 17.13 MB / 0.5658 GB, free: 63.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.296e-05/1.413, allocations: 144.3 kB / 0.5659 GB, free: 63.44 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006868/1.419, allocations: 3.462 MB / 0.5693 GB, free: 63.11 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004056/1.42, allocations: 43.02 kB / 0.5693 GB, free: 63.08 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001993/1.422, allocations: 2.669 MB / 0.5719 GB, free: 61.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008991/1.423, allocations: 0.6068 MB / 0.5725 GB, free: 61.26 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005169/1.423, allocations: 110.7 kB / 0.5726 GB, free: 61.26 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003192/1.424, allocations: 0.5467 MB / 0.5732 GB, free: 60.94 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005105/1.429, allocations: 1.925 MB / 0.5751 GB, free: 60.92 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007198/1.436, allocations: 5.308 MB / 0.5802 GB, free: 56.55 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007389/1.444, allocations: 3.11 MB / 0.5833 GB, free: 56 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001164/1.444, allocations: 34 kB / 0.5833 GB, free: 56 MB / 410.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.0244/1.468, allocations: 7.976 MB / 0.5911 GB, free: 53.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.945e-05/1.468, allocations: 54.69 kB / 0.5912 GB, free: 53.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001587/1.468, allocations: 126.3 kB / 0.5913 GB, free: 53.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007141/1.476, allocations: 1.312 MB / 0.5926 GB, free: 53.64 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007319/1.483, allocations: 1.25 MB / 0.5938 GB, free: 53.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01406/1.497, allocations: 6.295 MB / 0.5999 GB, free: 50.55 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006402/1.504, allocations: 349.1 kB / 0.6003 GB, free: 50.45 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001122/1.505, allocations: 334.4 kB / 0.6006 GB, free: 50.41 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 547 * Number of states: 0 () * Number of discrete variables: 33 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper1.color_b[3],damper1.color_b[2],damper1.color_b[1],damper1.color_a[3],damper1.color_a[2],damper1.color_a[1],spring1.color[3],spring1.color[2],spring1.color[1],spring1.massColor[3],spring1.massColor[2],spring1.massColor[1],bar1.color[3],bar1.color[2],bar1.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[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 (665): * Single equations (assignments): 661 * 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 {(3,88.9%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004396/1.509, allocations: 1.782 MB / 0.6023 GB, free: 49.55 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007543/1.51, allocations: 298 kB / 0.6026 GB, free: 49.39 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01186/1.522, allocations: 3.307 MB / 0.6058 GB, free: 48.33 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.968e-05/1.522, allocations: 25.36 kB / 0.6059 GB, free: 48.32 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/1.522, allocations: 3.625 kB / 0.6059 GB, free: 48.32 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.451e-05/1.522, allocations: 10.94 kB / 0.6059 GB, free: 48.32 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02168/1.544, allocations: 7.364 MB / 0.6131 GB, free: 43.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.725e-05/1.544, allocations: 3.172 kB / 0.6131 GB, free: 43.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002143/1.546, allocations: 232.4 kB / 0.6133 GB, free: 43.11 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006508/1.552, allocations: 1.121 MB / 0.6144 GB, free: 42.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002263/1.553, allocations: 31.8 kB / 0.6144 GB, free: 42.37 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01304/1.566, allocations: 5.914 MB / 0.6202 GB, free: 37.25 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.377e-06/1.566, allocations: 7.969 kB / 0.6202 GB, free: 37.24 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01551/1.581, allocations: 5.57 MB / 0.6256 GB, free: 32.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001769/1.583, allocations: 0.5761 MB / 0.6262 GB, free: 32.06 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006247/1.584, allocations: 31.75 kB / 0.6262 GB, free: 32.04 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002388/1.586, allocations: 111.4 kB / 0.6263 GB, free: 31.97 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000324/1.586, allocations: 79.77 kB / 0.6264 GB, free: 31.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001692/1.587, allocations: 44.42 kB / 0.6264 GB, free: 31.88 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004467/1.591, allocations: 2.149 MB / 0.6285 GB, free: 30.12 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.01e-07/1.591, allocations: 0 / 0.6285 GB, free: 30.12 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005645/1.597, allocations: 0.8965 MB / 0.6294 GB, free: 29.23 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (119): * Single equations (assignments): 115 * 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 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005216/1.597, allocations: 173.8 kB / 0.6296 GB, free: 29.07 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01078/1.608, allocations: 4.696 MB / 0.6342 GB, free: 24.96 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/1.608, allocations: 0 / 0.6342 GB, free: 24.96 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003529/1.612, allocations: 1.5 MB / 0.6356 GB, free: 23.64 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002202/1.614, allocations: 308.4 kB / 0.6359 GB, free: 23.37 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02152/1.635, allocations: 9.825 MB / 0.6455 GB, free: 14.54 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004701/1.64, allocations: 2.892 MB / 0.6484 GB, free: 11.97 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001361/1.642, allocations: 251.4 kB / 0.6486 GB, free: 11.73 MB / 410.7 MB Notification: Performance of SimCode: time 9.12e-07/1.642, allocations: 11.77 kB / 0.6486 GB, free: 11.72 MB / 410.7 MB Notification: Performance of Templates: time 0.399/2.041, allocations: 62.11 MB / 0.7093 GB, free: 119.7 MB / 442.7 MB