Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.886/1.886, allocations: 194.9 MB / 211.7 MB, free: 2.98 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000369/0.0003693, allocations: 12 kB / 263.9 MB, free: 13.59 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08126/0.08165, allocations: 44.5 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PendulumWithSpringDamper): time 0.03936/0.1211, allocations: 28.33 MB / 336.7 MB, free: 4.602 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01904/0.1402, allocations: 7.423 MB / 344.1 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005057/0.1453, allocations: 139.6 kB / 344.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004375/0.1497, allocations: 1.392 MB / 345.6 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01388/0.1636, allocations: 4.11 MB / 349.8 MB, free: 7.504 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002516/0.1661, allocations: 0.5615 MB / 350.3 MB, free: 6.941 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004248/0.1704, allocations: 1.95 MB / 352.3 MB, free: 4.988 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006309/0.1768, allocations: 3.329 MB / 355.6 MB, free: 1.605 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001757/0.1786, allocations: 0.8486 MB / 356.4 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002239/0.1808, allocations: 1.18 MB / 357.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005382/0.1814, allocations: 124 kB / 357.7 MB, free: 15.45 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002269/0.1837, allocations: 0.8972 MB / 358.6 MB, free: 14.55 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001891/0.1856, allocations: 1.262 MB / 359.9 MB, free: 13.29 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009567/0.1866, allocations: 0.6908 MB / 360.6 MB, free: 12.59 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.007018/0.1936, allocations: 4.462 MB / 365.1 MB, free: 8.113 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.206e-06/0.1937, allocations: 0 / 365.1 MB, free: 8.113 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.7e-06/0.1937, allocations: 0 / 365.1 MB, free: 8.113 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001174/0.1938, allocations: 0 / 365.1 MB, free: 8.113 MB / 314.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.00864/0.2025, allocations: 3.466 MB / 368.5 MB, free: 4.582 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.2025, allocations: 8.031 kB / 368.5 MB, free: 4.574 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01024/0.2128, allocations: 2.23 MB / 370.8 MB, free: 2.336 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005049/0.2179, allocations: 2.046 MB / 372.8 MB, free: 244 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002334/0.2182, allocations: 201 kB / 373 MB, free: 40 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.2057/0.4239, allocations: 255.5 kB / 373.3 MB, free: 61.48 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02306/0.447, allocations: 9.993 MB / 383.2 MB, free: 57.74 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001308/0.4472, allocations: 42.06 kB / 383.3 MB, free: 57.72 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005718/0.4478, allocations: 129 kB / 383.4 MB, free: 57.66 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003372/0.4511, allocations: 1.774 MB / 385.2 MB, free: 57.27 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02105/0.4722, allocations: 8.526 MB / 393.7 MB, free: 51.13 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04385/0.5161, allocations: 37 MB / 430.7 MB, free: 13.45 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01993/0.5361, allocations: 6.117 MB / 436.8 MB, free: 7.176 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01359/0.5497, allocations: 8.101 MB / 444.9 MB, free: 14.93 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.139e-05/0.5498, allocations: 43.56 kB / 445 MB, free: 14.88 MB / 330.7 MB Notification: Performance of pre-optimization done (n=139): time 5.904e-06/0.5499, allocations: 4 kB / 445 MB, free: 14.87 MB / 330.7 MB Notification: Performance of matching and sorting (n=155): time 0.0912/0.6411, allocations: 23.3 MB / 468.3 MB, free: 7.391 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.6412, allocations: 141.5 kB / 468.4 MB, free: 7.223 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007742/0.649, allocations: 3.558 MB / 472 MB, free: 3.66 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003558/0.6494, allocations: 49.64 kB / 472 MB, free: 3.605 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002883/0.6523, allocations: 2.674 MB / 474.7 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001019/0.6533, allocations: 0.6023 MB / 475.3 MB, free: 344 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004627/0.6538, allocations: 115.3 kB / 475.4 MB, free: 232 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0005424/0.6544, allocations: 0.5345 MB / 475.9 MB, free: 15.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005125/0.6595, allocations: 2.033 MB / 478 MB, free: 13.64 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008564/0.6681, allocations: 5.424 MB / 483.4 MB, free: 6.508 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007311/0.6755, allocations: 3.21 MB / 486.6 MB, free: 3.297 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001041/0.6757, allocations: 36 kB / 486.6 MB, free: 3.262 MB / 362.7 MB Notification: Performance of matching and sorting (n=710) (initialization): time 0.02247/0.6981, allocations: 8.183 MB / 494.8 MB, free: 11.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001241/0.6983, allocations: 56 kB / 494.9 MB, free: 11.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001973/0.6985, allocations: 124 kB / 495 MB, free: 10.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005513/0.704, allocations: 1.311 MB / 496.3 MB, free: 9.582 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005516/0.7096, allocations: 1.255 MB / 497.6 MB, free: 8.324 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01306/0.7227, allocations: 6.264 MB / 0.492 GB, free: 1.926 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005139/0.7279, allocations: 315.6 kB / 0.4923 GB, free: 1.617 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009841/0.7289, allocations: 340 kB / 0.4927 GB, free: 1.285 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 549 * 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 (667): * Single equations (assignments): 663 * 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.00426/0.7332, allocations: 1.791 MB / 0.4944 GB, free: 15.48 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007712/0.734, allocations: 304 kB / 0.4947 GB, free: 15.18 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01027/0.7443, allocations: 3.559 MB / 0.4982 GB, free: 11.61 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.391e-05/0.7444, allocations: 19.67 kB / 0.4982 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.997e-05/0.7444, allocations: 7.984 kB / 0.4982 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.524e-05/0.7444, allocations: 15.92 kB / 0.4982 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02107/0.7655, allocations: 7.802 MB / 0.5058 GB, free: 3.715 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.63e-05/0.7656, allocations: 7.953 kB / 0.5058 GB, free: 3.707 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001694/0.7673, allocations: 243.7 kB / 0.5061 GB, free: 3.469 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005021/0.7723, allocations: 1.128 MB / 0.5072 GB, free: 2.34 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003426/0.7727, allocations: 24 kB / 0.5072 GB, free: 2.316 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2293/1.002, allocations: 5.878 MB / 0.5129 GB, free: 123.3 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.943e-06/1.002, allocations: 1.406 kB / 0.5129 GB, free: 123.3 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01406/1.016, allocations: 6.035 MB / 0.5188 GB, free: 121.4 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001736/1.018, allocations: 0.5944 MB / 0.5194 GB, free: 121.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007278/1.019, allocations: 23.09 kB / 0.5194 GB, free: 121.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002184/1.021, allocations: 110.4 kB / 0.5195 GB, free: 121.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004715/1.021, allocations: 83.95 kB / 0.5196 GB, free: 121.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001889/1.022, allocations: 45.3 kB / 0.5197 GB, free: 121.2 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.004723/1.026, allocations: 2.221 MB / 0.5218 GB, free: 120.4 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.292e-06/1.026, allocations: 0 / 0.5218 GB, free: 120.4 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005702/1.032, allocations: 0.914 MB / 0.5227 GB, free: 120.3 MB / 394.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.0006285/1.033, allocations: 182.8 kB / 0.5229 GB, free: 120.2 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00953/1.042, allocations: 4.939 MB / 0.5277 GB, free: 118.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.683e-06/1.042, allocations: 0 / 0.5277 GB, free: 118.6 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003372/1.046, allocations: 1.626 MB / 0.5293 GB, free: 117.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002171/1.048, allocations: 311.5 kB / 0.5296 GB, free: 117.8 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01856/1.067, allocations: 10.04 MB / 0.5394 GB, free: 112.6 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004698/1.071, allocations: 2.894 MB / 0.5422 GB, free: 110.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001123/1.072, allocations: 257.4 kB / 0.5425 GB, free: 110.1 MB / 394.7 MB Notification: Performance of SimCode: time 1.772e-06/1.072, allocations: 0 / 0.5425 GB, free: 110.1 MB / 394.7 MB Notification: Performance of Templates: time 0.09093/1.163, allocations: 63.15 MB / 0.6042 GB, free: 47.06 MB / 394.7 MB