Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadModel(Modelica): time 1.625/1.625, allocations: 171.2 MB / 187.3 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003511, allocations: 16 kB / 233.8 MB, free: 3.047 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08206/0.08244, allocations: 38.76 MB / 272.6 MB, free: 12.2 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3573/0.4398, allocations: 81.03 MB / 353.6 MB, free: 9.062 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002922/0.4402, allocations: 94.12 kB / 353.7 MB, free: 9.012 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2599/0.7001, allocations: 58.19 MB / 411.9 MB, free: 4.457 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.455e-06/0.7002, allocations: 4 kB / 411.9 MB, free: 4.453 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001705/0.7004, allocations: 48 kB / 411.9 MB, free: 4.406 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.01099/0.7114, allocations: 2.758 MB / 414.7 MB, free: 1.586 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.7114, allocations: 8.031 kB / 414.7 MB, free: 1.578 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01463/0.7261, allocations: 1.915 MB / 416.6 MB, free: 15.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01359/0.7397, allocations: 3.412 MB / 420 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002963/0.74, allocations: 188.7 kB / 420.2 MB, free: 12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001641/0.7417, allocations: 239.9 kB / 420.4 MB, free: 11.77 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02038/0.7621, allocations: 6.862 MB / 427.3 MB, free: 4.207 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001494/0.7623, allocations: 47.58 kB / 427.3 MB, free: 4.16 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008775/0.7632, allocations: 123.9 kB / 427.5 MB, free: 4.039 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001605/0.7648, allocations: 0.7189 MB / 428.2 MB, free: 3.324 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2472/1.012, allocations: 5.984 MB / 434.2 MB, free: 81.45 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04601/1.058, allocations: 31.12 MB / 465.3 MB, free: 62.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009371/1.068, allocations: 2.621 MB / 467.9 MB, free: 61.49 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01348/1.081, allocations: 5.138 MB / 473 MB, free: 59.71 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.667e-05/1.081, allocations: 46.7 kB / 473.1 MB, free: 59.67 MB / 346.7 MB Notification: Performance of pre-optimization done (n=97): time 4.93e-06/1.081, allocations: 0 / 473.1 MB, free: 59.67 MB / 346.7 MB Notification: Performance of matching and sorting (n=105): time 0.03935/1.121, allocations: 9.998 MB / 483.1 MB, free: 55.85 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/1.121, allocations: 151.3 kB / 483.2 MB, free: 55.69 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00548/1.126, allocations: 2.703 MB / 485.9 MB, free: 54.75 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003358/1.127, allocations: 41.55 kB / 486 MB, free: 54.7 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00149/1.128, allocations: 2.031 MB / 488 MB, free: 53.17 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000665/1.129, allocations: 426.2 kB / 488.4 MB, free: 52.87 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003748/1.129, allocations: 85.41 kB / 488.5 MB, free: 52.81 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000252/1.129, allocations: 487.6 kB / 489 MB, free: 52.43 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003776/1.133, allocations: 1.441 MB / 490.4 MB, free: 51.99 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005866/1.139, allocations: 4.035 MB / 494.5 MB, free: 48.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005882/1.145, allocations: 2.352 MB / 496.8 MB, free: 47.25 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.933e-05/1.145, allocations: 26.56 kB / 496.8 MB, free: 47.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=529) (initialization): time 0.01818/1.163, allocations: 5.921 MB / 0.491 GB, free: 45.2 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.158e-05/1.164, allocations: 45.56 kB / 0.491 GB, free: 45.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001372/1.164, allocations: 91.38 kB / 0.4911 GB, free: 45.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004119/1.168, allocations: 0.8237 MB / 0.4919 GB, free: 45.12 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005517/1.173, allocations: 0.9347 MB / 0.4928 GB, free: 45 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009118/1.183, allocations: 4.392 MB / 0.4971 GB, free: 42.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005068/1.188, allocations: 284.9 kB / 0.4974 GB, free: 42.34 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009669/1.189, allocations: 258.8 kB / 0.4976 GB, free: 42.09 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.003782/1.192, allocations: 1.355 MB / 0.499 GB, free: 40.89 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006146/1.193, allocations: 225.1 kB / 0.4992 GB, free: 40.67 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007281/1.2, allocations: 2.132 MB / 0.5012 GB, free: 39.05 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.103e-05/1.201, allocations: 16 kB / 0.5013 GB, free: 39.04 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.093e-05/1.201, allocations: 0 / 0.5013 GB, free: 39.04 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.799e-05/1.201, allocations: 15.38 kB / 0.5013 GB, free: 39.03 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01632/1.217, allocations: 5.076 MB / 0.5062 GB, free: 34.99 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.409e-05/1.217, allocations: 0 / 0.5062 GB, free: 34.99 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001469/1.218, allocations: 150.5 kB / 0.5064 GB, free: 34.87 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003768/1.222, allocations: 0.6807 MB / 0.507 GB, free: 34.45 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003334/1.223, allocations: 15.88 kB / 0.5071 GB, free: 34.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008111/1.231, allocations: 3.948 MB / 0.5109 GB, free: 30.94 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.378e-06/1.231, allocations: 4 kB / 0.5109 GB, free: 30.94 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01052/1.241, allocations: 4.049 MB / 0.5149 GB, free: 27.54 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001575/1.243, allocations: 456.3 kB / 0.5153 GB, free: 27.11 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007609/1.244, allocations: 16 kB / 0.5153 GB, free: 27.09 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002187/1.246, allocations: 79.69 kB / 0.5154 GB, free: 27.04 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003536/1.246, allocations: 61.05 kB / 0.5155 GB, free: 27 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001392/1.247, allocations: 31.52 kB / 0.5155 GB, free: 26.98 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004347/1.251, allocations: 1.696 MB / 0.5171 GB, free: 25.5 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.91e-07/1.251, allocations: 0 / 0.5171 GB, free: 25.5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00481/1.256, allocations: 0.6786 MB / 0.5178 GB, free: 24.83 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.0006141/1.256, allocations: 185.1 kB / 0.518 GB, free: 24.66 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.007987/1.264, allocations: 3.458 MB / 0.5214 GB, free: 21.2 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.154e-06/1.265, allocations: 0 / 0.5214 GB, free: 21.2 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002129/1.267, allocations: 1.046 MB / 0.5224 GB, free: 20.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001968/1.269, allocations: 235.8 kB / 0.5226 GB, free: 19.92 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01454/1.283, allocations: 6.926 MB / 0.5294 GB, free: 12.96 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003489/1.287, allocations: 2.287 MB / 0.5316 GB, free: 10.65 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001041/1.288, allocations: 195.4 kB / 0.5318 GB, free: 10.46 MB / 346.7 MB Notification: Performance of SimCode: time 2.044e-06/1.288, allocations: 0 / 0.5318 GB, free: 10.46 MB / 346.7 MB Notification: Performance of Templates: time 0.3386/1.626, allocations: 46.26 MB / 0.577 GB, free: 80.49 MB / 362.7 MB