Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadModel(Modelica): time 1.828/1.828, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003635/0.0003635, allocations: 8 kB / 233.9 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08673/0.08711, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3985/0.4857, allocations: 81.04 MB / 353.7 MB, free: 8.461 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000331/0.4861, allocations: 96.11 kB / 353.8 MB, free: 8.406 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2648/0.7509, allocations: 58.19 MB / 412 MB, free: 3.828 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.377e-06/0.751, allocations: 0 / 412 MB, free: 3.828 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001519/0.7512, allocations: 48 kB / 412 MB, free: 3.781 MB / 330.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.01174/0.7629, allocations: 2.754 MB / 414.8 MB, free: 0.9688 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.763, allocations: 8.031 kB / 414.8 MB, free: 0.9609 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01512/0.7781, allocations: 1.927 MB / 416.7 MB, free: 15.03 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01454/0.7927, allocations: 3.412 MB / 420.1 MB, free: 11.56 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003079/0.7931, allocations: 184.8 kB / 420.3 MB, free: 11.38 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001658/0.7947, allocations: 239.9 kB / 420.5 MB, free: 11.14 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02127/0.816, allocations: 6.85 MB / 427.4 MB, free: 3.594 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001611/0.8163, allocations: 39.59 kB / 427.4 MB, free: 3.555 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009342/0.8172, allocations: 119.9 kB / 427.5 MB, free: 3.438 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001875/0.8191, allocations: 0.7306 MB / 428.3 MB, free: 2.711 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2767/1.096, allocations: 5.975 MB / 434.2 MB, free: 81.7 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05708/1.153, allocations: 31.13 MB / 465.4 MB, free: 62.41 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009486/1.163, allocations: 2.624 MB / 468 MB, free: 61.74 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01307/1.176, allocations: 5.131 MB / 473.1 MB, free: 59.72 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.988e-05/1.176, allocations: 48.28 kB / 473.2 MB, free: 59.68 MB / 346.7 MB Notification: Performance of pre-optimization done (n=97): time 5.22e-06/1.176, allocations: 0 / 473.2 MB, free: 59.68 MB / 346.7 MB Notification: Performance of matching and sorting (n=105): time 0.03984/1.216, allocations: 10.01 MB / 483.2 MB, free: 55.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.14e-05/1.216, allocations: 144.4 kB / 483.3 MB, free: 55.69 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005906/1.222, allocations: 2.706 MB / 486 MB, free: 54.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003196/1.222, allocations: 38.62 kB / 486 MB, free: 54.71 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001766/1.224, allocations: 2.043 MB / 488.1 MB, free: 53.2 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006994/1.225, allocations: 434.4 kB / 488.5 MB, free: 52.9 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004888/1.225, allocations: 81.53 kB / 488.6 MB, free: 52.84 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002753/1.225, allocations: 485 kB / 489.1 MB, free: 52.46 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003989/1.229, allocations: 1.442 MB / 490.5 MB, free: 52.02 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005662/1.235, allocations: 4.025 MB / 494.5 MB, free: 48.08 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005602/1.241, allocations: 2.348 MB / 496.9 MB, free: 47.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.764e-05/1.241, allocations: 27.44 kB / 496.9 MB, free: 47.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=529) (initialization): time 0.01787/1.259, allocations: 5.982 MB / 0.4911 GB, free: 45.18 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.516e-05/1.259, allocations: 44.12 kB / 0.4911 GB, free: 45.18 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001359/1.259, allocations: 92.75 kB / 0.4912 GB, free: 45.18 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004096/1.263, allocations: 0.8258 MB / 0.492 GB, free: 45.09 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005715/1.269, allocations: 0.9336 MB / 0.493 GB, free: 44.98 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009058/1.278, allocations: 4.397 MB / 0.4972 GB, free: 41.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004908/1.283, allocations: 276.6 kB / 0.4975 GB, free: 41.74 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009396/1.284, allocations: 259.2 kB / 0.4978 GB, free: 41.49 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 () * Number of clocked 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.003346/1.287, allocations: 1.36 MB / 0.4991 GB, free: 40.29 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005875/1.288, allocations: 236.6 kB / 0.4993 GB, free: 40.06 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007023/1.295, allocations: 2.123 MB / 0.5014 GB, free: 38.45 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.167e-05/1.295, allocations: 14.03 kB / 0.5014 GB, free: 38.44 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/1.295, allocations: 4 kB / 0.5014 GB, free: 38.44 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.536e-05/1.295, allocations: 7.938 kB / 0.5014 GB, free: 38.43 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01529/1.31, allocations: 5.084 MB / 0.5064 GB, free: 34.38 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.388e-05/1.311, allocations: 0 / 0.5064 GB, free: 34.38 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001404/1.312, allocations: 154.5 kB / 0.5065 GB, free: 34.26 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003622/1.316, allocations: 0.6685 MB / 0.5072 GB, free: 33.85 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002728/1.316, allocations: 20 kB / 0.5072 GB, free: 33.83 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00777/1.324, allocations: 3.94 MB / 0.511 GB, free: 30.34 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/1.324, allocations: 0 / 0.511 GB, free: 30.34 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01041/1.334, allocations: 4.049 MB / 0.515 GB, free: 26.94 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001599/1.336, allocations: 462.6 kB / 0.5154 GB, free: 26.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006445/1.336, allocations: 17.17 kB / 0.5155 GB, free: 26.48 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001961/1.338, allocations: 85.02 kB / 0.5155 GB, free: 26.43 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003215/1.339, allocations: 54.95 kB / 0.5156 GB, free: 26.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001278/1.339, allocations: 32.41 kB / 0.5156 GB, free: 26.37 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004207/1.343, allocations: 1.699 MB / 0.5173 GB, free: 24.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 6.61e-07/1.343, allocations: 4 kB / 0.5173 GB, free: 24.81 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.004938/1.348, allocations: 0.6722 MB / 0.5179 GB, free: 24.15 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.0006149/1.349, allocations: 180.7 kB / 0.5181 GB, free: 23.98 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.00816/1.357, allocations: 3.457 MB / 0.5215 GB, free: 20.53 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.472e-06/1.357, allocations: 0 / 0.5215 GB, free: 20.53 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002224/1.359, allocations: 1.039 MB / 0.5225 GB, free: 19.48 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001942/1.361, allocations: 245.2 kB / 0.5227 GB, free: 19.24 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02048/1.382, allocations: 6.637 MB / 0.5292 GB, free: 12.58 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003572/1.385, allocations: 2.282 MB / 0.5314 GB, free: 10.27 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.005423/1.391, allocations: 1.309 MB / 0.5327 GB, free: 8.965 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008375/1.392, allocations: 165.3 kB / 0.5329 GB, free: 8.805 MB / 346.7 MB Notification: Performance of SimCode: time 1.112e-06/1.392, allocations: 0 / 0.5329 GB, free: 8.805 MB / 346.7 MB Notification: Performance of Templates: time 0.07058/1.462, allocations: 22.25 MB / 0.5546 GB, free: 2.938 MB / 362.7 MB