Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.725/1.725, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005264/0.0005264, allocations: 8 kB / 233.8 MB, free: 3.074 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09479/0.09535, allocations: 38.77 MB / 272.6 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3885/0.4839, allocations: 87.13 MB / 359.7 MB, free: 3.168 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003211/0.4843, allocations: 96.75 kB / 359.8 MB, free: 3.113 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5517/1.036, allocations: 74.42 MB / 434.2 MB, free: 74.62 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.856e-06/1.036, allocations: 0 / 434.2 MB, free: 74.62 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002492/1.036, allocations: 70.23 kB / 434.3 MB, free: 74.62 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.01585/1.052, allocations: 3.588 MB / 437.8 MB, free: 73.59 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.653e-05/1.052, allocations: 8.938 kB / 437.9 MB, free: 73.59 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01828/1.071, allocations: 2.261 MB / 440.1 MB, free: 73.35 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01582/1.086, allocations: 3.907 MB / 444 MB, free: 72.86 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005094/1.087, allocations: 278.4 kB / 444.3 MB, free: 72.85 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002475/1.09, allocations: 362.2 kB / 444.7 MB, free: 72.85 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03393/1.124, allocations: 10.38 MB / 455 MB, free: 70.29 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002662/1.124, allocations: 56 kB / 455.1 MB, free: 70.28 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001938/1.126, allocations: 187.1 kB / 455.3 MB, free: 70.28 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002824/1.129, allocations: 0.971 MB / 456.2 MB, free: 70.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03867/1.167, allocations: 8.65 MB / 464.9 MB, free: 70.19 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07004/1.237, allocations: 44.01 MB / 0.497 GB, free: 38.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01588/1.253, allocations: 3.559 MB / 0.5004 GB, free: 36.68 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01619/1.27, allocations: 7.144 MB / 0.5074 GB, free: 32.84 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.12e-05/1.27, allocations: 47.16 kB / 0.5075 GB, free: 32.79 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 5.931e-06/1.27, allocations: 0 / 0.5075 GB, free: 32.79 MB / 346.7 MB Notification: Performance of matching and sorting (n=155): time 0.08814/1.358, allocations: 17.12 MB / 0.5242 GB, free: 18.83 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.107e-05/1.358, allocations: 149.5 kB / 0.5243 GB, free: 18.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007448/1.365, allocations: 3.463 MB / 0.5277 GB, free: 15.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004252/1.366, allocations: 53.55 kB / 0.5278 GB, free: 15.7 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002071/1.368, allocations: 2.668 MB / 0.5304 GB, free: 13.19 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009566/1.369, allocations: 0.6031 MB / 0.531 GB, free: 12.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005777/1.37, allocations: 108 kB / 0.5311 GB, free: 12.48 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003368/1.37, allocations: 0.5381 MB / 0.5316 GB, free: 11.94 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00542/1.375, allocations: 1.931 MB / 0.5335 GB, free: 10 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007586/1.383, allocations: 5.309 MB / 0.5387 GB, free: 2.988 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007598/1.391, allocations: 3.108 MB / 0.5417 GB, free: 15.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000128/1.391, allocations: 32 kB / 0.5417 GB, free: 15.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.02818/1.419, allocations: 7.984 MB / 0.5495 GB, free: 7.855 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001203/1.419, allocations: 56 kB / 0.5496 GB, free: 7.801 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002076/1.419, allocations: 120 kB / 0.5497 GB, free: 7.684 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007822/1.427, allocations: 1.306 MB / 0.551 GB, free: 6.375 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00812/1.435, allocations: 1.255 MB / 0.5522 GB, free: 5.117 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2657/1.701, allocations: 6.287 MB / 0.5583 GB, free: 77.13 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006957/1.708, allocations: 343.7 kB / 0.5587 GB, free: 77.13 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001603/1.71, allocations: 336 kB / 0.559 GB, free: 77.13 MB / 362.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.005684/1.716, allocations: 1.795 MB / 0.5607 GB, free: 77.02 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008645/1.717, allocations: 299 kB / 0.561 GB, free: 77.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01398/1.731, allocations: 3.312 MB / 0.5643 GB, free: 76.92 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.504e-05/1.731, allocations: 17.41 kB / 0.5643 GB, free: 76.92 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.876e-05/1.731, allocations: 5.438 kB / 0.5643 GB, free: 76.92 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.209e-05/1.731, allocations: 8.781 kB / 0.5643 GB, free: 76.92 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02746/1.758, allocations: 7.368 MB / 0.5715 GB, free: 76.46 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.725e-05/1.758, allocations: 1.438 kB / 0.5715 GB, free: 76.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002419/1.761, allocations: 235.2 kB / 0.5717 GB, free: 76.46 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006861/1.768, allocations: 1.116 MB / 0.5728 GB, free: 76.45 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004538/1.768, allocations: 28.06 kB / 0.5728 GB, free: 76.45 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01441/1.783, allocations: 5.928 MB / 0.5786 GB, free: 75.12 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/1.783, allocations: 0 / 0.5786 GB, free: 75.12 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01737/1.8, allocations: 5.578 MB / 0.5841 GB, free: 74.7 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002136/1.802, allocations: 0.5695 MB / 0.5846 GB, free: 74.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001153/1.803, allocations: 25.44 kB / 0.5846 GB, free: 74.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003287/1.807, allocations: 112.8 kB / 0.5847 GB, free: 74.57 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007136/1.808, allocations: 82.59 kB / 0.5848 GB, free: 74.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002223/1.808, allocations: 44.34 kB / 0.5849 GB, free: 74.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.006013/1.814, allocations: 2.147 MB / 0.587 GB, free: 74.42 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.002e-06/1.814, allocations: 0 / 0.587 GB, free: 74.42 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006902/1.821, allocations: 0.8947 MB / 0.5878 GB, free: 74.35 MB / 362.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.0007903/1.822, allocations: 170.3 kB / 0.588 GB, free: 74.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01215/1.834, allocations: 4.692 MB / 0.5926 GB, free: 72.95 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.456e-06/1.834, allocations: 3.25 kB / 0.5926 GB, free: 72.95 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004171/1.838, allocations: 1.497 MB / 0.594 GB, free: 72.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002895/1.841, allocations: 313.9 kB / 0.5943 GB, free: 72.22 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02497/1.866, allocations: 9.825 MB / 0.6039 GB, free: 67.54 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006292/1.872, allocations: 2.899 MB / 0.6068 GB, free: 66.38 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001414/1.874, allocations: 254 kB / 0.607 GB, free: 66.37 MB / 362.7 MB Notification: Performance of SimCode: time 1.132e-06/1.874, allocations: 3.781 kB / 0.607 GB, free: 66.37 MB / 362.7 MB Notification: Performance of Templates: time 0.1176/1.991, allocations: 62.08 MB / 0.6676 GB, free: 19.31 MB / 362.7 MB