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.PendulumWithSpringDamper.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadModel(Modelica): time 1.608/1.608, allocations: 171.3 MB / 179.2 MB, free: 7.504 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 1.66e-05/1.67e-05, allocations: 4 kB / 222.5 MB, free: 8.695 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07224/0.07228, allocations: 38.77 MB / 261.3 MB, free: 1.84 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3534/0.4257, allocations: 86.41 MB / 347.7 MB, free: 2.09 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002564/0.426, allocations: 83.45 kB / 347.8 MB, free: 2.047 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4897/0.9157, allocations: 72.37 MB / 420.1 MB, free: 78.89 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.762e-06/0.9158, allocations: 2.219 kB / 420.1 MB, free: 78.89 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002567/0.9161, allocations: 69.81 kB / 420.2 MB, free: 78.89 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1322 * Number of variables: 1322 Notification: Performance of Generate backend data structure: time 0.01108/0.9272, allocations: 3.427 MB / 423.6 MB, free: 77.48 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.444e-05/0.9272, allocations: 9.875 kB / 423.6 MB, free: 77.48 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01299/0.9402, allocations: 2.262 MB / 425.9 MB, free: 77.24 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01208/0.9524, allocations: 3.881 MB / 429.8 MB, free: 76.75 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002695/0.9527, allocations: 116 kB / 429.9 MB, free: 76.75 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001484/0.9542, allocations: 213.8 kB / 430.1 MB, free: 76.75 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0117/0.9659, allocations: 5.5 MB / 435.6 MB, free: 76.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01772/0.9837, allocations: 8.455 MB / 444.1 MB, free: 74.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001606/0.9839, allocations: 58.67 kB / 444.1 MB, free: 74.17 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007851/0.9847, allocations: 27.75 kB / 444.2 MB, free: 74.17 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001638/0.9863, allocations: 0.9798 MB / 445.1 MB, free: 74.16 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04919/1.036, allocations: 43.39 MB / 488.5 MB, free: 43.39 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004141/1.04, allocations: 2.691 MB / 491.2 MB, free: 41.9 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002583/1.042, allocations: 1.625 MB / 492.8 MB, free: 41.2 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006316/1.043, allocations: 0.5422 MB / 493.4 MB, free: 40.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.029e-05/1.043, allocations: 53.22 kB / 493.4 MB, free: 40.66 MB / 346.7 MB Notification: Performance of pre-optimization done (n=145): time 5.666e-06/1.043, allocations: 0 / 493.4 MB, free: 40.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=162): time 0.04785/1.091, allocations: 16.15 MB / 0.4976 GB, free: 32.11 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/1.091, allocations: 145.6 kB / 0.4978 GB, free: 31.93 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004703/1.096, allocations: 2.597 MB / 0.5003 GB, free: 29.64 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003217/1.096, allocations: 25.7 kB / 0.5003 GB, free: 29.61 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001737/1.098, allocations: 2.755 MB / 0.503 GB, free: 27.08 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007335/1.099, allocations: 0.6111 MB / 0.5036 GB, free: 26.54 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003793/1.099, allocations: 0 / 0.5036 GB, free: 26.54 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003376/1.099, allocations: 0.546 MB / 0.5042 GB, free: 26.05 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003401/1.103, allocations: 1.802 MB / 0.5059 GB, free: 24.44 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005479/1.108, allocations: 5.285 MB / 0.5111 GB, free: 17.68 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005463/1.114, allocations: 3.042 MB / 0.5141 GB, free: 15.09 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.195e-05/1.114, allocations: 36 kB / 0.5141 GB, free: 15.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=739) (initialization): time 0.03178/1.146, allocations: 7.287 MB / 0.5212 GB, free: 8.945 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001625/1.146, allocations: 60.03 kB / 0.5213 GB, free: 8.887 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002397/1.146, allocations: 128 kB / 0.5214 GB, free: 8.762 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009723/1.156, allocations: 1.294 MB / 0.5226 GB, free: 7.879 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01047/1.167, allocations: 1.314 MB / 0.5239 GB, free: 6.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02026/1.187, allocations: 5.82 MB / 0.5296 GB, free: 1.688 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01112/1.198, allocations: 251.6 kB / 0.5299 GB, free: 1.492 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001729/1.2, allocations: 347.5 kB / 0.5302 GB, free: 1.16 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 571 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (696): * Single equations (assignments): 692 * 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.001672/1.201, allocations: 424.6 kB / 0.5306 GB, free: 0.7383 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00134/1.203, allocations: 272.4 kB / 0.5309 GB, free: 480 kB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2086/1.412, allocations: 3.156 MB / 0.5339 GB, free: 69.06 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.587e-05/1.412, allocations: 18.48 kB / 0.534 GB, free: 69.06 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.814e-05/1.412, allocations: 8.094 kB / 0.534 GB, free: 69.06 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.734e-05/1.412, allocations: 11.94 kB / 0.534 GB, free: 69.05 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01814/1.43, allocations: 6.889 MB / 0.5407 GB, free: 68.56 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.977e-05/1.43, allocations: 3.391 kB / 0.5407 GB, free: 68.56 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001626/1.432, allocations: 250.1 kB / 0.5409 GB, free: 68.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004769/1.436, allocations: 1.099 MB / 0.542 GB, free: 68.55 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003248/1.437, allocations: 7.844 kB / 0.542 GB, free: 68.55 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009993/1.447, allocations: 5.46 MB / 0.5474 GB, free: 67.29 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.857e-06/1.447, allocations: 3.906 kB / 0.5474 GB, free: 67.29 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01154/1.458, allocations: 5.537 MB / 0.5528 GB, free: 66.77 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001571/1.46, allocations: 0.538 MB / 0.5533 GB, free: 66.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004858/1.46, allocations: 6.281 kB / 0.5533 GB, free: 66.68 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001981/1.462, allocations: 90.84 kB / 0.5534 GB, free: 66.68 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000333/1.463, allocations: 83.67 kB / 0.5535 GB, free: 66.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001706/1.463, allocations: 45.2 kB / 0.5535 GB, free: 66.68 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003054/1.466, allocations: 1.698 MB / 0.5552 GB, free: 66.53 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.116e-06/1.466, allocations: 0 / 0.5552 GB, free: 66.53 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00609/1.472, allocations: 0.7787 MB / 0.5559 GB, free: 66.53 MB / 346.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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (126): * Single equations (assignments): 122 * 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.0005484/1.473, allocations: 144.9 kB / 0.5561 GB, free: 66.44 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.008297/1.481, allocations: 4.419 MB / 0.5604 GB, free: 66.3 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.136e-06/1.481, allocations: 0 / 0.5604 GB, free: 66.3 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002808/1.484, allocations: 1.467 MB / 0.5618 GB, free: 66.18 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001829/1.486, allocations: 250.1 kB / 0.562 GB, free: 66.13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01726/1.503, allocations: 7.011 MB / 0.5689 GB, free: 63.74 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004965/1.508, allocations: 2.895 MB / 0.5717 GB, free: 62.6 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001094/1.509, allocations: 247.1 kB / 0.572 GB, free: 62.59 MB / 346.7 MB Notification: Performance of SimCode: time 1.87e-06/1.509, allocations: 0 / 0.572 GB, free: 62.59 MB / 346.7 MB Notification: Performance of Templates: time 0.08668/1.596, allocations: 60.44 MB / 0.631 GB, free: 20.13 MB / 346.7 MB