Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadModel(Modelica): time 1.845/1.845, allocations: 194.9 MB / 212.3 MB, free: 3.004 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000341/0.0003415, allocations: 8 kB / 264.5 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09075/0.09111, allocations: 44.51 MB / 309 MB, free: 1.039 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4125/0.5037, allocations: 86.78 MB / 395.8 MB, free: 14.81 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.504, allocations: 96.2 kB / 395.9 MB, free: 14.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2281/0.7322, allocations: 58.17 MB / 454 MB, free: 15.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.7322, allocations: 0 / 454 MB, free: 15.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001177/0.7323, allocations: 48 kB / 454.1 MB, free: 15.47 MB / 346.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.01004/0.7424, allocations: 2.754 MB / 456.8 MB, free: 12.89 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.7425, allocations: 8.031 kB / 456.8 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01434/0.7568, allocations: 1.93 MB / 458.8 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01301/0.7699, allocations: 3.412 MB / 462.2 MB, free: 8.133 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002387/0.7701, allocations: 187.6 kB / 462.4 MB, free: 8.023 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001196/0.7714, allocations: 246.2 kB / 462.6 MB, free: 7.867 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01823/0.7896, allocations: 6.857 MB / 469.5 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001434/0.7898, allocations: 39.69 kB / 469.5 MB, free: 0.5117 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006195/0.7904, allocations: 127 kB / 469.6 MB, free: 420 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001603/0.792, allocations: 0.7189 MB / 470.3 MB, free: 15.69 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01791/0.81, allocations: 5.993 MB / 476.3 MB, free: 9.691 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04772/0.8578, allocations: 31.14 MB / 0.4956 GB, free: 9.676 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009923/0.8677, allocations: 2.615 MB / 0.4981 GB, free: 6.91 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01405/0.8818, allocations: 5.147 MB / 0.5032 GB, free: 1.633 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.8819, allocations: 42.56 kB / 0.5032 GB, free: 1.582 MB / 394.7 MB Notification: Performance of pre-optimization done (n=97): time 4.448e-06/0.8819, allocations: 3.938 kB / 0.5032 GB, free: 1.578 MB / 394.7 MB Notification: Performance of matching and sorting (n=105): time 0.04138/0.9233, allocations: 9.991 MB / 0.513 GB, free: 7.391 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.407e-05/0.9235, allocations: 141 kB / 0.5131 GB, free: 7.223 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006023/0.9295, allocations: 2.706 MB / 0.5157 GB, free: 4.496 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003053/0.9298, allocations: 41.7 kB / 0.5158 GB, free: 4.449 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001817/0.9317, allocations: 2.028 MB / 0.5178 GB, free: 2.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006217/0.9323, allocations: 430.5 kB / 0.5182 GB, free: 2.012 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002888/0.9326, allocations: 80 kB / 0.5182 GB, free: 1.934 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003412/0.933, allocations: 487.7 kB / 0.5187 GB, free: 1.445 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2602/1.193, allocations: 1.441 MB / 0.5201 GB, free: 111.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006331/1.2, allocations: 4.037 MB / 0.5241 GB, free: 108.1 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006125/1.206, allocations: 2.347 MB / 0.5264 GB, free: 108.1 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.788e-05/1.206, allocations: 29.22 kB / 0.5264 GB, free: 108.1 MB / 410.7 MB Notification: Performance of matching and sorting (n=529) (initialization): time 0.01829/1.224, allocations: 5.92 MB / 0.5322 GB, free: 107.8 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.911e-05/1.224, allocations: 44.72 kB / 0.5322 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001455/1.225, allocations: 95.58 kB / 0.5323 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004081/1.229, allocations: 0.821 MB / 0.5331 GB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005342/1.234, allocations: 0.9418 MB / 0.534 GB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008703/1.243, allocations: 4.389 MB / 0.5383 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004799/1.248, allocations: 282.6 kB / 0.5386 GB, free: 106.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005333/1.248, allocations: 259.5 kB / 0.5388 GB, free: 106.3 MB / 410.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.002744/1.251, allocations: 1.357 MB / 0.5401 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004967/1.251, allocations: 231.3 kB / 0.5404 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006929/1.258, allocations: 2.126 MB / 0.5424 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.798e-05/1.258, allocations: 12.89 kB / 0.5425 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/1.258, allocations: 7.594 kB / 0.5425 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.826e-05/1.258, allocations: 8.266 kB / 0.5425 GB, free: 106 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01409/1.273, allocations: 5.079 MB / 0.5474 GB, free: 105.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.271e-05/1.273, allocations: 0 / 0.5474 GB, free: 105.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001276/1.274, allocations: 140.4 kB / 0.5476 GB, free: 105.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003542/1.278, allocations: 0.6805 MB / 0.5482 GB, free: 105.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001286/1.278, allocations: 23.33 kB / 0.5482 GB, free: 105.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007603/1.285, allocations: 3.946 MB / 0.5521 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/1.285, allocations: 0 / 0.5521 GB, free: 103.5 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009632/1.295, allocations: 4.053 MB / 0.5561 GB, free: 102.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001248/1.296, allocations: 459.6 kB / 0.5565 GB, free: 101.8 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004509/1.297, allocations: 15.38 kB / 0.5565 GB, free: 101.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001741/1.298, allocations: 80.19 kB / 0.5566 GB, free: 101.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002257/1.299, allocations: 59.42 kB / 0.5566 GB, free: 101.8 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001269/1.299, allocations: 35.25 kB / 0.5567 GB, free: 101.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003583/1.302, allocations: 1.698 MB / 0.5583 GB, free: 101.2 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.51e-07/1.302, allocations: 0 / 0.5583 GB, free: 101.2 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004368/1.307, allocations: 0.6687 MB / 0.559 GB, free: 101.1 MB / 410.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.0005097/1.307, allocations: 193.8 kB / 0.5592 GB, free: 101 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007673/1.315, allocations: 3.464 MB / 0.5626 GB, free: 99.78 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/1.315, allocations: 0 / 0.5626 GB, free: 99.78 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002042/1.317, allocations: 1.037 MB / 0.5636 GB, free: 99.34 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001752/1.319, allocations: 234.6 kB / 0.5638 GB, free: 99.23 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01367/1.333, allocations: 6.916 MB / 0.5705 GB, free: 95.71 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002852/1.336, allocations: 2.292 MB / 0.5728 GB, free: 94.68 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001002/1.337, allocations: 193.8 kB / 0.573 GB, free: 94.66 MB / 410.7 MB Notification: Performance of SimCode: time 1.142e-06/1.337, allocations: 0 / 0.573 GB, free: 94.66 MB / 410.7 MB Notification: Performance of Templates: time 0.08072/1.417, allocations: 46.25 MB / 0.6181 GB, free: 59.41 MB / 410.7 MB