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.001384/0.001384, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00138/0.00138, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.547/1.547, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001813, allocations: 59.91 kB / 358.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2795, allocations: 50.55 MB / 408.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.008674/0.2882, allocations: 6.953 MB / 415.7 MB, free: 10.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006474/0.2947, allocations: 3.111 MB / 418.8 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008645/0.2956, allocations: 31.94 kB / 418.9 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001601/0.2973, allocations: 0.6653 MB / 419.5 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003329/0.3006, allocations: 1.358 MB / 420.9 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001032/0.3017, allocations: 0.4913 MB / 421.4 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0048/0.3065, allocations: 3.202 MB / 424.6 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008848/0.3074, allocations: 455.1 kB / 425 MB, free: 1.176 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001405/0.3088, allocations: 0.7822 MB / 425.8 MB, free: 400 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001831/0.3107, allocations: 1.211 MB / 427 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004483/0.3111, allocations: 132 kB / 427.1 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001967/0.3131, allocations: 0.932 MB / 428.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001175/0.3143, allocations: 1.067 MB / 429.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001493/0.3158, allocations: 1.223 MB / 430.4 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00522/0.321, allocations: 4.021 MB / 434.4 MB, free: 7.777 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.871e-06/0.3211, allocations: 4 kB / 434.4 MB, free: 7.773 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3211, allocations: 0 / 434.4 MB, free: 7.773 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.252e-05/0.3212, allocations: 0 / 434.4 MB, free: 7.773 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.007068/0.3282, allocations: 3.278 MB / 437.7 MB, free: 4.43 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.3283, allocations: 12.03 kB / 437.7 MB, free: 4.418 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006225/0.3289, allocations: 433.4 kB / 438.1 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008606/0.3376, allocations: 2.047 MB / 440.2 MB, free: 1.934 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004483/0.3421, allocations: 2.058 MB / 442.2 MB, free: 15.83 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001229/0.3422, allocations: 110.6 kB / 442.3 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001148/0.3434, allocations: 299.5 kB / 442.6 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01664/0.36, allocations: 8.227 MB / 450.8 MB, free: 6.629 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.98e-05/0.3602, allocations: 39.64 kB / 450.9 MB, free: 6.59 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000374/0.3606, allocations: 79.89 kB / 451 MB, free: 6.512 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002405/0.363, allocations: 1.393 MB / 452.4 MB, free: 5.113 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01926/0.3823, allocations: 9.55 MB / 461.9 MB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04149/0.4238, allocations: 30.49 MB / 492.4 MB, free: 12.21 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01192/0.4358, allocations: 4.379 MB / 496.8 MB, free: 7.676 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003151/0.439, allocations: 2.12 MB / 498.9 MB, free: 5.539 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.83e-05/0.4391, allocations: 15.98 kB / 498.9 MB, free: 5.523 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.467e-05/0.4391, allocations: 42.56 kB / 499 MB, free: 5.473 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 5.139e-06/0.4391, allocations: 0 / 499 MB, free: 5.473 MB / 414.1 MB Notification: Performance of matching and sorting (n=136): time 0.0481/0.4872, allocations: 18.47 MB / 0.5053 GB, free: 2.734 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002741/0.49, allocations: 3.243 MB / 0.5085 GB, free: 15.16 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004558/0.4946, allocations: 3.004 MB / 0.5114 GB, free: 12.13 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005503/0.4952, allocations: 45.69 kB / 0.5114 GB, free: 12.08 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001852/0.4971, allocations: 2.163 MB / 0.5135 GB, free: 9.898 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001077/0.4982, allocations: 0.5893 MB / 0.5141 GB, free: 9.305 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001715/0.4999, allocations: 1.012 MB / 0.5151 GB, free: 8.281 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.5, allocations: 305.1 kB / 0.5154 GB, free: 7.98 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004471/0.5045, allocations: 2.574 MB / 0.5179 GB, free: 5.398 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007312/0.5119, allocations: 5.521 MB / 0.5233 GB, free: 14.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01188/0.5238, allocations: 8.518 MB / 0.5316 GB, free: 4.422 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-05/0.5239, allocations: 32 kB / 0.5317 GB, free: 4.391 MB / 462.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.248/0.772, allocations: 9.873 MB / 0.5413 GB, free: 120.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.46e-05/0.7721, allocations: 50.31 kB / 0.5413 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.01046/0.7826, allocations: 5.111 MB / 0.5463 GB, free: 119.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008032/0.7907, allocations: 2.352 MB / 0.5486 GB, free: 119.2 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003776/0.7945, allocations: 1.228 MB / 0.5498 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006873/0.8014, allocations: 8.698 MB / 0.5583 GB, free: 111.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004953/0.8064, allocations: 0.5549 MB / 0.5589 GB, free: 111 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001033/0.8075, allocations: 319.5 kB / 0.5592 GB, free: 110.7 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.002235/0.8097, allocations: 1.416 MB / 0.5606 GB, free: 109.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005278/0.8103, allocations: 267.1 kB / 0.5608 GB, free: 109.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007526/0.811, allocations: 415.2 kB / 0.5612 GB, free: 108.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009716/0.8207, allocations: 5.015 MB / 0.5661 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.66e-05/0.8208, allocations: 4 kB / 0.5661 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.351e-05/0.8208, allocations: 7.984 kB / 0.5661 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007288/0.8281, allocations: 5.351 MB / 0.5713 GB, free: 98.45 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.49e-05/0.8282, allocations: 4 kB / 0.5713 GB, free: 98.45 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001737/0.8299, allocations: 365.7 kB / 0.5717 GB, free: 98.09 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007199/0.8371, allocations: 2.396 MB / 0.574 GB, free: 95.68 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006856/0.8379, allocations: 43.95 kB / 0.5741 GB, free: 95.63 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007322/0.8452, allocations: 9.456 MB / 0.5833 GB, free: 85.69 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001432/0.8467, allocations: 3.061 MB / 0.5863 GB, free: 82.35 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01432/0.8611, allocations: 8.784 MB / 0.5949 GB, free: 73.57 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007646/0.8619, allocations: 338.4 kB / 0.5952 GB, free: 73.22 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006478/0.8625, allocations: 39.92 kB / 0.5952 GB, free: 73.18 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002011/0.8645, allocations: 319.4 kB / 0.5955 GB, free: 72.87 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004425/0.865, allocations: 111.5 kB / 0.5956 GB, free: 72.76 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001578/0.8652, allocations: 59.75 kB / 0.5957 GB, free: 72.71 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002196/0.8674, allocations: 1.871 MB / 0.5975 GB, free: 70.83 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.223e-06/0.8674, allocations: 0 / 0.5975 GB, free: 70.83 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004368/0.8717, allocations: 0.9492 MB / 0.5985 GB, free: 69.89 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.01384/0.8856, allocations: 9.416 MB / 0.6077 GB, free: 60.42 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01025/0.8959, allocations: 7.271 MB / 0.6148 GB, free: 53.04 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.8959, allocations: 0 / 0.6148 GB, free: 53.04 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005344/0.9013, allocations: 3.655 MB / 0.6183 GB, free: 49.25 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002453/0.9038, allocations: 308.9 kB / 0.6186 GB, free: 48.95 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06757/0.9714, allocations: 45.19 MB / 0.6628 GB, free: 15.45 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00261/0.9741, allocations: 2.29 MB / 0.665 GB, free: 13.13 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004099/0.9782, allocations: 1.663 MB / 0.6666 GB, free: 11.46 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002179/0.9804, allocations: 1.171 MB / 0.6678 GB, free: 10.29 MB / 478.1 MB Notification: Performance of SimCode: time 7.92e-07/0.9804, allocations: 0 / 0.6678 GB, free: 10.29 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.131/1.111, allocations: 62.57 MB / 0.7289 GB, free: 12.02 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.84/20.95, allocations: 8.625 kB / 0.7289 GB, free: 12.02 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.1.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