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.UserDefinedGravityField.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.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadModel(Modelica): time 1.591/1.591, allocations: 171.2 MB / 186.7 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003523/0.0003525, allocations: 8 kB / 233.2 MB, free: 3.043 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08648/0.08686, allocations: 38.77 MB / 271.9 MB, free: 12.19 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.02097/0.1079, allocations: 14.81 MB / 286.7 MB, free: 13.33 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01129/0.1192, allocations: 4.642 MB / 291.4 MB, free: 8.676 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002546/0.1218, allocations: 71.75 kB / 291.5 MB, free: 8.605 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002178/0.124, allocations: 0.6999 MB / 292.2 MB, free: 7.902 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007778/0.1318, allocations: 2.283 MB / 294.4 MB, free: 5.613 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001777/0.1336, allocations: 483.1 kB / 294.9 MB, free: 5.141 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00324/0.1369, allocations: 1.474 MB / 296.4 MB, free: 3.664 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002877/0.1398, allocations: 1.557 MB / 297.9 MB, free: 2.082 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001169/0.141, allocations: 0.6346 MB / 298.6 MB, free: 1.445 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001396/0.1425, allocations: 0.8488 MB / 299.4 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003418/0.1428, allocations: 87.94 kB / 299.5 MB, free: 0.5078 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2272/0.3701, allocations: 0.7769 MB / 300.3 MB, free: 10.08 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001384/0.3715, allocations: 0.9077 MB / 301.2 MB, free: 10.08 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007119/0.3722, allocations: 0.4983 MB / 301.7 MB, free: 10.05 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005142/0.3774, allocations: 3.094 MB / 304.8 MB, free: 9.816 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.3774, allocations: 1.281 kB / 304.8 MB, free: 9.816 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.418e-06/0.3774, allocations: 3.062 kB / 304.8 MB, free: 9.816 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.00011/0.3776, allocations: 0 / 304.8 MB, free: 9.816 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 948 * Number of variables: 948 Notification: Performance of Generate backend data structure: time 0.006918/0.3845, allocations: 2.624 MB / 307.4 MB, free: 8.531 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.3845, allocations: 9.156 kB / 307.4 MB, free: 8.531 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008169/0.3927, allocations: 1.898 MB / 309.3 MB, free: 8.359 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003806/0.3966, allocations: 1.618 MB / 310.9 MB, free: 7.969 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001604/0.3968, allocations: 125.1 kB / 311.1 MB, free: 7.965 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000794/0.3976, allocations: 164.5 kB / 311.2 MB, free: 7.961 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01328/0.4109, allocations: 6.596 MB / 317.8 MB, free: 6.07 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001015/0.411, allocations: 26.94 kB / 317.8 MB, free: 6.07 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004031/0.4114, allocations: 81.48 kB / 317.9 MB, free: 6.07 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00251/0.414, allocations: 1.41 MB / 319.3 MB, free: 5.754 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01332/0.4273, allocations: 5.863 MB / 325.2 MB, free: 4.266 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04052/0.4679, allocations: 25.72 MB / 350.9 MB, free: 12.38 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007935/0.4759, allocations: 2.581 MB / 353.5 MB, free: 9.66 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01158/0.4875, allocations: 4.841 MB / 358.3 MB, free: 4.758 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.34e-05/0.4876, allocations: 45.94 kB / 358.4 MB, free: 4.707 MB / 282.7 MB Notification: Performance of pre-optimization done (n=97): time 6.079e-06/0.4876, allocations: 4 kB / 358.4 MB, free: 4.703 MB / 282.7 MB Notification: Performance of matching and sorting (n=105): time 0.03546/0.5231, allocations: 10.07 MB / 368.5 MB, free: 10.47 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001109/0.5232, allocations: 148.1 kB / 368.6 MB, free: 10.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006562/0.5298, allocations: 2.801 MB / 371.4 MB, free: 7.477 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002975/0.5301, allocations: 41.55 kB / 371.4 MB, free: 7.434 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002355/0.5325, allocations: 2.028 MB / 373.5 MB, free: 5.418 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007904/0.5333, allocations: 428.9 kB / 373.9 MB, free: 5.004 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004965/0.5339, allocations: 80 kB / 374 MB, free: 4.926 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0004814/0.5344, allocations: 491.8 kB / 374.4 MB, free: 4.434 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00383/0.5382, allocations: 1.421 MB / 375.9 MB, free: 3.008 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006599/0.5449, allocations: 4.022 MB / 379.9 MB, free: 13.72 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005454/0.5504, allocations: 2.331 MB / 382.2 MB, free: 11.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.244e-05/0.5505, allocations: 28 kB / 382.2 MB, free: 11.45 MB / 314.7 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.01683/0.5673, allocations: 5.873 MB / 388.1 MB, free: 5.797 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.5675, allocations: 51.23 kB / 388.2 MB, free: 5.75 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001381/0.5676, allocations: 94.19 kB / 388.3 MB, free: 5.66 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003417/0.5711, allocations: 0.8287 MB / 389.1 MB, free: 4.828 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004315/0.5754, allocations: 0.9357 MB / 390 MB, free: 3.891 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008934/0.5844, allocations: 4.426 MB / 394.5 MB, free: 15.33 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004282/0.5887, allocations: 243.6 kB / 394.7 MB, free: 15.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009532/0.5897, allocations: 257.8 kB / 394.9 MB, free: 14.84 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 422 * Number of states: 0 () * Number of discrete variables: 18 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (495): * Single equations (assignments): 491 * 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%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003904/0.5937, allocations: 1.372 MB / 396.3 MB, free: 13.46 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006727/0.5944, allocations: 226.8 kB / 396.5 MB, free: 13.24 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006399/0.6008, allocations: 2.118 MB / 398.7 MB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.863e-05/0.6009, allocations: 19.67 kB / 398.7 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-05/0.6009, allocations: 4.875 kB / 398.7 MB, free: 11.08 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.647e-05/0.6009, allocations: 11.97 kB / 398.7 MB, free: 11.07 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01499/0.6159, allocations: 5.074 MB / 403.8 MB, free: 5.934 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.328e-05/0.616, allocations: 7.953 kB / 403.8 MB, free: 5.926 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/0.6171, allocations: 159.7 kB / 403.9 MB, free: 5.77 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002958/0.6201, allocations: 0.6804 MB / 404.6 MB, free: 5.086 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002612/0.6204, allocations: 20.88 kB / 404.6 MB, free: 5.066 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007714/0.6281, allocations: 3.99 MB / 408.6 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.469e-06/0.6282, allocations: 0 / 408.6 MB, free: 0.9492 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0093/0.6375, allocations: 4.049 MB / 412.7 MB, free: 12.88 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001448/0.639, allocations: 461.9 kB / 413.1 MB, free: 12.4 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006074/0.6396, allocations: 27.92 kB / 413.1 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001623/0.6413, allocations: 67.89 kB / 413.2 MB, free: 12.31 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003058/0.6416, allocations: 56.33 kB / 413.3 MB, free: 12.26 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001432/0.6417, allocations: 36.05 kB / 413.3 MB, free: 12.22 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004363/0.6461, allocations: 1.763 MB / 415.1 MB, free: 10.45 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.178e-06/0.6462, allocations: 0 / 415.1 MB, free: 10.45 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005151/0.6513, allocations: 0.6835 MB / 415.7 MB, free: 9.766 MB / 346.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 (74): * Single equations (assignments): 70 * 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.0007249/0.6521, allocations: 198 kB / 415.9 MB, free: 9.574 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00804/0.6601, allocations: 3.434 MB / 419.4 MB, free: 6.148 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 5.276e-06/0.6602, allocations: 2.297 kB / 419.4 MB, free: 6.148 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002194/0.6624, allocations: 1.036 MB / 420.4 MB, free: 5.098 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/0.6642, allocations: 241 kB / 420.7 MB, free: 4.863 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01541/0.6797, allocations: 6.927 MB / 427.6 MB, free: 13.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004541/0.6842, allocations: 2.287 MB / 429.9 MB, free: 11.58 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009105/0.6852, allocations: 191.4 kB / 430.1 MB, free: 11.39 MB / 362.7 MB Notification: Performance of SimCode: time 2.124e-06/0.6852, allocations: 0 / 430.1 MB, free: 11.39 MB / 362.7 MB Notification: Performance of Templates: time 0.265/0.9502, allocations: 46.77 MB / 476.8 MB, free: 106.2 MB / 362.7 MB