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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001127/0.001127, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001311, allocations: 203.8 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.00115, allocations: 63.91 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2654, allocations: 50.53 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.007864/0.2733, allocations: 6.964 MB / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.005662/0.279, allocations: 3.111 MB / 418.8 MB, free: 7.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008113/0.2799, allocations: 35.88 kB / 418.9 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001438/0.2813, allocations: 0.6575 MB / 419.5 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002983/0.2843, allocations: 1.39 MB / 420.9 MB, free: 5.312 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001025/0.2854, allocations: 499.1 kB / 421.4 MB, free: 4.824 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004094/0.2895, allocations: 3.207 MB / 424.6 MB, free: 1.609 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009248/0.2905, allocations: 451.1 kB / 425 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001324/0.2918, allocations: 0.7861 MB / 425.8 MB, free: 376 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001819/0.2936, allocations: 1.211 MB / 427 MB, free: 15.15 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004962/0.2942, allocations: 128 kB / 427.2 MB, free: 15.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001937/0.2961, allocations: 0.9437 MB / 428.1 MB, free: 14.08 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001305/0.2974, allocations: 1.067 MB / 429.2 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00197/0.2994, allocations: 1.215 MB / 430.4 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005365/0.3048, allocations: 4.029 MB / 434.4 MB, free: 7.742 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.145e-06/0.3048, allocations: 0 / 434.4 MB, free: 7.742 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.023e-06/0.3049, allocations: 0 / 434.4 MB, free: 7.742 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001365/0.305, allocations: 0 / 434.4 MB, free: 7.742 MB / 350.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.007858/0.3129, allocations: 3.274 MB / 437.7 MB, free: 4.402 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.93e-05/0.3129, allocations: 12.03 kB / 437.7 MB, free: 4.391 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006717/0.3136, allocations: 441.4 kB / 438.1 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00887/0.3225, allocations: 2.039 MB / 440.2 MB, free: 1.906 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004443/0.327, allocations: 2.058 MB / 442.2 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001223/0.3271, allocations: 114.6 kB / 442.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001122/0.3283, allocations: 307.5 kB / 442.7 MB, free: 15.39 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01509/0.3434, allocations: 8.215 MB / 450.9 MB, free: 6.602 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.466e-05/0.3435, allocations: 39.7 kB / 450.9 MB, free: 6.562 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000276/0.3438, allocations: 75.89 kB / 451 MB, free: 6.488 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002225/0.346, allocations: 1.405 MB / 452.4 MB, free: 5.078 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01769/0.3637, allocations: 9.534 MB / 461.9 MB, free: 11.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03768/0.4014, allocations: 30.5 MB / 492.4 MB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01217/0.4137, allocations: 4.395 MB / 496.8 MB, free: 7.641 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003003/0.4167, allocations: 2.113 MB / 498.9 MB, free: 5.512 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.198e-05/0.4168, allocations: 8 kB / 498.9 MB, free: 5.504 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.4169, allocations: 54.48 kB / 499 MB, free: 5.441 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 3.818e-06/0.4169, allocations: 0 / 499 MB, free: 5.441 MB / 414.1 MB Notification: Performance of matching and sorting (n=136): time 0.04715/0.464, allocations: 18.46 MB / 0.5053 GB, free: 2.703 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002667/0.4668, allocations: 3.235 MB / 0.5085 GB, free: 15.13 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004116/0.4709, allocations: 3 MB / 0.5114 GB, free: 12.11 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005633/0.4715, allocations: 41.7 kB / 0.5114 GB, free: 12.07 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001437/0.4729, allocations: 2.171 MB / 0.5136 GB, free: 9.875 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008091/0.4737, allocations: 0.5855 MB / 0.5141 GB, free: 9.285 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00144/0.4752, allocations: 1.012 MB / 0.5151 GB, free: 8.262 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.4753, allocations: 305.1 kB / 0.5154 GB, free: 7.961 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004109/0.4794, allocations: 2.574 MB / 0.5179 GB, free: 5.379 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006164/0.4856, allocations: 5.525 MB / 0.5233 GB, free: 14.38 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01073/0.4964, allocations: 8.519 MB / 0.5316 GB, free: 4.398 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001021/0.4965, allocations: 28.19 kB / 0.5317 GB, free: 4.371 MB / 462.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.2346/0.7311, allocations: 9.88 MB / 0.5413 GB, free: 120.4 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.417e-05/0.7312, allocations: 50.03 kB / 0.5414 GB, free: 120.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01113/0.7424, allocations: 5.115 MB / 0.5464 GB, free: 119.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008665/0.7511, allocations: 2.347 MB / 0.5487 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004176/0.7553, allocations: 1.234 MB / 0.5499 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00688/0.7622, allocations: 8.687 MB / 0.5583 GB, free: 111.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005065/0.7673, allocations: 0.5592 MB / 0.5589 GB, free: 111.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000779/0.7681, allocations: 315.9 kB / 0.5592 GB, free: 110.8 MB / 462.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.001914/0.77, allocations: 1.415 MB / 0.5606 GB, free: 109.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000475/0.7705, allocations: 271.2 kB / 0.5608 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005674/0.7711, allocations: 415.2 kB / 0.5612 GB, free: 108.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01021/0.7813, allocations: 5.008 MB / 0.5661 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.391e-05/0.7814, allocations: 4 kB / 0.5661 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-05/0.7814, allocations: 12.06 kB / 0.5661 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007235/0.7886, allocations: 5.36 MB / 0.5714 GB, free: 98.56 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.153e-05/0.7887, allocations: 0 / 0.5714 GB, free: 98.56 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001667/0.7904, allocations: 367.3 kB / 0.5717 GB, free: 98.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007903/0.7983, allocations: 2.385 MB / 0.574 GB, free: 95.79 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000545/0.7989, allocations: 48.81 kB / 0.5741 GB, free: 95.75 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007264/0.8061, allocations: 9.455 MB / 0.5833 GB, free: 85.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001471/0.8077, allocations: 3.066 MB / 0.5863 GB, free: 82.46 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01501/0.8227, allocations: 8.782 MB / 0.5949 GB, free: 73.66 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007897/0.8235, allocations: 340.5 kB / 0.5952 GB, free: 73.32 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006561/0.8242, allocations: 39.28 kB / 0.5953 GB, free: 73.29 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002151/0.8264, allocations: 327.4 kB / 0.5956 GB, free: 72.96 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004256/0.8268, allocations: 109.4 kB / 0.5957 GB, free: 72.86 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001604/0.827, allocations: 51.95 kB / 0.5957 GB, free: 72.81 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002323/0.8293, allocations: 1.867 MB / 0.5976 GB, free: 70.94 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.8293, allocations: 0 / 0.5976 GB, free: 70.94 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004878/0.8342, allocations: 0.9472 MB / 0.5985 GB, free: 70 MB / 462.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.01472/0.8489, allocations: 9.428 MB / 0.6077 GB, free: 60.52 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01048/0.8595, allocations: 7.267 MB / 0.6148 GB, free: 53.14 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/0.8595, allocations: 0 / 0.6148 GB, free: 53.14 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005918/0.8654, allocations: 3.66 MB / 0.6184 GB, free: 49.35 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002722/0.8682, allocations: 317.8 kB / 0.6187 GB, free: 49.04 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06554/0.9338, allocations: 45.19 MB / 0.6628 GB, free: 15.54 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002523/0.9363, allocations: 2.282 MB / 0.665 GB, free: 13.23 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003733/0.9401, allocations: 1.663 MB / 0.6666 GB, free: 11.56 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001894/0.942, allocations: 1.163 MB / 0.6678 GB, free: 10.4 MB / 478.1 MB Notification: Performance of SimCode: time 9.42e-07/0.942, allocations: 0 / 0.6678 GB, free: 10.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1139/1.056, allocations: 62.58 MB / 0.7289 GB, free: 12.12 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.54/18.6, allocations: 4.625 kB / 0.7289 GB, free: 12.11 MB / 0.5294 GB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.csv","/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