Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001727/0.001728, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002006/0.002006, allocations: 210.4 kB / 18.58 MB, free: 4.578 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001108/0.001108, allocations: 67.41 kB / 306.9 MB, free: 0.6445 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0861/0.08722, allocations: 50.54 MB / 357.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.007374/0.09464, allocations: 6.955 MB / 364.4 MB, free: 7.113 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005353/0.1, allocations: 3.111 MB / 367.5 MB, free: 3.992 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005356/0.1006, allocations: 31.94 kB / 367.6 MB, free: 3.961 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001348/0.102, allocations: 0.6692 MB / 368.2 MB, free: 3.289 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002554/0.1045, allocations: 1.358 MB / 369.6 MB, free: 1.926 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009239/0.1055, allocations: 0.499 MB / 370.1 MB, free: 1.426 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.159/0.2645, allocations: 3.19 MB / 373.3 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007804/0.2654, allocations: 455.1 kB / 373.7 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001059/0.2664, allocations: 0.7855 MB / 374.5 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001298/0.2677, allocations: 1.203 MB / 375.7 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002787/0.268, allocations: 129.9 kB / 375.9 MB, free: 9.27 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001536/0.2696, allocations: 0.9416 MB / 376.8 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009245/0.2705, allocations: 1.062 MB / 377.9 MB, free: 9.145 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008237/0.2713, allocations: 1.213 MB / 379.1 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003843/0.2752, allocations: 3.819 MB / 382.9 MB, free: 8.07 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2752, allocations: 2.672 kB / 382.9 MB, free: 8.07 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.2752, allocations: 0 / 382.9 MB, free: 8.07 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.657e-05/0.2753, allocations: 0 / 382.9 MB, free: 8.07 MB / 302.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.005625/0.2809, allocations: 3.174 MB / 386.1 MB, free: 6.43 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.378e-05/0.2809, allocations: 12.66 kB / 386.1 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008246/0.2892, allocations: 1.998 MB / 388.1 MB, free: 5.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002489/0.2917, allocations: 1.577 MB / 389.7 MB, free: 4.852 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.106e-05/0.2918, allocations: 115 kB / 389.8 MB, free: 4.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008211/0.2926, allocations: 307.6 kB / 390.1 MB, free: 4.734 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01247/0.3051, allocations: 8.221 MB / 398.3 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.913e-05/0.3052, allocations: 39.88 kB / 398.3 MB, free: 15.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002786/0.3055, allocations: 75.12 kB / 398.4 MB, free: 15.75 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002239/0.3077, allocations: 1.403 MB / 399.8 MB, free: 14.67 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01744/0.3252, allocations: 9.539 MB / 409.3 MB, free: 5.289 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0449/0.3701, allocations: 30.6 MB / 439.9 MB, free: 6.137 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01871/0.3889, allocations: 4.385 MB / 444.3 MB, free: 1.609 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004588/0.3935, allocations: 2.116 MB / 446.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.82e-05/0.3936, allocations: 15.91 kB / 446.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.79e-05/0.3936, allocations: 50.12 kB / 446.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 5.029e-06/0.3937, allocations: 3.984 kB / 446.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=136): time 0.04551/0.4392, allocations: 18.28 MB / 464.8 MB, free: 12.89 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002207/0.4414, allocations: 3.228 MB / 468 MB, free: 9.34 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003905/0.4453, allocations: 2.981 MB / 471 MB, free: 6.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003881/0.4457, allocations: 41.7 kB / 471 MB, free: 6.293 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001284/0.447, allocations: 2.068 MB / 473.1 MB, free: 4.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006582/0.4477, allocations: 0.5725 MB / 473.7 MB, free: 3.664 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001436/0.4491, allocations: 1.017 MB / 474.7 MB, free: 2.641 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.534e-05/0.4492, allocations: 309.2 kB / 475 MB, free: 2.336 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003586/0.4528, allocations: 2.627 MB / 477.6 MB, free: 15.7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005259/0.4581, allocations: 5.588 MB / 483.2 MB, free: 8.664 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009628/0.4677, allocations: 8.624 MB / 491.8 MB, free: 14.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.54e-05/0.4678, allocations: 36 kB / 491.9 MB, free: 14.55 MB / 414.1 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.03317/0.501, allocations: 11.91 MB / 0.492 GB, free: 2.617 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.162e-05/0.5011, allocations: 55.98 kB / 0.492 GB, free: 2.562 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02439/0.5255, allocations: 7.156 MB / 0.499 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02355/0.5491, allocations: 4.733 MB / 0.5036 GB, free: 6.609 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004175/0.5533, allocations: 1.244 MB / 0.5049 GB, free: 5.363 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01703/0.5704, allocations: 12.61 MB / 0.5172 GB, free: 8.195 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005134/0.5755, allocations: 0.5809 MB / 0.5177 GB, free: 7.613 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009378/0.5765, allocations: 316 kB / 0.518 GB, free: 7.305 MB / 446.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.002649/0.5791, allocations: 1.42 MB / 0.5194 GB, free: 5.875 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005573/0.5797, allocations: 244.8 kB / 0.5197 GB, free: 5.633 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000807/0.5805, allocations: 418.9 kB / 0.5201 GB, free: 5.215 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01237/0.5929, allocations: 5.017 MB / 0.525 GB, free: 168 kB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.686e-05/0.593, allocations: 4 kB / 0.525 GB, free: 164 kB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.907e-05/0.593, allocations: 11.91 kB / 0.525 GB, free: 152 kB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1821/0.7751, allocations: 5.347 MB / 0.5302 GB, free: 144.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.787e-06/0.7752, allocations: 1.156 kB / 0.5302 GB, free: 144.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001761/0.777, allocations: 369 kB / 0.5305 GB, free: 144.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008951/0.7859, allocations: 2.392 MB / 0.5329 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002167/0.7861, allocations: 47.3 kB / 0.5329 GB, free: 143.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008724/0.7949, allocations: 9.437 MB / 0.5421 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001446/0.7963, allocations: 3.07 MB / 0.5451 GB, free: 134.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01724/0.8136, allocations: 8.775 MB / 0.5537 GB, free: 131.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008574/0.8145, allocations: 324.7 kB / 0.554 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005139/0.815, allocations: 33.09 kB / 0.554 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002048/0.8171, allocations: 318.2 kB / 0.5544 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003958/0.8175, allocations: 116.9 kB / 0.5545 GB, free: 131.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001611/0.8177, allocations: 50.95 kB / 0.5545 GB, free: 131.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002389/0.82, allocations: 1.859 MB / 0.5563 GB, free: 130.9 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8201, allocations: 0 / 0.5563 GB, free: 130.9 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00399/0.8241, allocations: 0.9944 MB / 0.5573 GB, free: 130.9 MB / 446.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.0004607/0.8245, allocations: 175.5 kB / 0.5575 GB, free: 130.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01084/0.8354, allocations: 7.737 MB / 0.565 GB, free: 124.8 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.142e-06/0.8354, allocations: 0 / 0.565 GB, free: 124.8 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005604/0.841, allocations: 3.645 MB / 0.5686 GB, free: 121 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00236/0.8434, allocations: 312.1 kB / 0.5689 GB, free: 120.7 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01042/0.8538, allocations: 8.158 MB / 0.5768 GB, free: 112.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001641/0.8555, allocations: 2.293 MB / 0.5791 GB, free: 110.3 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003505/0.859, allocations: 1.663 MB / 0.5807 GB, free: 108.6 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006732/0.8597, allocations: 199.3 kB / 0.5809 GB, free: 108.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.523e-06/0.8597, allocations: 0 / 0.5809 GB, free: 108.4 MB / 446.1 MB Notification: Performance of Templates: time 0.05868/0.9184, allocations: 45.73 MB / 0.6256 GB, free: 62.82 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.makefile (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravity/PointGravity.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches