Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.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.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",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.002033/0.002034, allocations: 104.1 kB / 17.58 MB, free: 5.422 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.003305/0.003304, allocations: 191.9 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.521/2.521, allocations: 205.1 MB / 224.4 MB, free: 12.29 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.001841/0.001841, allocations: 48.16 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1508, allocations: 46.63 MB / 327.4 MB, free: 4.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01815/0.1691, allocations: 7.674 MB / 335.1 MB, free: 12.65 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01201/0.1812, allocations: 3.291 MB / 338.4 MB, free: 9.348 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002221/0.1835, allocations: 39.88 kB / 338.4 MB, free: 9.309 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004001/0.1876, allocations: 1.035 MB / 339.4 MB, free: 8.27 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006594/0.1942, allocations: 1.335 MB / 340.8 MB, free: 6.93 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002604/0.1969, allocations: 0.5573 MB / 341.3 MB, free: 6.371 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.006218/0.2031, allocations: 2.59 MB / 343.9 MB, free: 3.773 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003749/0.2069, allocations: 1.401 MB / 345.3 MB, free: 2.348 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003124/0.2101, allocations: 0.8368 MB / 346.1 MB, free: 1.508 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0035/0.2136, allocations: 1.156 MB / 347.3 MB, free: 356 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001247/0.2149, allocations: 144 kB / 347.4 MB, free: 212 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00425/0.2192, allocations: 0.9047 MB / 348.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002597/0.2218, allocations: 1.052 MB / 349.4 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003845/0.2257, allocations: 1.254 MB / 350.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009887/0.2356, allocations: 3.964 MB / 354.6 MB, free: 9.008 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.139e-05/0.2357, allocations: 4 kB / 354.6 MB, free: 9.004 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.2357, allocations: 0 / 354.6 MB, free: 9.004 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0002496/0.236, allocations: 0 / 354.6 MB, free: 9.004 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: 951 * Number of variables: 951 Notification: Performance of Generate backend data structure: time 0.01312/0.2491, allocations: 3.015 MB / 357.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.816e-05/0.2492, allocations: 12.03 kB / 357.6 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001063/0.2503, allocations: 462.4 kB / 358.1 MB, free: 5.457 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01046/0.2608, allocations: 1.58 MB / 359.7 MB, free: 3.871 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006261/0.2671, allocations: 1.851 MB / 361.5 MB, free: 1.973 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002219/0.2674, allocations: 127 kB / 361.7 MB, free: 1.848 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009031/0.2683, allocations: 159.9 kB / 361.8 MB, free: 1.691 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01853/0.2868, allocations: 6.538 MB / 368.3 MB, free: 10.67 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001307/0.2871, allocations: 27.81 kB / 368.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004014/0.2875, allocations: 83.83 kB / 368.5 MB, free: 10.56 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003769/0.2913, allocations: 1.468 MB / 369.9 MB, free: 9.094 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01701/0.3083, allocations: 5.83 MB / 375.8 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3601/0.6685, allocations: 25.77 MB / 401.5 MB, free: 32.11 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008453/0.677, allocations: 2.54 MB / 404.1 MB, free: 30.92 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002571/0.6797, allocations: 1.218 MB / 405.3 MB, free: 30.41 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01121/0.6909, allocations: 4.818 MB / 410.1 MB, free: 27.4 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.225e-05/0.6911, allocations: 54 kB / 410.2 MB, free: 27.35 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 7.034e-06/0.6911, allocations: 0 / 410.2 MB, free: 27.35 MB / 318.1 MB Notification: Performance of matching and sorting (n=105): time 0.04121/0.7323, allocations: 9.832 MB / 420 MB, free: 19.74 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/0.7325, allocations: 152.9 kB / 420.1 MB, free: 19.56 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00715/0.7397, allocations: 2.727 MB / 422.9 MB, free: 16.81 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005001/0.7403, allocations: 37.7 kB / 422.9 MB, free: 16.77 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001844/0.7422, allocations: 2.056 MB / 425 MB, free: 14.72 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007442/0.7429, allocations: 433.6 kB / 425.4 MB, free: 14.3 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001552/0.7445, allocations: 0.8287 MB / 426.2 MB, free: 13.46 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.7446, allocations: 309.1 kB / 426.5 MB, free: 13.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003635/0.7482, allocations: 1.441 MB / 428 MB, free: 11.71 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004898/0.7532, allocations: 4.067 MB / 432 MB, free: 6.328 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009377/0.7626, allocations: 5.943 MB / 438 MB, free: 15.07 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.05e-05/0.7627, allocations: 28 kB / 438 MB, free: 15.05 MB / 334.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.02197/0.7847, allocations: 5.997 MB / 444 MB, free: 9.043 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002689/0.785, allocations: 51.94 kB / 444 MB, free: 8.992 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002809/0.7853, allocations: 92 kB / 444.1 MB, free: 8.902 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004542/0.7899, allocations: 0.823 MB / 445 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005924/0.7959, allocations: 0.9435 MB / 445.9 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01147/0.8074, allocations: 4.663 MB / 450.6 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006259/0.8137, allocations: 242.2 kB / 450.8 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00124/0.815, allocations: 256 kB / 451 MB, free: 1.859 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 425 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],rev.cylinderColor[3],rev.cylinderColor[2],rev.cylinderColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[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 (498): * Single equations (assignments): 494 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,11,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004607/0.8196, allocations: 1.38 MB / 452.4 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001045/0.8207, allocations: 225 kB / 452.6 MB, free: 252 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008463/0.8292, allocations: 2.138 MB / 454.8 MB, free: 14.13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.53e-05/0.8293, allocations: 15.91 kB / 454.8 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.293e-05/0.8294, allocations: 7.656 kB / 454.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-05/0.8294, allocations: 3.984 kB / 454.8 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0204/0.8498, allocations: 5.09 MB / 459.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-05/0.8499, allocations: 0 / 459.9 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001557/0.8515, allocations: 159.7 kB / 460.1 MB, free: 8.789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003829/0.8554, allocations: 0.6835 MB / 460.7 MB, free: 8.102 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002575/0.8556, allocations: 16 kB / 460.8 MB, free: 8.086 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009884/0.8655, allocations: 4.142 MB / 464.9 MB, free: 3.793 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.705e-06/0.8656, allocations: 4.031 kB / 464.9 MB, free: 3.789 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01235/0.878, allocations: 4.066 MB / 469 MB, free: 15.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001993/0.88, allocations: 450 kB / 469.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001202/0.8813, allocations: 20.84 kB / 469.4 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002537/0.8838, allocations: 67.89 kB / 469.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004431/0.8843, allocations: 56.36 kB / 469.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002059/0.8846, allocations: 35 kB / 469.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.006039/0.8906, allocations: 1.71 MB / 471.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of sort global known variables: time 4.9e-07/0.8907, allocations: 3.938 kB / 471.3 MB, free: 13.33 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.007962/0.8986, allocations: 0.6705 MB / 472 MB, free: 12.67 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (rev.phi,rev.w) * 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 (74): * Single equations (assignments): 70 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,9,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0136/0.9123, allocations: 4.739 MB / 476.7 MB, free: 7.902 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.01039/0.9227, allocations: 3.687 MB / 480.4 MB, free: 4.238 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.073e-05/0.9228, allocations: 0 / 480.4 MB, free: 4.238 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002726/0.9255, allocations: 1.048 MB / 481.4 MB, free: 3.176 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00368/0.9292, allocations: 261 kB / 481.7 MB, free: 2.926 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08346/1.013, allocations: 32.15 MB / 0.5018 GB, free: 14.18 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003739/1.017, allocations: 2.252 MB / 0.504 GB, free: 11.9 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.005984/1.023, allocations: 1.314 MB / 0.5053 GB, free: 10.58 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003617/1.026, allocations: 1.097 MB / 0.5064 GB, free: 9.484 MB / 414.1 MB Notification: Performance of SimCode: time 2.495e-06/1.026, allocations: 0 / 0.5064 GB, free: 9.484 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4455/1.472, allocations: 45.61 MB / 0.5509 GB, free: 147.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.77/18.24, allocations: 5.25 kB / 0.5509 GB, free: 147.1 MB / 430.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.004 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches