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.Pendulum.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.Pendulum,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadModel(Modelica): time 1.823/1.823, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003715/0.0003717, allocations: 12 kB / 263.9 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08188/0.08229, allocations: 44.5 MB / 308.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01623/0.09856, allocations: 11.48 MB / 319.8 MB, free: 5.504 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009778/0.1084, allocations: 3.984 MB / 323.8 MB, free: 1.512 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001919/0.1104, allocations: 55.81 kB / 323.9 MB, free: 1.457 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00177/0.1122, allocations: 0.5327 MB / 324.4 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006511/0.1187, allocations: 1.835 MB / 326.2 MB, free: 15.08 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001513/0.1203, allocations: 411.2 kB / 326.7 MB, free: 14.68 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.003283/0.1236, allocations: 1.462 MB / 328.1 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002491/0.1261, allocations: 1.317 MB / 329.4 MB, free: 11.87 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001119/0.1273, allocations: 0.5917 MB / 330 MB, free: 11.27 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001546/0.1288, allocations: 0.8488 MB / 330.9 MB, free: 10.42 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003723/0.1292, allocations: 80 kB / 330.9 MB, free: 10.34 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00193/0.1312, allocations: 0.7606 MB / 331.7 MB, free: 9.582 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001414/0.1326, allocations: 0.8689 MB / 332.6 MB, free: 8.711 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006835/0.1334, allocations: 0.4883 MB / 333.1 MB, free: 8.215 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004725/0.1381, allocations: 2.962 MB / 336 MB, free: 5.246 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.875e-06/0.1381, allocations: 0 / 336 MB, free: 5.246 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.33e-06/0.1382, allocations: 0 / 336 MB, free: 5.246 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.274e-05/0.1382, allocations: 3.938 kB / 336 MB, free: 5.242 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 931 * Number of variables: 931 Notification: Performance of Generate backend data structure: time 0.006229/0.1445, allocations: 2.527 MB / 338.6 MB, free: 2.656 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.1445, allocations: 8.031 kB / 338.6 MB, free: 2.648 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00904/0.1536, allocations: 1.978 MB / 340.5 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003662/0.1573, allocations: 1.538 MB / 342.1 MB, free: 15.08 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001643/0.1575, allocations: 118.8 kB / 342.2 MB, free: 14.96 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005449/0.1581, allocations: 151.8 kB / 342.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01316/0.1712, allocations: 6.413 MB / 348.8 MB, free: 7.883 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.244e-05/0.1714, allocations: 27.81 kB / 348.8 MB, free: 7.855 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000344/0.1717, allocations: 87.78 kB / 348.9 MB, free: 7.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002792/0.1745, allocations: 1.371 MB / 350.2 MB, free: 6.395 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01367/0.1882, allocations: 5.681 MB / 355.9 MB, free: 0.7031 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2506/0.4389, allocations: 26.24 MB / 382.2 MB, free: 42.08 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00555/0.4445, allocations: 2.244 MB / 384.4 MB, free: 41.43 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.857e-05/0.4446, allocations: 14.09 kB / 384.4 MB, free: 41.43 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.879e-05/0.4446, allocations: 45.59 kB / 384.5 MB, free: 41.39 MB / 314.7 MB Notification: Performance of pre-optimization done (n=98): time 6.192e-06/0.4447, allocations: 1.25 kB / 384.5 MB, free: 41.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=106): time 0.02689/0.4716, allocations: 8.86 MB / 393.3 MB, free: 37.99 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.4716, allocations: 148.4 kB / 393.5 MB, free: 37.84 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004852/0.4765, allocations: 2.907 MB / 396.4 MB, free: 36.73 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001884/0.4767, allocations: 37.2 kB / 396.4 MB, free: 36.69 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001258/0.478, allocations: 2.061 MB / 398.5 MB, free: 34.86 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004491/0.4785, allocations: 440.9 kB / 398.9 MB, free: 34.51 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002466/0.4788, allocations: 86.84 kB / 399 MB, free: 34.45 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002615/0.479, allocations: 0.4994 MB / 399.5 MB, free: 34 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002714/0.4818, allocations: 1.385 MB / 400.9 MB, free: 33.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004209/0.486, allocations: 4.195 MB / 405.1 MB, free: 28.81 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004321/0.4904, allocations: 2.362 MB / 407.4 MB, free: 27.52 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.512e-05/0.4905, allocations: 28 kB / 407.5 MB, free: 27.49 MB / 314.7 MB Notification: Performance of matching and sorting (n=566) (initialization): time 0.0131/0.5036, allocations: 5.964 MB / 413.4 MB, free: 21.52 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.08e-05/0.5037, allocations: 48 kB / 413.5 MB, free: 21.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001063/0.5038, allocations: 100 kB / 413.6 MB, free: 21.38 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002703/0.5066, allocations: 0.81 MB / 414.4 MB, free: 20.57 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003558/0.5101, allocations: 0.9787 MB / 415.4 MB, free: 19.59 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006388/0.5166, allocations: 4.243 MB / 419.6 MB, free: 15.22 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003792/0.5204, allocations: 243.6 kB / 419.8 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005445/0.521, allocations: 281 kB / 420.1 MB, free: 14.71 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 456 * Number of states: 0 () * Number of discrete variables: 15 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[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 (530): * Single equations (assignments): 526 * 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,77.8%) 10} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002201/0.5232, allocations: 1.367 MB / 421.5 MB, free: 13.33 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004748/0.5237, allocations: 229 kB / 421.7 MB, free: 13.1 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004228/0.5279, allocations: 1.848 MB / 423.6 MB, free: 11.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.056e-05/0.528, allocations: 12 kB / 423.6 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.182e-05/0.528, allocations: 6.875 kB / 423.6 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.776e-05/0.5281, allocations: 7.984 kB / 423.6 MB, free: 11.22 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01048/0.5385, allocations: 4.798 MB / 428.4 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.621e-05/0.5386, allocations: 4 kB / 428.4 MB, free: 6.367 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008087/0.5394, allocations: 131.8 kB / 428.5 MB, free: 6.238 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00247/0.5419, allocations: 0.6536 MB / 429.2 MB, free: 5.582 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001932/0.5421, allocations: 16 kB / 429.2 MB, free: 5.566 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005489/0.5476, allocations: 3.779 MB / 433 MB, free: 1.66 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.104e-06/0.5477, allocations: 5.625 kB / 433 MB, free: 1.656 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007575/0.5553, allocations: 3.692 MB / 436.7 MB, free: 13.93 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001296/0.5566, allocations: 445.9 kB / 437.1 MB, free: 13.47 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000497/0.5572, allocations: 18.64 kB / 437.1 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001402/0.5586, allocations: 59.92 kB / 437.2 MB, free: 13.4 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002326/0.5588, allocations: 51.92 kB / 437.2 MB, free: 13.35 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001167/0.559, allocations: 31.94 kB / 437.2 MB, free: 13.32 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.004207/0.5632, allocations: 1.832 MB / 439.1 MB, free: 11.48 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.421e-06/0.5632, allocations: 64 / 439.1 MB, free: 11.48 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.004676/0.5679, allocations: 0.6599 MB / 439.7 MB, free: 10.82 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (75): * Single equations (assignments): 71 * 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 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005241/0.5685, allocations: 168 kB / 439.9 MB, free: 10.66 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.007312/0.5758, allocations: 3.37 MB / 443.3 MB, free: 7.301 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.345e-06/0.5759, allocations: 0 / 443.3 MB, free: 7.301 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00183/0.5777, allocations: 0.9291 MB / 444.2 MB, free: 6.359 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001564/0.5793, allocations: 237.3 kB / 444.4 MB, free: 6.125 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.014/0.5933, allocations: 6.701 MB / 451.1 MB, free: 15.38 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003873/0.5972, allocations: 2.235 MB / 453.4 MB, free: 13.11 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007886/0.5981, allocations: 199.4 kB / 453.6 MB, free: 12.91 MB / 346.7 MB Notification: Performance of SimCode: time 1.947e-06/0.5981, allocations: 0 / 453.6 MB, free: 12.91 MB / 346.7 MB Notification: Performance of Templates: time 0.08269/0.6808, allocations: 45.64 MB / 499.2 MB, free: 15.24 MB / 394.7 MB