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.001046/0.001046, allocations: 114.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00106/0.00106, allocations: 200.5 kB / 19.36 MB, free: 3.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 59.53 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09228/0.09349, allocations: 50.53 MB / 358.9 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.007831/0.1014, allocations: 6.943 MB / 365.9 MB, free: 6.367 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005579/0.107, allocations: 3.123 MB / 369 MB, free: 3.234 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008659/0.1079, allocations: 35.88 kB / 369 MB, free: 3.199 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001433/0.1094, allocations: 0.6575 MB / 369.7 MB, free: 2.539 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002802/0.1122, allocations: 1.377 MB / 371 MB, free: 1.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008763/0.1131, allocations: 499.1 kB / 371.5 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1762/0.2893, allocations: 3.191 MB / 374.7 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001285/0.2906, allocations: 455.9 kB / 375.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001811/0.2924, allocations: 0.786 MB / 376 MB, free: 9.961 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002363/0.2948, allocations: 1.207 MB / 377.2 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005867/0.2954, allocations: 131 kB / 377.3 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002186/0.2976, allocations: 0.9354 MB / 378.2 MB, free: 9.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001451/0.2991, allocations: 1.07 MB / 379.3 MB, free: 9.699 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001532/0.3006, allocations: 1.209 MB / 380.5 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00518/0.3058, allocations: 3.995 MB / 384.5 MB, free: 8.328 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.3059, allocations: 1.531 kB / 384.5 MB, free: 8.328 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.3059, allocations: 4 kB / 384.5 MB, free: 8.324 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000102/0.306, allocations: 0 / 384.5 MB, free: 8.324 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.007162/0.3132, allocations: 3.168 MB / 387.7 MB, free: 6.684 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.399e-05/0.3132, allocations: 9.625 kB / 387.7 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008098/0.3213, allocations: 2.006 MB / 389.7 MB, free: 5.828 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003675/0.325, allocations: 1.599 MB / 391.3 MB, free: 4.898 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001068/0.3251, allocations: 111.3 kB / 391.4 MB, free: 4.875 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009434/0.3261, allocations: 305.2 kB / 391.7 MB, free: 4.785 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01568/0.3418, allocations: 8.22 MB / 399.9 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.096e-05/0.3419, allocations: 42.09 kB / 400 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002916/0.3422, allocations: 80.36 kB / 400 MB, free: 15.49 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002233/0.3444, allocations: 1.4 MB / 401.4 MB, free: 14.12 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01911/0.3636, allocations: 9.535 MB / 411 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03932/0.4029, allocations: 30.51 MB / 441.5 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01178/0.4147, allocations: 4.405 MB / 445.9 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00296/0.4177, allocations: 2.108 MB / 448 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.696e-05/0.4178, allocations: 18.97 kB / 448 MB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.091e-05/0.4179, allocations: 50.48 kB / 448.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.286e-06/0.4179, allocations: 4 kB / 448.1 MB, free: 14.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=136): time 0.04738/0.4653, allocations: 18.27 MB / 466.3 MB, free: 12.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00246/0.4678, allocations: 3.235 MB / 469.6 MB, free: 8.664 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004394/0.4722, allocations: 2.974 MB / 472.5 MB, free: 5.668 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000841/0.4731, allocations: 41.7 kB / 472.6 MB, free: 5.621 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001532/0.4746, allocations: 2.074 MB / 474.7 MB, free: 3.555 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001062/0.4757, allocations: 0.5637 MB / 475.2 MB, free: 2.996 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001648/0.4773, allocations: 1.015 MB / 476.2 MB, free: 1.973 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.844e-05/0.4774, allocations: 309.2 kB / 476.5 MB, free: 1.668 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004095/0.4815, allocations: 2.633 MB / 479.2 MB, free: 15.03 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005873/0.4874, allocations: 5.584 MB / 484.8 MB, free: 7.973 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01148/0.4989, allocations: 8.625 MB / 493.4 MB, free: 13.89 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.678e-05/0.4991, allocations: 31.98 kB / 493.4 MB, free: 13.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.03617/0.5352, allocations: 11.91 MB / 0.4935 GB, free: 1.918 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.125e-05/0.5354, allocations: 48 kB / 0.4935 GB, free: 1.871 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.02305/0.5584, allocations: 7.165 MB / 0.5005 GB, free: 10.67 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02169/0.5802, allocations: 4.717 MB / 0.5051 GB, free: 5.922 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005022/0.5852, allocations: 1.244 MB / 0.5064 GB, free: 4.676 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01765/0.6029, allocations: 12.6 MB / 0.5187 GB, free: 7.512 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006476/0.6094, allocations: 0.5773 MB / 0.5192 GB, free: 6.934 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001494/0.611, allocations: 319.9 kB / 0.5195 GB, free: 6.621 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.003723/0.6147, allocations: 1.417 MB / 0.5209 GB, free: 5.195 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007957/0.6155, allocations: 252.8 kB / 0.5212 GB, free: 4.945 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001051/0.6166, allocations: 414.9 kB / 0.5215 GB, free: 4.531 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.2609/0.8774, allocations: 5.016 MB / 0.5264 GB, free: 144.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.986e-05/0.8775, allocations: 4.125 kB / 0.5264 GB, free: 144.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.834e-05/0.8776, allocations: 11.61 kB / 0.5265 GB, free: 144.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01163/0.8892, allocations: 5.349 MB / 0.5317 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.8892, allocations: 0 / 0.5317 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00194/0.8912, allocations: 369.4 kB / 0.532 GB, free: 143.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008783/0.9, allocations: 2.39 MB / 0.5344 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007806/0.9008, allocations: 49.38 kB / 0.5344 GB, free: 143.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009694/0.9105, allocations: 9.433 MB / 0.5436 GB, free: 136.9 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001648/0.9122, allocations: 3.066 MB / 0.5466 GB, free: 133.9 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01615/0.9284, allocations: 8.778 MB / 0.5552 GB, free: 131.1 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001031/0.9294, allocations: 324.8 kB / 0.5555 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006574/0.9301, allocations: 35.48 kB / 0.5555 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001994/0.9321, allocations: 310.7 kB / 0.5558 GB, free: 131 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004507/0.9326, allocations: 116.8 kB / 0.5559 GB, free: 130.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001895/0.9328, allocations: 60.2 kB / 0.556 GB, free: 130.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0027/0.9355, allocations: 1.857 MB / 0.5578 GB, free: 130.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.9355, allocations: 0 / 0.5578 GB, free: 130.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004255/0.9398, allocations: 0.9961 MB / 0.5588 GB, free: 130.2 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.0004878/0.9403, allocations: 177.2 kB / 0.559 GB, free: 130.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01169/0.952, allocations: 7.452 MB / 0.5662 GB, free: 124.3 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/0.952, allocations: 0 / 0.5662 GB, free: 124.3 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005635/0.9577, allocations: 3.647 MB / 0.5698 GB, free: 120.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002468/0.9602, allocations: 303.6 kB / 0.5701 GB, free: 120.3 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01057/0.9708, allocations: 8.106 MB / 0.578 GB, free: 112.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001715/0.9725, allocations: 2.29 MB / 0.5802 GB, free: 109.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003538/0.9761, allocations: 1.663 MB / 0.5819 GB, free: 108.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000736/0.9768, allocations: 199.3 kB / 0.5821 GB, free: 108.1 MB / 446.1 MB Notification: Performance of SimCode: time 9.82e-07/0.9768, allocations: 0 / 0.5821 GB, free: 108.1 MB / 446.1 MB Notification: Performance of Templates: time 0.06041/1.037, allocations: 41.67 MB / 0.6227 GB, free: 66.56 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 -s cvode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravity/PointGravity.csv","/var/lib/jenkins1/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