Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001386/0.001386, allocations: 195 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.23/1.23, allocations: 226.6 MB / 244.4 MB, free: 8.312 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006867/0.0006867, allocations: 100 kB / 296.4 MB, free: 7.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001856/0.0001856, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1685/0.1687, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.007398/0.1761, allocations: 12.51 MB / 420 MB, free: 15.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004957/0.1811, allocations: 3.996 MB / 424 MB, free: 11.3 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007236/0.1819, allocations: 55.81 kB / 424.1 MB, free: 11.24 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007111/0.1826, allocations: 0.5949 MB / 424.7 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002848/0.1854, allocations: 2.211 MB / 426.9 MB, free: 8.426 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005828/0.186, allocations: 423.3 kB / 427.3 MB, free: 8.012 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002235/0.1883, allocations: 3.366 MB / 430.6 MB, free: 4.637 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000403/0.1887, allocations: 0.5271 MB / 431.2 MB, free: 4.062 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000528/0.1892, allocations: 0.7667 MB / 431.9 MB, free: 3.293 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009518/0.1902, allocations: 1.297 MB / 433.2 MB, free: 1.992 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000171/0.1904, allocations: 84 kB / 433.3 MB, free: 1.91 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009668/0.1914, allocations: 0.8073 MB / 434.1 MB, free: 1.102 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005368/0.1919, allocations: 1.052 MB / 435.2 MB, free: 48 kB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003748/0.1923, allocations: 0.4923 MB / 435.7 MB, free: 15.54 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002383/0.1947, allocations: 2.986 MB / 438.7 MB, free: 12.55 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.1947, allocations: 0 / 438.7 MB, free: 12.55 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1947, allocations: 0 / 438.7 MB, free: 12.55 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.503e-05/0.1947, allocations: 3.938 kB / 438.7 MB, free: 12.55 MB / 314.7 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.004741/0.1995, allocations: 2.725 MB / 441.4 MB, free: 9.766 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.1995, allocations: 12.03 kB / 441.4 MB, free: 9.754 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007531/0.2071, allocations: 2.048 MB / 443.4 MB, free: 7.699 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002445/0.2095, allocations: 1.546 MB / 445 MB, free: 6.109 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.976e-05/0.2096, allocations: 122.6 kB / 445.1 MB, free: 5.988 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007763/0.2104, allocations: 303.4 kB / 445.4 MB, free: 5.691 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01337/0.2238, allocations: 8.227 MB / 453.6 MB, free: 12.89 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.74e-05/0.2239, allocations: 39.66 kB / 453.7 MB, free: 12.86 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002512/0.2242, allocations: 75.89 kB / 453.7 MB, free: 12.78 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002021/0.2262, allocations: 1.397 MB / 455.1 MB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0162/0.2424, allocations: 9.513 MB / 464.7 MB, free: 1.863 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03151/0.2739, allocations: 30.57 MB / 495.2 MB, free: 2.434 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01093/0.2849, allocations: 4.415 MB / 499.6 MB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002739/0.2877, allocations: 2.106 MB / 0.49 GB, free: 11.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.715e-05/0.2878, allocations: 27.91 kB / 0.49 GB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.2878, allocations: 42.56 kB / 0.4901 GB, free: 11.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=122): time 3.527e-06/0.2878, allocations: 0 / 0.4901 GB, free: 11.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=136): time 0.2042/0.492, allocations: 18.4 MB / 0.508 GB, free: 91.6 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.001592/0.4936, allocations: 3.051 MB / 0.511 GB, free: 88.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003473/0.4971, allocations: 2.971 MB / 0.5139 GB, free: 87.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003472/0.4975, allocations: 43.33 kB / 0.5139 GB, free: 87.42 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009725/0.4985, allocations: 2.084 MB / 0.516 GB, free: 85.8 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005464/0.499, allocations: 0.5673 MB / 0.5165 GB, free: 85.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002361/0.4993, allocations: 98.95 kB / 0.5166 GB, free: 85.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.4995, allocations: 0.5108 MB / 0.5171 GB, free: 84.93 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002959/0.5024, allocations: 2.618 MB / 0.5197 GB, free: 84.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003842/0.5063, allocations: 5.563 MB / 0.5251 GB, free: 78.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003909/0.5102, allocations: 3.671 MB / 0.5287 GB, free: 75.23 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.351e-05/0.5103, allocations: 28 kB / 0.5287 GB, free: 75.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=644) (initialization): time 0.02614/0.5364, allocations: 11.88 MB / 0.5403 GB, free: 63.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.777e-05/0.5365, allocations: 48 kB / 0.5404 GB, free: 63.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01926/0.5558, allocations: 7.162 MB / 0.5474 GB, free: 56.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03085/0.5867, allocations: 4.737 MB / 0.552 GB, free: 51.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006283/0.593, allocations: 1.244 MB / 0.5532 GB, free: 50.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02071/0.6137, allocations: 11.5 MB / 0.5644 GB, free: 38.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008081/0.6218, allocations: 0.5732 MB / 0.565 GB, free: 37.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00121/0.6231, allocations: 315.5 kB / 0.5653 GB, free: 37.13 MB / 378.7 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 (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(4,100.0%),(3,100.0%),(4,100.0%),(3,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003686/0.6268, allocations: 1.41 MB / 0.5667 GB, free: 35.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009625/0.6278, allocations: 256.7 kB / 0.5669 GB, free: 35.45 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001097/0.6289, allocations: 411 kB / 0.5673 GB, free: 35.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01575/0.6447, allocations: 5.013 MB / 0.5722 GB, free: 30 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.283e-05/0.6447, allocations: 4 kB / 0.5722 GB, free: 30 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.157e-05/0.6448, allocations: 7.969 kB / 0.5722 GB, free: 29.99 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007653/0.6524, allocations: 5.369 MB / 0.5775 GB, free: 24.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/0.6525, allocations: 0 / 0.5775 GB, free: 24.59 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001565/0.654, allocations: 371.3 kB / 0.5778 GB, free: 24.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007374/0.6614, allocations: 2.386 MB / 0.5802 GB, free: 21.81 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002383/0.6617, allocations: 49.16 kB / 0.5802 GB, free: 21.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006907/0.6686, allocations: 8.847 MB / 0.5888 GB, free: 12.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001241/0.6698, allocations: 2.888 MB / 0.5917 GB, free: 9.219 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01348/0.6833, allocations: 8.762 MB / 0.6002 GB, free: 416 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007799/0.6842, allocations: 325.7 kB / 0.6005 GB, free: 68 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000579/0.6847, allocations: 31.98 kB / 0.6006 GB, free: 36 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002277/0.687, allocations: 319.4 kB / 0.6009 GB, free: 15.72 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003679/0.6874, allocations: 107.5 kB / 0.601 GB, free: 15.62 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001925/0.6876, allocations: 55.95 kB / 0.601 GB, free: 15.56 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003078/0.6907, allocations: 1.851 MB / 0.6028 GB, free: 13.71 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.6907, allocations: 0 / 0.6028 GB, free: 13.71 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004526/0.6953, allocations: 1.009 MB / 0.6038 GB, free: 12.7 MB / 394.7 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 (linear and non-linear blocks): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 4 {(3,100.0%),(4,100.0%),(3,100.0%),(4,100.0%)} * Non-linear Jacobian: 2 {4,4} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005393/0.6958, allocations: 172.8 kB / 0.604 GB, free: 12.54 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01283/0.7087, allocations: 7.378 MB / 0.6112 GB, free: 5.039 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.009e-06/0.7087, allocations: 0 / 0.6112 GB, free: 5.039 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006293/0.715, allocations: 3.632 MB / 0.6147 GB, free: 1.262 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002908/0.7179, allocations: 304.3 kB / 0.615 GB, free: 0.9688 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01459/0.7325, allocations: 9.608 MB / 0.6244 GB, free: 7.301 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002561/0.7351, allocations: 2.294 MB / 0.6266 GB, free: 4.973 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001533/0.7367, allocations: 239.3 kB / 0.6269 GB, free: 4.738 MB / 410.7 MB Notification: Performance of SimCode: time 1.082e-06/0.7367, allocations: 0 / 0.6269 GB, free: 4.738 MB / 410.7 MB Notification: Performance of Templates: time 0.3076/1.044, allocations: 144.8 MB / 0.7682 GB, free: 49.34 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches