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.784/1.784, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003411/0.0003408, allocations: 8 kB / 233.9 MB, free: 2.383 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07931/0.07967, allocations: 38.78 MB / 272.6 MB, free: 11.52 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.02335/0.1031, allocations: 14.81 MB / 287.4 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.01202/0.1151, allocations: 4.634 MB / 292.1 MB, free: 8.016 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002136/0.1173, allocations: 71.81 kB / 292.2 MB, free: 7.945 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001905/0.1193, allocations: 0.696 MB / 292.8 MB, free: 7.246 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008065/0.1274, allocations: 2.283 MB / 295.1 MB, free: 4.957 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001854/0.1292, allocations: 487.1 kB / 295.6 MB, free: 4.48 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.003504/0.1328, allocations: 1.474 MB / 297.1 MB, free: 3.004 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002902/0.1357, allocations: 1.557 MB / 298.6 MB, free: 1.422 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001115/0.1368, allocations: 0.6307 MB / 299.3 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2151/0.3519, allocations: 0.8471 MB / 300.1 MB, free: 10.28 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006031/0.3526, allocations: 82.91 kB / 300.2 MB, free: 10.28 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002304/0.3549, allocations: 0.7764 MB / 301 MB, free: 10.28 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001385/0.3563, allocations: 0.9108 MB / 301.9 MB, free: 10.28 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000696/0.357, allocations: 0.4961 MB / 302.4 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005768/0.3628, allocations: 3.096 MB / 305.5 MB, free: 10.02 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3629, allocations: 0 / 305.5 MB, free: 10.02 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.3629, allocations: 0 / 305.5 MB, free: 10.02 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001161/0.363, allocations: 0 / 305.5 MB, free: 10.02 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.008369/0.3714, allocations: 2.631 MB / 308.1 MB, free: 8.73 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.3714, allocations: 7.375 kB / 308.1 MB, free: 8.73 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01135/0.3828, allocations: 1.899 MB / 310 MB, free: 8.559 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004872/0.3877, allocations: 1.616 MB / 311.6 MB, free: 8.168 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001486/0.3879, allocations: 125.7 kB / 311.7 MB, free: 8.164 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005795/0.3885, allocations: 165.5 kB / 311.9 MB, free: 8.16 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01471/0.4032, allocations: 6.585 MB / 318.5 MB, free: 5.949 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.035e-05/0.4034, allocations: 27.5 kB / 318.5 MB, free: 5.949 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004123/0.4038, allocations: 88.88 kB / 318.6 MB, free: 5.945 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003312/0.4071, allocations: 1.404 MB / 320 MB, free: 5.633 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01599/0.4231, allocations: 5.867 MB / 325.9 MB, free: 3.602 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0436/0.4668, allocations: 25.73 MB / 351.6 MB, free: 11.53 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009865/0.4767, allocations: 2.593 MB / 354.2 MB, free: 8.805 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01283/0.4895, allocations: 4.835 MB / 359 MB, free: 3.906 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.633e-05/0.4896, allocations: 49.92 kB / 359.1 MB, free: 3.852 MB / 282.7 MB Notification: Performance of pre-optimization done (n=97): time 5.139e-06/0.4897, allocations: 2.078 kB / 359.1 MB, free: 3.852 MB / 282.7 MB Notification: Performance of matching and sorting (n=105): time 0.04227/0.5319, allocations: 10.07 MB / 369.2 MB, free: 9.617 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.973e-05/0.5321, allocations: 137 kB / 369.3 MB, free: 9.453 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005823/0.5379, allocations: 2.809 MB / 372.1 MB, free: 6.625 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002914/0.5382, allocations: 33.7 kB / 372.1 MB, free: 6.586 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002121/0.5404, allocations: 2.045 MB / 374.2 MB, free: 4.551 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006884/0.5411, allocations: 428.9 kB / 374.6 MB, free: 4.137 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003027/0.5414, allocations: 80 kB / 374.7 MB, free: 4.059 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000384/0.5418, allocations: 485.2 kB / 375.1 MB, free: 3.578 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003714/0.5455, allocations: 1.417 MB / 376.6 MB, free: 2.156 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005979/0.5515, allocations: 4.01 MB / 380.6 MB, free: 12.88 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005979/0.5575, allocations: 2.324 MB / 382.9 MB, free: 10.64 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.67e-05/0.5577, allocations: 28 kB / 382.9 MB, free: 10.62 MB / 314.7 MB Notification: Performance of matching and sorting (n=531) (initialization): time 0.0193/0.577, allocations: 5.951 MB / 388.9 MB, free: 4.898 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.18e-05/0.5771, allocations: 47.98 kB / 388.9 MB, free: 4.852 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001376/0.5773, allocations: 95.95 kB / 389 MB, free: 4.758 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004209/0.5815, allocations: 0.8283 MB / 389.8 MB, free: 3.926 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005481/0.587, allocations: 0.9357 MB / 390.8 MB, free: 2.988 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009932/0.5969, allocations: 4.432 MB / 395.2 MB, free: 14.43 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004703/0.6017, allocations: 239.6 kB / 395.4 MB, free: 14.2 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006204/0.6023, allocations: 256 kB / 395.7 MB, free: 13.95 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.003282/0.6056, allocations: 1.371 MB / 397.1 MB, free: 12.57 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006047/0.6062, allocations: 233 kB / 397.3 MB, free: 12.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01067/0.6169, allocations: 2.12 MB / 399.4 MB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.83e-05/0.617, allocations: 7.984 kB / 399.4 MB, free: 10.19 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/0.617, allocations: 0 / 399.4 MB, free: 10.19 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00253/0.6196, allocations: 471.5 kB / 399.9 MB, free: 9.711 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008711/0.6205, allocations: 12 kB / 399.9 MB, free: 9.699 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00266/0.6232, allocations: 75.89 kB / 400 MB, free: 9.625 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004239/0.6236, allocations: 64.28 kB / 400 MB, free: 9.562 MB / 330.7 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01342/0.6371, allocations: 2.654 MB / 402.7 MB, free: 6.918 MB / 330.7 MB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 0.01108/0.6482, allocations: 3.35 MB / 406 MB, free: 3.543 MB / 330.7 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.002909/0.6512, allocations: 0.8161 MB / 406.9 MB, free: 2.73 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.006578/0.6578, allocations: 1.763 MB / 408.6 MB, free: 0.957 MB / 330.7 MB Notification: Performance of Backend: time 1.933e-06/0.6578, allocations: 0 / 408.6 MB, free: 0.957 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.01408/0.6719, allocations: 2.886 MB / 411.5 MB, free: 14.09 MB / 346.7 MB Notification: Performance of SimCode: time 0.02428/0.6963, allocations: 6.889 MB / 418.4 MB, free: 7.152 MB / 346.7 MB Notification: Performance of Templates: time 0.4381/1.134, allocations: 28.67 MB / 447.1 MB, free: 125.5 MB / 362.7 MB