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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001195/0.001195, allocations: 107.8 kB / 17.16 MB, free: 6.305 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.001216/0.001216, allocations: 194 kB / 18.08 MB, free: 5.402 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.3/1.3, allocations: 205.1 MB / 223.9 MB, free: 12.53 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.001132/0.001132, allocations: 47.92 kB / 280.1 MB, free: 3.492 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08045/0.0816, allocations: 46.63 MB / 326.7 MB, free: 4.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.01274/0.09437, allocations: 13.97 MB / 340.7 MB, free: 6.754 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008042/0.1025, allocations: 4.297 MB / 345 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002184/0.1047, allocations: 51.88 kB / 345 MB, free: 2.395 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001786/0.1065, allocations: 0.6385 MB / 345.7 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003337/0.1099, allocations: 1.297 MB / 347 MB, free: 464 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009716/0.1109, allocations: 467.6 kB / 347.4 MB, free: 15.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004296/0.1152, allocations: 4.158 MB / 351.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000681/0.1159, allocations: 431.1 kB / 352 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009365/0.1168, allocations: 0.6885 MB / 352.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001457/0.1183, allocations: 1.32 MB / 354 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002566/0.1186, allocations: 80 kB / 354.1 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001657/0.1202, allocations: 0.9476 MB / 355 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009819/0.1212, allocations: 1.071 MB / 356.1 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001161/0.1224, allocations: 1.211 MB / 357.3 MB, free: 6.059 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004108/0.1265, allocations: 3.866 MB / 361.2 MB, free: 2.18 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.1266, allocations: 0 / 361.2 MB, free: 2.18 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1266, allocations: 4 kB / 361.2 MB, free: 2.176 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.124e-05/0.1266, allocations: 0 / 361.2 MB, free: 2.176 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.006272/0.1329, allocations: 3.255 MB / 364.4 MB, free: 14.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.133, allocations: 8.031 kB / 364.4 MB, free: 14.85 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004779/0.1335, allocations: 441.3 kB / 364.9 MB, free: 14.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007922/0.1414, allocations: 1.916 MB / 366.8 MB, free: 12.49 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004273/0.1457, allocations: 2.526 MB / 369.3 MB, free: 9.918 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001007/0.1458, allocations: 118.6 kB / 369.4 MB, free: 9.801 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008648/0.1467, allocations: 303.5 kB / 369.7 MB, free: 9.504 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01373/0.1604, allocations: 8.223 MB / 378 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.731e-05/0.1605, allocations: 31.75 kB / 378 MB, free: 0.6836 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002728/0.1608, allocations: 75.89 kB / 378.1 MB, free: 0.6094 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.139/0.2999, allocations: 1.392 MB / 379.4 MB, free: 50.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01838/0.3183, allocations: 9.548 MB / 389 MB, free: 48.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0267/0.345, allocations: 30.56 MB / 419.6 MB, free: 21.62 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01009/0.3551, allocations: 4.374 MB / 423.9 MB, free: 17.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002312/0.3575, allocations: 2.109 MB / 426 MB, free: 14.96 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.787e-05/0.3576, allocations: 20.59 kB / 426.1 MB, free: 14.95 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.389e-05/0.3576, allocations: 42.56 kB / 426.1 MB, free: 14.89 MB / 318.1 MB Notification: Performance of pre-optimization done (n=122): time 3.867e-06/0.3576, allocations: 0 / 426.1 MB, free: 14.89 MB / 318.1 MB Notification: Performance of matching and sorting (n=136): time 0.04033/0.398, allocations: 18.43 MB / 444.5 MB, free: 12.19 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002443/0.4004, allocations: 3.062 MB / 447.6 MB, free: 8.809 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004134/0.4046, allocations: 3.024 MB / 450.6 MB, free: 5.766 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006411/0.4053, allocations: 41.7 kB / 450.7 MB, free: 5.719 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001542/0.4068, allocations: 2.087 MB / 452.7 MB, free: 3.637 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008723/0.4077, allocations: 0.5687 MB / 453.3 MB, free: 3.074 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001483/0.4092, allocations: 1.003 MB / 454.3 MB, free: 2.062 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.791e-05/0.4093, allocations: 309.1 kB / 454.6 MB, free: 1.758 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003764/0.4131, allocations: 2.582 MB / 457.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005713/0.4188, allocations: 5.525 MB / 462.7 MB, free: 8.172 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01008/0.4289, allocations: 8.518 MB / 471.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.474e-05/0.429, allocations: 32 kB / 471.3 MB, free: 14.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.02081/0.4499, allocations: 9.859 MB / 481.1 MB, free: 4.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.15e-05/0.45, allocations: 51.94 kB / 481.2 MB, free: 4.219 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01199/0.462, allocations: 5.114 MB / 486.3 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008526/0.4705, allocations: 2.359 MB / 488.7 MB, free: 12.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003993/0.4746, allocations: 1.232 MB / 489.9 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007925/0.4825, allocations: 8.13 MB / 498 MB, free: 2.797 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004645/0.4872, allocations: 0.5615 MB / 498.6 MB, free: 2.234 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008211/0.488, allocations: 320.2 kB / 498.9 MB, free: 1.926 MB / 382.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 (584): * Single equations (assignments): 569 * 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 {(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 prepare postOptimizeDAE: time 0.002429/0.4905, allocations: 1.416 MB / 0.4886 GB, free: 0.5 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000591/0.4911, allocations: 260.7 kB / 0.4888 GB, free: 248 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008786/0.492, allocations: 416.1 kB / 0.4892 GB, free: 15.84 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01108/0.503, allocations: 5.013 MB / 0.4941 GB, free: 10.8 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-05/0.5031, allocations: 8 kB / 0.4941 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.539e-05/0.5031, allocations: 7.969 kB / 0.4941 GB, free: 10.79 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008225/0.5114, allocations: 5.373 MB / 0.4994 GB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.418e-06/0.5114, allocations: 0 / 0.4994 GB, free: 5.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001754/0.5132, allocations: 364.3 kB / 0.4997 GB, free: 4.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008127/0.5213, allocations: 2.39 MB / 0.5021 GB, free: 2.562 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004854/0.5218, allocations: 51.92 kB / 0.5021 GB, free: 2.512 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008982/0.5308, allocations: 8.814 MB / 0.5107 GB, free: 9.172 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001831/0.5327, allocations: 2.904 MB / 0.5136 GB, free: 5.984 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01614/0.5489, allocations: 8.767 MB / 0.5221 GB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007318/0.5497, allocations: 325.6 kB / 0.5224 GB, free: 12.82 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005748/0.5502, allocations: 31.98 kB / 0.5225 GB, free: 12.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002022/0.5523, allocations: 323.4 kB / 0.5228 GB, free: 12.47 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004474/0.5527, allocations: 103.8 kB / 0.5229 GB, free: 12.37 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002002/0.5529, allocations: 60.17 kB / 0.5229 GB, free: 12.31 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002689/0.5556, allocations: 1.891 MB / 0.5248 GB, free: 10.42 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.5556, allocations: 0 / 0.5248 GB, free: 10.42 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00412/0.5598, allocations: 0.9621 MB / 0.5257 GB, free: 9.461 MB / 430.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.1534/0.7132, allocations: 9.427 MB / 0.5349 GB, free: 151.4 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01428/0.7275, allocations: 7.222 MB / 0.542 GB, free: 150 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.666e-06/0.7276, allocations: 1.25 kB / 0.542 GB, free: 150 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006523/0.7341, allocations: 3.627 MB / 0.5455 GB, free: 148.4 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002393/0.7365, allocations: 298.1 kB / 0.5458 GB, free: 148.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07237/0.8089, allocations: 49.3 MB / 0.5939 GB, free: 103.1 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001671/0.8106, allocations: 2.311 MB / 0.5962 GB, free: 100.8 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003656/0.8143, allocations: 1.663 MB / 0.5978 GB, free: 99.11 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001432/0.8157, allocations: 1.179 MB / 0.599 GB, free: 97.93 MB / 430.1 MB Notification: Performance of SimCode: time 8.61e-07/0.8157, allocations: 4 kB / 0.599 GB, free: 97.93 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0786/0.8943, allocations: 64.43 MB / 0.6619 GB, free: 33.38 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001345/0.8945, allocations: 256 kB / 0.6621 GB, free: 33.12 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.781/4.676, allocations: 0 / 0.6621 GB, free: 33.12 MB / 430.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > 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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches