Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|body1.frame_a.r_0.1.|body1.frame_a.r_0.2.|body1.frame_a.r_0.3.|body1.v_0.1.|body1.v_0.2.|body1.v_0.3.|body1.w_a.1.|body1.w_a.2.|body1.w_a.3.|body2.frame_a.r_0.1.|body2.frame_a.r_0.2.|body2.frame_a.r_0.3.|body2.v_0.1.|body2.v_0.2.|body2.v_0.3.|body2.w_a.1.|body2.w_a.2.|body2.w_a.3.",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001144/0.001144, allocations: 103.9 kB / 18.39 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00114/0.00114, allocations: 190.5 kB / 19.33 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.384/1.384, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 56.34 kB / 329.2 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09226/0.09366, allocations: 46.61 MB / 375.8 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.2055/0.2992, allocations: 6.998 MB / 382.8 MB, free: 9.648 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.005355/0.3046, allocations: 3.092 MB / 385.9 MB, free: 8.332 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009063/0.3056, allocations: 32.5 kB / 385.9 MB, free: 8.328 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001527/0.3071, allocations: 0.6707 MB / 386.6 MB, free: 8.086 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003317/0.3105, allocations: 1.389 MB / 388 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001096/0.3116, allocations: 0.5001 MB / 388.5 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004245/0.3158, allocations: 3.124 MB / 391.6 MB, free: 6.336 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008142/0.3167, allocations: 462.4 kB / 392.1 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001326/0.318, allocations: 0.8015 MB / 392.9 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001694/0.3197, allocations: 1.221 MB / 394.1 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004152/0.3201, allocations: 130.6 kB / 394.2 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001988/0.3221, allocations: 0.9453 MB / 395.2 MB, free: 5.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001101/0.3232, allocations: 1.086 MB / 396.3 MB, free: 4.855 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.3244, allocations: 1.231 MB / 397.5 MB, free: 3.984 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004377/0.3288, allocations: 4.046 MB / 401.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.3288, allocations: 0 / 401.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.3288, allocations: 0 / 401.5 MB, free: 1.559 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.922e-05/0.3289, allocations: 0 / 401.5 MB, free: 1.559 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.00798/0.3369, allocations: 3.214 MB / 404.7 MB, free: 15.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.3369, allocations: 9.125 kB / 404.8 MB, free: 15.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008439/0.3454, allocations: 1.888 MB / 406.6 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004465/0.3499, allocations: 1.753 MB / 408.4 MB, free: 13.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001241/0.35, allocations: 115.7 kB / 408.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001109/0.3511, allocations: 303.1 kB / 408.8 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01521/0.3664, allocations: 8.222 MB / 417 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.819e-05/0.3665, allocations: 43.59 kB / 417.1 MB, free: 5.574 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003067/0.3668, allocations: 75.89 kB / 417.1 MB, free: 5.5 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0022/0.369, allocations: 1.401 MB / 418.5 MB, free: 4.094 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.018/0.387, allocations: 9.534 MB / 428.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04081/0.4279, allocations: 30.54 MB / 458.6 MB, free: 11.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0127/0.4406, allocations: 4.385 MB / 463 MB, free: 6.633 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003296/0.444, allocations: 2.12 MB / 465.1 MB, free: 4.496 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001136/0.4441, allocations: 15.98 kB / 465.1 MB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.214e-05/0.4442, allocations: 54.48 kB / 465.2 MB, free: 4.418 MB / 382.1 MB Notification: Performance of pre-optimization done (n=122): time 4.008e-06/0.4442, allocations: 0 / 465.2 MB, free: 4.418 MB / 382.1 MB Notification: Performance of matching and sorting (n=136): time 0.05193/0.4961, allocations: 18.33 MB / 483.5 MB, free: 1.801 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002577/0.4987, allocations: 3.228 MB / 486.7 MB, free: 14.24 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005768/0.5045, allocations: 3.006 MB / 489.8 MB, free: 11.21 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007659/0.5053, allocations: 41.7 kB / 489.8 MB, free: 11.16 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002053/0.5074, allocations: 2.083 MB / 491.9 MB, free: 9.051 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001424/0.5088, allocations: 0.5632 MB / 492.4 MB, free: 8.48 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003835/0.5127, allocations: 1.015 MB / 493.5 MB, free: 7.453 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.027e-05/0.5128, allocations: 301.1 kB / 493.8 MB, free: 7.156 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00506/0.5179, allocations: 2.637 MB / 496.4 MB, free: 4.512 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006934/0.5248, allocations: 5.581 MB / 0.4902 GB, free: 13.45 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01251/0.5374, allocations: 8.63 MB / 0.4986 GB, free: 3.359 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001519/0.5376, allocations: 28 kB / 0.4987 GB, free: 3.332 MB / 430.1 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.03533/0.5729, allocations: 11.78 MB / 0.5102 GB, free: 7.508 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001403/0.5731, allocations: 55.94 kB / 0.5102 GB, free: 7.453 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02345/0.5965, allocations: 7.005 MB / 0.5171 GB, free: 432 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02214/0.6187, allocations: 4.538 MB / 0.5215 GB, free: 11.85 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004832/0.6236, allocations: 1.252 MB / 0.5227 GB, free: 10.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01797/0.6416, allocations: 12.54 MB / 0.535 GB, free: 13.49 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005618/0.6473, allocations: 0.5771 MB / 0.5355 GB, free: 12.91 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001323/0.6486, allocations: 315.9 kB / 0.5358 GB, free: 12.6 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * Number of states: 0 () * Number of discrete variables: 18 (body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (592): * Single equations (assignments): 577 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(4,100.0%), (3,100.0%), (4,100.0%), (3,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004106/0.6528, allocations: 1.418 MB / 0.5372 GB, free: 11.17 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001156/0.6539, allocations: 260.6 kB / 0.5375 GB, free: 10.91 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001492/0.6554, allocations: 415.2 kB / 0.5378 GB, free: 10.5 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01217/0.6676, allocations: 5.01 MB / 0.5427 GB, free: 5.457 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.919e-05/0.6677, allocations: 8 kB / 0.5427 GB, free: 5.449 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.042e-05/0.6677, allocations: 7.922 kB / 0.5428 GB, free: 5.441 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01112/0.6789, allocations: 5.35 MB / 0.548 GB, free: 12 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.215e-05/0.6789, allocations: 7.875 kB / 0.548 GB, free: 4 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2083/0.8872, allocations: 360.8 kB / 0.5483 GB, free: 151.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009045/0.8963, allocations: 2.379 MB / 0.5507 GB, free: 151.4 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006697/0.897, allocations: 48.38 kB / 0.5507 GB, free: 151.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00927/0.9063, allocations: 9.436 MB / 0.5599 GB, free: 146 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001552/0.9079, allocations: 3.074 MB / 0.5629 GB, free: 143.1 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01715/0.9251, allocations: 8.78 MB / 0.5715 GB, free: 140.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009955/0.9261, allocations: 331.5 kB / 0.5718 GB, free: 140.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005333/0.9266, allocations: 35.95 kB / 0.5718 GB, free: 140.5 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002083/0.9287, allocations: 319.2 kB / 0.5721 GB, free: 140.5 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004388/0.9292, allocations: 110 kB / 0.5723 GB, free: 140.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000177/0.9294, allocations: 56.34 kB / 0.5723 GB, free: 140.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002821/0.9322, allocations: 1.882 MB / 0.5741 GB, free: 139.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.9322, allocations: 0 / 0.5741 GB, free: 139.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006/0.9382, allocations: 1.006 MB / 0.5751 GB, free: 139.7 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * 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 (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005195/0.9388, allocations: 167.7 kB / 0.5753 GB, free: 139.6 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01129/0.9501, allocations: 7.465 MB / 0.5826 GB, free: 136.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.9501, allocations: 0 / 0.5826 GB, free: 136.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005729/0.9558, allocations: 3.654 MB / 0.5861 GB, free: 135.2 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002505/0.9584, allocations: 309.4 kB / 0.5864 GB, free: 135.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01066/0.9691, allocations: 8.394 MB / 0.5946 GB, free: 127.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001543/0.9706, allocations: 2.287 MB / 0.5969 GB, free: 125.4 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001111/0.9718, allocations: 247.3 kB / 0.5971 GB, free: 125.1 MB / 478.1 MB Notification: Performance of SimCode: time 8.52e-07/0.9718, allocations: 0 / 0.5971 GB, free: 125.1 MB / 478.1 MB Notification: Performance of Templates: time 0.3494/1.321, allocations: 145.8 MB / 0.7395 GB, free: 162.8 MB / 494.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravity/PointGravity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches