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.001808/0.001808, allocations: 103.5 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001727/0.001727, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.437/1.437, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 60.98 kB / 307.1 MB, free: 0.5039 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08869/0.0899, allocations: 50.53 MB / 357.6 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.007796/0.09774, allocations: 6.959 MB / 364.5 MB, free: 6.973 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006006/0.1038, allocations: 3.115 MB / 367.7 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000993/0.1048, allocations: 31.94 kB / 367.7 MB, free: 3.816 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00165/0.1065, allocations: 0.6614 MB / 368.3 MB, free: 3.152 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00344/0.11, allocations: 1.362 MB / 369.7 MB, free: 1.785 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001133/0.1112, allocations: 0.4913 MB / 370.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1813/0.2925, allocations: 3.199 MB / 373.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001153/0.2937, allocations: 461 kB / 373.9 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001572/0.2953, allocations: 0.7785 MB / 374.6 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00215/0.2974, allocations: 1.207 MB / 375.8 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006689/0.2981, allocations: 128.9 kB / 376 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002239/0.3004, allocations: 0.933 MB / 376.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001614/0.302, allocations: 1.07 MB / 378 MB, free: 9.164 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002073/0.3041, allocations: 1.216 MB / 379.2 MB, free: 8.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005799/0.3099, allocations: 3.838 MB / 383 MB, free: 8.062 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.31, allocations: 1.094 kB / 383 MB, free: 8.062 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.31, allocations: 0 / 383 MB, free: 8.062 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000141/0.3101, allocations: 0 / 383 MB, free: 8.062 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.008353/0.3185, allocations: 3.201 MB / 386.2 MB, free: 6.406 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.3185, allocations: 9.75 kB / 386.2 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005255/0.3191, allocations: 439.2 kB / 386.7 MB, free: 6.215 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008375/0.3274, allocations: 2.023 MB / 388.7 MB, free: 5.449 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00391/0.3314, allocations: 2.026 MB / 390.7 MB, free: 4.332 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.3315, allocations: 119.9 kB / 390.8 MB, free: 4.297 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001014/0.3325, allocations: 302.3 kB / 391.1 MB, free: 4.211 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01559/0.3481, allocations: 8.226 MB / 399.3 MB, free: 15.12 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.428e-05/0.3482, allocations: 34.94 kB / 399.4 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002873/0.3485, allocations: 74.95 kB / 399.5 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00235/0.3509, allocations: 1.407 MB / 400.9 MB, free: 13.68 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01737/0.3683, allocations: 9.532 MB / 410.4 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03511/0.4034, allocations: 30.53 MB / 440.9 MB, free: 5.211 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01203/0.4155, allocations: 4.387 MB / 445.3 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002706/0.4182, allocations: 2.117 MB / 447.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.91e-05/0.4183, allocations: 10.97 kB / 447.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.4184, allocations: 49.84 kB / 447.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of pre-optimization done (n=122): time 3.666e-06/0.4184, allocations: 4 kB / 447.5 MB, free: 14.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=136): time 0.04794/0.4663, allocations: 18.31 MB / 465.8 MB, free: 11.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002425/0.4688, allocations: 3.224 MB / 469 MB, free: 8.355 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005209/0.474, allocations: 2.995 MB / 472 MB, free: 5.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006427/0.4747, allocations: 41.7 kB / 472.1 MB, free: 5.293 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001727/0.4764, allocations: 2.081 MB / 474.1 MB, free: 3.219 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00117/0.4776, allocations: 0.5643 MB / 474.7 MB, free: 2.66 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002597/0.4802, allocations: 1.004 MB / 475.7 MB, free: 1.648 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.213e-05/0.4803, allocations: 305.1 kB / 476 MB, free: 1.348 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003911/0.4842, allocations: 2.574 MB / 478.6 MB, free: 14.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005776/0.49, allocations: 5.526 MB / 484.1 MB, free: 7.773 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01017/0.5002, allocations: 8.511 MB / 492.6 MB, free: 13.8 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.148e-05/0.5003, allocations: 32 kB / 492.6 MB, free: 13.77 MB / 414.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.02194/0.5223, allocations: 9.861 MB / 0.4907 GB, free: 3.887 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.575e-05/0.5224, allocations: 56.16 kB / 0.4908 GB, free: 3.832 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01254/0.535, allocations: 5.11 MB / 0.4958 GB, free: 14.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009431/0.5444, allocations: 2.355 MB / 0.4981 GB, free: 12.31 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004613/0.5491, allocations: 1.232 MB / 0.4993 GB, free: 11.08 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009096/0.5582, allocations: 8.694 MB / 0.5078 GB, free: 1.828 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005448/0.5637, allocations: 0.5615 MB / 0.5083 GB, free: 1.266 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001093/0.5648, allocations: 311.9 kB / 0.5086 GB, free: 0.9609 MB / 430.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.003081/0.5679, allocations: 1.434 MB / 0.51 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007805/0.5687, allocations: 252.7 kB / 0.5103 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001097/0.5698, allocations: 415.2 kB / 0.5106 GB, free: 14.86 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01305/0.5829, allocations: 5.014 MB / 0.5155 GB, free: 9.805 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-05/0.5829, allocations: 8 kB / 0.5156 GB, free: 9.797 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.021e-05/0.583, allocations: 7.969 kB / 0.5156 GB, free: 9.789 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01177/0.5948, allocations: 5.354 MB / 0.5208 GB, free: 4.375 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/0.5948, allocations: 0 / 0.5208 GB, free: 4.375 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001925/0.5967, allocations: 375.4 kB / 0.5211 GB, free: 4.008 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009318/0.6061, allocations: 2.386 MB / 0.5235 GB, free: 1.594 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004687/0.6066, allocations: 51.94 kB / 0.5235 GB, free: 1.543 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1704/0.7769, allocations: 9.445 MB / 0.5328 GB, free: 139.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.00154/0.7785, allocations: 3.074 MB / 0.5358 GB, free: 136.5 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01848/0.797, allocations: 8.765 MB / 0.5443 GB, free: 134.2 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009179/0.798, allocations: 317.2 kB / 0.5446 GB, free: 134.1 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009953/0.799, allocations: 34.91 kB / 0.5446 GB, free: 134.1 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002702/0.8017, allocations: 324.5 kB / 0.545 GB, free: 134.1 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006228/0.8024, allocations: 111.3 kB / 0.5451 GB, free: 134.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001907/0.8026, allocations: 47.39 kB / 0.5451 GB, free: 134.1 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003221/0.8058, allocations: 1.873 MB / 0.5469 GB, free: 133.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.8058, allocations: 3.812 kB / 0.5469 GB, free: 133.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00414/0.8099, allocations: 0.9408 MB / 0.5479 GB, free: 133.4 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.01577/0.8257, allocations: 9.42 MB / 0.5571 GB, free: 130 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01239/0.8382, allocations: 7.54 MB / 0.5644 GB, free: 124.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.198e-06/0.8382, allocations: 0 / 0.5644 GB, free: 124.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005977/0.8442, allocations: 3.65 MB / 0.568 GB, free: 120.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002356/0.8466, allocations: 316.7 kB / 0.5683 GB, free: 120.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07024/0.9168, allocations: 47.97 MB / 0.6151 GB, free: 67.04 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001786/0.9187, allocations: 2.295 MB / 0.6174 GB, free: 64.71 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003683/0.9224, allocations: 1.659 MB / 0.619 GB, free: 63.05 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001487/0.9239, allocations: 1.159 MB / 0.6201 GB, free: 61.89 MB / 446.1 MB Notification: Performance of SimCode: time 9.41e-07/0.9239, allocations: 0 / 0.6201 GB, free: 61.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09173/1.016, allocations: 65.62 MB / 0.6842 GB, free: 12.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.73/13.75, allocations: 23.28 kB / 0.6842 GB, free: 12.48 MB / 462.1 MB (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