Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper") Notification: Performance of loadModel(Modelica): time 2.211/2.211, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005449/0.0005453, allocations: 8 kB / 233.9 MB, free: 2.379 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1201, allocations: 38.76 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3963/0.5165, allocations: 87.15 MB / 359.8 MB, free: 2.414 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004858/0.5171, allocations: 94.39 kB / 359.9 MB, free: 2.363 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6241/1.141, allocations: 74.42 MB / 434.3 MB, free: 75.11 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.785e-06/1.141, allocations: 0 / 434.3 MB, free: 75.11 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002418/1.142, allocations: 72.5 kB / 434.3 MB, free: 75.1 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.01657/1.158, allocations: 3.585 MB / 437.9 MB, free: 73.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/1.158, allocations: 9.344 kB / 437.9 MB, free: 73.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01815/1.176, allocations: 2.264 MB / 440.2 MB, free: 73.52 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02091/1.197, allocations: 3.912 MB / 444.1 MB, free: 73.03 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000675/1.198, allocations: 279.4 kB / 444.4 MB, free: 73.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003009/1.201, allocations: 360.2 kB / 444.7 MB, free: 73.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04865/1.25, allocations: 10.35 MB / 455.1 MB, free: 70.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003213/1.25, allocations: 56.06 kB / 455.2 MB, free: 70.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002119/1.252, allocations: 181.6 kB / 455.3 MB, free: 70.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003242/1.256, allocations: 0.9806 MB / 456.3 MB, free: 70.44 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06956/1.325, allocations: 8.65 MB / 465 MB, free: 70.36 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09161/1.417, allocations: 44.01 MB / 0.497 GB, free: 38.23 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02458/1.441, allocations: 3.569 MB / 0.5005 GB, free: 36.84 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02532/1.467, allocations: 7.136 MB / 0.5075 GB, free: 32.86 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.822e-05/1.467, allocations: 43.56 kB / 0.5075 GB, free: 32.81 MB / 346.7 MB Notification: Performance of pre-optimization done (n=139): time 8.345e-06/1.467, allocations: 3.938 kB / 0.5075 GB, free: 32.81 MB / 346.7 MB Notification: Performance of matching and sorting (n=155): time 0.1057/1.573, allocations: 17.12 MB / 0.5243 GB, free: 18.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.162e-05/1.573, allocations: 145.5 kB / 0.5244 GB, free: 18.55 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007513/1.58, allocations: 3.471 MB / 0.5278 GB, free: 15.61 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004293/1.581, allocations: 49.7 kB / 0.5278 GB, free: 15.56 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002221/1.583, allocations: 2.709 MB / 0.5305 GB, free: 12.86 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009579/1.584, allocations: 0.5997 MB / 0.5311 GB, free: 12.26 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000599/1.585, allocations: 104 kB / 0.5312 GB, free: 12.16 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003313/1.585, allocations: 0.5373 MB / 0.5317 GB, free: 11.61 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005244/1.59, allocations: 1.923 MB / 0.5336 GB, free: 9.684 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007558/1.598, allocations: 5.297 MB / 0.5387 GB, free: 2.684 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007657/1.606, allocations: 3.096 MB / 0.5418 GB, free: 15.58 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001059/1.606, allocations: 36 kB / 0.5418 GB, free: 15.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=708) (initialization): time 0.029/1.635, allocations: 8.082 MB / 0.5497 GB, free: 7.461 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/1.635, allocations: 56 kB / 0.5497 GB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002249/1.635, allocations: 120 kB / 0.5499 GB, free: 7.289 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007854/1.643, allocations: 1.305 MB / 0.5511 GB, free: 5.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008381/1.652, allocations: 1.259 MB / 0.5524 GB, free: 4.723 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3725/2.024, allocations: 6.289 MB / 0.5585 GB, free: 77.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006694/2.031, allocations: 349 kB / 0.5588 GB, free: 77.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001626/2.032, allocations: 334.9 kB / 0.5592 GB, free: 77.07 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.005087/2.038, allocations: 1.788 MB / 0.5609 GB, free: 76.96 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008261/2.038, allocations: 299.9 kB / 0.5612 GB, free: 76.96 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01495/2.053, allocations: 3.303 MB / 0.5644 GB, free: 76.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.904e-05/2.054, allocations: 22.47 kB / 0.5644 GB, free: 76.86 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.045e-05/2.054, allocations: 8.875 kB / 0.5644 GB, free: 76.86 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.723e-05/2.054, allocations: 9.156 kB / 0.5645 GB, free: 76.86 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02996/2.084, allocations: 7.371 MB / 0.5716 GB, free: 76.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.363e-05/2.084, allocations: 0 / 0.5716 GB, free: 76.4 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002304/2.086, allocations: 238.9 kB / 0.5719 GB, free: 76.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006474/2.093, allocations: 1.116 MB / 0.573 GB, free: 76.39 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003216/2.093, allocations: 29.81 kB / 0.573 GB, free: 76.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01312/2.106, allocations: 5.918 MB / 0.5788 GB, free: 75.07 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/2.106, allocations: 0 / 0.5788 GB, free: 75.07 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0157/2.122, allocations: 5.572 MB / 0.5842 GB, free: 74.64 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002055/2.124, allocations: 0.5747 MB / 0.5848 GB, free: 74.52 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006916/2.125, allocations: 32.08 kB / 0.5848 GB, free: 74.51 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002459/2.127, allocations: 111.7 kB / 0.5849 GB, free: 74.51 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003767/2.127, allocations: 82.41 kB / 0.585 GB, free: 74.51 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000167/2.128, allocations: 36.19 kB / 0.585 GB, free: 74.51 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.005145/2.133, allocations: 2.151 MB / 0.5871 GB, free: 74.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.142e-06/2.133, allocations: 0 / 0.5871 GB, free: 74.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006772/2.14, allocations: 0.9026 MB / 0.588 GB, free: 74.21 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.0006968/2.14, allocations: 164.4 kB / 0.5882 GB, free: 74.11 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01168/2.152, allocations: 4.697 MB / 0.5928 GB, free: 72.81 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.693e-06/2.152, allocations: 0 / 0.5928 GB, free: 72.81 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003694/2.156, allocations: 1.494 MB / 0.5942 GB, free: 72.23 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00258/2.158, allocations: 311.5 kB / 0.5945 GB, free: 72.08 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0243/2.183, allocations: 9.444 MB / 0.6037 GB, free: 67.64 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00604/2.189, allocations: 2.89 MB / 0.6066 GB, free: 66.48 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.007989/2.197, allocations: 1.686 MB / 0.6082 GB, free: 66.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001423/2.198, allocations: 213.4 kB / 0.6084 GB, free: 66.43 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/2.198, allocations: 0 / 0.6084 GB, free: 66.43 MB / 362.7 MB Notification: Performance of Templates: time 0.09177/2.29, allocations: 30.93 MB / 0.6386 GB, free: 48.91 MB / 362.7 MB