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.Pendulum.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum") Notification: Performance of loadModel(Modelica): time 1.859/1.859, allocations: 171.1 MB / 186.7 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003645/0.0003648, allocations: 16 kB / 233.2 MB, free: 3.043 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07039/0.07078, allocations: 38.77 MB / 271.9 MB, free: 12.19 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.Pendulum): time 0.01778/0.08861, allocations: 11.48 MB / 283.4 MB, free: 0.668 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01004/0.0987, allocations: 3.967 MB / 287.4 MB, free: 12.69 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002034/0.1008, allocations: 47.88 kB / 287.4 MB, free: 12.64 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001802/0.1026, allocations: 0.521 MB / 287.9 MB, free: 12.12 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006495/0.1092, allocations: 1.847 MB / 289.8 MB, free: 10.27 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001525/0.1107, allocations: 431.2 kB / 290.2 MB, free: 9.848 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003416/0.1142, allocations: 1.458 MB / 291.7 MB, free: 8.387 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002692/0.1169, allocations: 1.321 MB / 293 MB, free: 7.031 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001154/0.1181, allocations: 0.5878 MB / 293.6 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001748/0.1199, allocations: 0.845 MB / 294.4 MB, free: 5.594 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003898/0.1203, allocations: 80 kB / 294.5 MB, free: 5.516 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001873/0.1222, allocations: 0.7606 MB / 295.3 MB, free: 4.754 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001382/0.1236, allocations: 0.8727 MB / 296.1 MB, free: 3.879 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007525/0.1244, allocations: 492.1 kB / 296.6 MB, free: 3.391 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004703/0.1291, allocations: 2.97 MB / 299.6 MB, free: 424 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.374e-06/0.1292, allocations: 4 kB / 299.6 MB, free: 420 kB / 250.7 MB Notification: Performance of FrontEnd: time 3.326e-06/0.1292, allocations: 0 / 299.6 MB, free: 420 kB / 250.7 MB Notification: Performance of Transformations before backend: time 7.872e-05/0.1293, allocations: 0 / 299.6 MB, free: 420 kB / 250.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.185/0.3143, allocations: 2.52 MB / 302.1 MB, free: 29.87 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.3143, allocations: 10.28 kB / 302.1 MB, free: 29.87 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009162/0.3235, allocations: 1.968 MB / 304.1 MB, free: 29.7 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003818/0.3274, allocations: 1.534 MB / 305.6 MB, free: 29.25 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002071/0.3276, allocations: 116.8 kB / 305.7 MB, free: 29.24 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008467/0.3285, allocations: 151.1 kB / 305.9 MB, free: 29.24 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01293/0.3414, allocations: 6.413 MB / 312.3 MB, free: 25.6 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.987e-05/0.3416, allocations: 35.69 kB / 312.3 MB, free: 25.58 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005143/0.3421, allocations: 83.55 kB / 312.4 MB, free: 25.55 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002687/0.3448, allocations: 1.379 MB / 313.8 MB, free: 25.02 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0119/0.3568, allocations: 5.687 MB / 319.5 MB, free: 20.06 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03318/0.39, allocations: 26.23 MB / 345.7 MB, free: 9.137 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006119/0.3961, allocations: 2.258 MB / 348 MB, free: 6.734 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.955e-05/0.3963, allocations: 21.17 kB / 348 MB, free: 6.719 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.838e-05/0.3963, allocations: 38.56 kB / 348 MB, free: 6.672 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 5.751e-06/0.3964, allocations: 0 / 348 MB, free: 6.672 MB / 266.7 MB Notification: Performance of matching and sorting (n=106): time 0.03028/0.4266, allocations: 8.862 MB / 356.9 MB, free: 13.61 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001101/0.4268, allocations: 140.5 kB / 357 MB, free: 13.45 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005939/0.4327, allocations: 2.913 MB / 359.9 MB, free: 10.52 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002221/0.433, allocations: 41.7 kB / 360 MB, free: 10.47 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002216/0.4352, allocations: 2.058 MB / 362 MB, free: 8.418 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006974/0.436, allocations: 436 kB / 362.5 MB, free: 7.996 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003412/0.4363, allocations: 84 kB / 362.5 MB, free: 7.914 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0004295/0.4368, allocations: 0.4887 MB / 363 MB, free: 7.414 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003341/0.4401, allocations: 1.386 MB / 364.4 MB, free: 6.02 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006308/0.4465, allocations: 4.196 MB / 368.6 MB, free: 412 kB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005232/0.4518, allocations: 2.369 MB / 371 MB, free: 14.03 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.803e-05/0.4519, allocations: 32 kB / 371 MB, free: 14 MB / 298.7 MB Notification: Performance of matching and sorting (n=566) (initialization): time 0.0162/0.4681, allocations: 5.954 MB / 377 MB, free: 8.039 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001134/0.4683, allocations: 51.95 kB / 377 MB, free: 7.988 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001628/0.4685, allocations: 104 kB / 377.1 MB, free: 7.887 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003219/0.4717, allocations: 0.8141 MB / 377.9 MB, free: 7.07 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004379/0.4761, allocations: 0.9866 MB / 378.9 MB, free: 6.082 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008587/0.4847, allocations: 4.236 MB / 383.2 MB, free: 1.719 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004049/0.4888, allocations: 242.1 kB / 383.4 MB, free: 1.484 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007854/0.4897, allocations: 272 kB / 383.7 MB, free: 1.219 MB / 298.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.003173/0.4929, allocations: 1.376 MB / 385 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006193/0.4935, allocations: 229 kB / 385.3 MB, free: 15.6 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005261/0.4988, allocations: 1.841 MB / 387.1 MB, free: 13.74 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-05/0.4989, allocations: 14.27 kB / 387.1 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/0.4989, allocations: 11.94 kB / 387.1 MB, free: 13.72 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.41e-05/0.4989, allocations: 3.984 kB / 387.1 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01268/0.5116, allocations: 4.809 MB / 391.9 MB, free: 8.844 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.132e-05/0.5117, allocations: 3.984 kB / 391.9 MB, free: 8.84 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008978/0.5126, allocations: 135.9 kB / 392.1 MB, free: 8.707 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002765/0.5154, allocations: 0.6482 MB / 392.7 MB, free: 8.055 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002015/0.5156, allocations: 16 kB / 392.7 MB, free: 8.039 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007284/0.5229, allocations: 3.801 MB / 396.5 MB, free: 4.117 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.879e-06/0.523, allocations: 96 / 396.5 MB, free: 4.117 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008569/0.5316, allocations: 3.677 MB / 400.2 MB, free: 416 kB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00133/0.533, allocations: 447.7 kB / 400.7 MB, free: 15.95 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004617/0.5335, allocations: 19.95 kB / 400.7 MB, free: 15.93 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/0.5349, allocations: 61 kB / 400.7 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002289/0.5351, allocations: 63.92 kB / 400.8 MB, free: 15.81 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001208/0.5353, allocations: 29.02 kB / 400.8 MB, free: 15.78 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.004136/0.5394, allocations: 1.824 MB / 402.6 MB, free: 13.95 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.074e-06/0.5395, allocations: 0 / 402.6 MB, free: 13.95 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.004844/0.5443, allocations: 0.6628 MB / 403.3 MB, free: 13.29 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.000601/0.545, allocations: 165.3 kB / 403.5 MB, free: 13.12 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00772/0.5527, allocations: 3.377 MB / 406.8 MB, free: 9.754 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.165e-06/0.5528, allocations: 0 / 406.8 MB, free: 9.754 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00201/0.5548, allocations: 0.9261 MB / 407.8 MB, free: 8.816 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001759/0.5566, allocations: 232 kB / 408 MB, free: 8.59 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01425/0.5709, allocations: 6.696 MB / 414.7 MB, free: 1.844 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003802/0.5747, allocations: 2.239 MB / 416.9 MB, free: 15.57 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008299/0.5756, allocations: 199.4 kB / 417.1 MB, free: 15.38 MB / 346.7 MB Notification: Performance of SimCode: time 1.691e-06/0.5756, allocations: 0 / 417.1 MB, free: 15.38 MB / 346.7 MB Notification: Performance of Templates: time 0.2657/0.8414, allocations: 45.63 MB / 462.8 MB, free: 92.81 MB / 346.7 MB