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.61/1.61, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.813e-05/2.84e-05, allocations: 4 kB / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2096/0.2097, allocations: 38.77 MB / 267.6 MB, free: 9.449 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1229/0.3326, allocations: 80.96 MB / 348.6 MB, free: 8.363 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002978/0.3329, allocations: 87.94 kB / 348.6 MB, free: 8.277 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4123/0.7452, allocations: 57.71 MB / 406.4 MB, free: 40 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.083e-06/0.7453, allocations: 0 / 406.4 MB, free: 40 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0001667/0.7455, allocations: 55.94 kB / 406.4 MB, free: 39.95 MB / 298.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.01215/0.7577, allocations: 2.615 MB / 409 MB, free: 37.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.445e-05/0.7578, allocations: 12.03 kB / 409 MB, free: 37.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02061/0.7784, allocations: 1.919 MB / 411 MB, free: 35.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.018/0.7965, allocations: 3.4 MB / 414.4 MB, free: 31.88 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003387/0.7969, allocations: 188.7 kB / 414.5 MB, free: 31.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001667/0.7986, allocations: 235.9 kB / 414.8 MB, free: 31.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02569/0.8243, allocations: 6.765 MB / 421.5 MB, free: 24 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002575/0.8246, allocations: 47.58 kB / 421.6 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001498/0.8262, allocations: 119.9 kB / 421.7 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001217/0.8274, allocations: 0.715 MB / 422.4 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01237/0.8398, allocations: 5.846 MB / 428.3 MB, free: 17.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06979/0.9097, allocations: 31.12 MB / 459.4 MB, free: 1.145 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01793/0.9277, allocations: 2.621 MB / 462 MB, free: 14.37 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005214/0.9329, allocations: 1.211 MB / 463.2 MB, free: 13.15 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01746/0.9505, allocations: 5.141 MB / 468.4 MB, free: 7.852 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.392e-05/0.9506, allocations: 38.56 kB / 468.4 MB, free: 7.805 MB / 330.7 MB Notification: Performance of pre-optimization done (n=97): time 9.226e-06/0.9506, allocations: 4 kB / 468.4 MB, free: 7.801 MB / 330.7 MB Notification: Performance of matching and sorting (n=105): time 0.04811/0.9988, allocations: 8.015 MB / 476.4 MB, free: 15.66 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001444/0.999, allocations: 140.9 kB / 476.5 MB, free: 15.49 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01052/1.009, allocations: 2.372 MB / 478.9 MB, free: 13.09 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003867/1.01, allocations: 41.7 kB / 479 MB, free: 13.05 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003905/1.014, allocations: 2.024 MB / 481 MB, free: 11 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007089/1.015, allocations: 434.7 kB / 481.4 MB, free: 10.57 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004084/1.015, allocations: 80 kB / 481.5 MB, free: 10.49 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0004371/1.016, allocations: 487.7 kB / 482 MB, free: 10 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003179/1.019, allocations: 1.386 MB / 483.3 MB, free: 8.609 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005742/1.024, allocations: 3.959 MB / 487.3 MB, free: 3.348 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00504/1.03, allocations: 2.325 MB / 489.6 MB, free: 1.023 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.571e-05/1.03, allocations: 28 kB / 489.7 MB, free: 0.9961 MB / 346.7 MB Notification: Performance of matching and sorting (n=529) (initialization): time 0.243/1.273, allocations: 5.792 MB / 495.5 MB, free: 86.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.883e-05/1.273, allocations: 45.19 kB / 495.5 MB, free: 86.84 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001154/1.273, allocations: 93.62 kB / 495.6 MB, free: 86.84 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003033/1.276, allocations: 0.8201 MB / 496.4 MB, free: 86.83 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004071/1.28, allocations: 0.9387 MB / 497.3 MB, free: 86.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00709/1.287, allocations: 4.284 MB / 0.4899 GB, free: 85.37 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004625/1.292, allocations: 280.3 kB / 0.4901 GB, free: 85.37 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000859/1.293, allocations: 255.1 kB / 0.4904 GB, free: 85.37 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 420 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (493): * Single equations (assignments): 489 * 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.0007991/1.294, allocations: 420 kB / 0.4908 GB, free: 85.18 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000531/1.294, allocations: 223.9 kB / 0.491 GB, free: 85.18 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005633/1.3, allocations: 2.125 MB / 0.4931 GB, free: 85.09 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.421e-05/1.3, allocations: 11.81 kB / 0.4931 GB, free: 85.09 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.104e-05/1.3, allocations: 3.625 kB / 0.4931 GB, free: 85.09 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.933e-05/1.3, allocations: 3.656 kB / 0.4931 GB, free: 85.09 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01251/1.312, allocations: 5.076 MB / 0.498 GB, free: 84.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.865e-05/1.313, allocations: 0 / 0.498 GB, free: 84.62 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00104/1.314, allocations: 143.6 kB / 0.4982 GB, free: 84.62 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002693/1.316, allocations: 0.6781 MB / 0.4988 GB, free: 84.61 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002259/1.317, allocations: 25.84 kB / 0.4989 GB, free: 84.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006151/1.323, allocations: 3.838 MB / 0.5026 GB, free: 83.29 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.03e-06/1.323, allocations: 3.875 kB / 0.5026 GB, free: 83.29 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00813/1.331, allocations: 4.118 MB / 0.5066 GB, free: 81.72 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001182/1.332, allocations: 466 kB / 0.5071 GB, free: 81.44 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003402/1.333, allocations: 19.8 kB / 0.5071 GB, free: 81.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001467/1.334, allocations: 79.44 kB / 0.5072 GB, free: 81.42 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002235/1.334, allocations: 59.31 kB / 0.5072 GB, free: 81.41 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001247/1.334, allocations: 36.98 kB / 0.5073 GB, free: 81.4 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003266/1.338, allocations: 1.642 MB / 0.5089 GB, free: 80.8 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.108e-06/1.338, allocations: 0 / 0.5089 GB, free: 80.8 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004593/1.342, allocations: 0.6728 MB / 0.5095 GB, free: 80.72 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 () * 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.0004924/1.343, allocations: 184.5 kB / 0.5097 GB, free: 80.62 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.006544/1.349, allocations: 3.388 MB / 0.513 GB, free: 79.42 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/1.349, allocations: 3.781 kB / 0.513 GB, free: 79.42 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001865/1.351, allocations: 1.026 MB / 0.514 GB, free: 79 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001695/1.353, allocations: 236 kB / 0.5143 GB, free: 78.88 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01024/1.363, allocations: 4.84 MB / 0.519 GB, free: 75.85 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002907/1.366, allocations: 2.291 MB / 0.5212 GB, free: 74.04 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008031/1.367, allocations: 194.1 kB / 0.5214 GB, free: 73.86 MB / 346.7 MB Notification: Performance of SimCode: time 2.73e-06/1.367, allocations: 0 / 0.5214 GB, free: 73.86 MB / 346.7 MB Notification: Performance of Templates: time 0.0656/1.433, allocations: 46.26 MB / 0.5666 GB, free: 33.11 MB / 346.7 MB