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.001326/0.001326, allocations: 112.5 kB / 17.28 MB, free: 6.199 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.001474/0.001474, allocations: 185.3 kB / 18.2 MB, free: 5.281 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.408/1.408, allocations: 205.1 MB / 224 MB, free: 12.44 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.001138/0.001139, allocations: 60.12 kB / 280.3 MB, free: 3.371 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08756/0.0887, allocations: 46.62 MB / 326.9 MB, free: 4.688 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01743/0.1062, allocations: 18.15 MB / 345 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01043/0.1167, allocations: 4.97 MB / 350 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003406/0.1202, allocations: 71.81 kB / 350.1 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00206/0.1223, allocations: 0.9815 MB / 351.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003182/0.1254, allocations: 1.254 MB / 352.3 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001123/0.1266, allocations: 0.4991 MB / 352.8 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002883/0.1295, allocations: 2.633 MB / 355.4 MB, free: 8.012 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00152/0.131, allocations: 1.475 MB / 356.9 MB, free: 6.512 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008755/0.1319, allocations: 0.8484 MB / 357.8 MB, free: 5.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001208/0.1331, allocations: 1.3 MB / 359.1 MB, free: 4.355 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000202/0.1333, allocations: 147.9 kB / 359.2 MB, free: 4.211 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001247/0.1346, allocations: 0.9087 MB / 360.1 MB, free: 3.301 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007593/0.1354, allocations: 1.079 MB / 361.2 MB, free: 2.219 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000912/0.1363, allocations: 1.269 MB / 362.5 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00332/0.1396, allocations: 3.999 MB / 366.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.1396, allocations: 4 kB / 366.5 MB, free: 12.93 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1397, allocations: 4 kB / 366.5 MB, free: 12.92 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.748e-05/0.1397, allocations: 0 / 366.5 MB, free: 12.92 MB / 318.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.00443/0.1441, allocations: 3.019 MB / 369.5 MB, free: 9.844 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.1442, allocations: 15.97 kB / 369.5 MB, free: 9.828 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004542/0.1447, allocations: 458.4 kB / 370 MB, free: 9.371 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004958/0.1496, allocations: 1.58 MB / 371.5 MB, free: 7.785 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002762/0.1524, allocations: 1.843 MB / 373.4 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.89e-05/0.1525, allocations: 123 kB / 373.5 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002837/0.1528, allocations: 167.7 kB / 373.7 MB, free: 5.609 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1485/0.3013, allocations: 6.532 MB / 380.2 MB, free: 50.89 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.371e-05/0.3014, allocations: 28.97 kB / 380.2 MB, free: 50.88 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002411/0.3017, allocations: 78.5 kB / 380.3 MB, free: 50.88 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00254/0.3042, allocations: 1.468 MB / 381.8 MB, free: 50.86 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01069/0.3149, allocations: 5.83 MB / 387.6 MB, free: 49.24 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02417/0.3391, allocations: 25.78 MB / 413.4 MB, free: 28.87 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004886/0.344, allocations: 2.54 MB / 415.9 MB, free: 26.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001145/0.3452, allocations: 1.224 MB / 417.1 MB, free: 24.95 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006037/0.3513, allocations: 4.825 MB / 422 MB, free: 20.05 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.3513, allocations: 42.56 kB / 422 MB, free: 20 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 4.178e-06/0.3513, allocations: 0 / 422 MB, free: 20 MB / 318.1 MB Notification: Performance of matching and sorting (n=105): time 0.02037/0.3717, allocations: 9.846 MB / 431.9 MB, free: 10.03 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/0.3718, allocations: 143.9 kB / 432 MB, free: 9.863 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002754/0.3746, allocations: 2.727 MB / 434.7 MB, free: 7.117 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.55e-05/0.3747, allocations: 41.7 kB / 434.8 MB, free: 7.07 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008569/0.3755, allocations: 2.06 MB / 436.8 MB, free: 4.98 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002942/0.3758, allocations: 426.7 kB / 437.2 MB, free: 4.559 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007701/0.3766, allocations: 0.833 MB / 438.1 MB, free: 3.715 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.929e-05/0.3767, allocations: 301.1 kB / 438.4 MB, free: 3.418 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001559/0.3783, allocations: 1.441 MB / 439.8 MB, free: 1.973 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003186/0.3814, allocations: 4.069 MB / 443.9 MB, free: 12.58 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006477/0.3879, allocations: 5.935 MB / 449.8 MB, free: 5.336 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-05/0.388, allocations: 28 kB / 449.8 MB, free: 5.309 MB / 334.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01103/0.3991, allocations: 6.006 MB / 455.8 MB, free: 15.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001351/0.3993, allocations: 51.98 kB / 455.9 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.331e-05/0.3994, allocations: 95.94 kB / 456 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00232/0.4017, allocations: 0.819 MB / 456.8 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002974/0.4047, allocations: 0.9435 MB / 457.8 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006615/0.4113, allocations: 4.659 MB / 462.4 MB, free: 8.594 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003394/0.4147, allocations: 239.6 kB / 462.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003457/0.4151, allocations: 260 kB / 462.9 MB, free: 8.105 MB / 350.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.002514/0.4176, allocations: 1.372 MB / 464.3 MB, free: 6.719 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004677/0.4181, allocations: 229 kB / 464.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004179/0.4223, allocations: 2.128 MB / 466.6 MB, free: 4.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.456e-05/0.4223, allocations: 19.88 kB / 466.6 MB, free: 4.332 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.4223, allocations: 4 kB / 466.6 MB, free: 4.328 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.4223, allocations: 7.969 kB / 466.7 MB, free: 4.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008872/0.4312, allocations: 5.087 MB / 471.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.4312, allocations: 0 / 471.7 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000765/0.432, allocations: 155.8 kB / 471.9 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002116/0.4341, allocations: 0.6835 MB / 472.6 MB, free: 14.32 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.542e-05/0.4342, allocations: 20 kB / 472.6 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005274/0.4395, allocations: 4.15 MB / 476.7 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.304e-06/0.4395, allocations: 8.844 kB / 476.8 MB, free: 9.992 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006351/0.4459, allocations: 4.055 MB / 480.8 MB, free: 5.902 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/0.4469, allocations: 446 kB / 481.2 MB, free: 5.445 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002535/0.4472, allocations: 27.97 kB / 481.3 MB, free: 5.418 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009375/0.4481, allocations: 67.89 kB / 481.3 MB, free: 5.352 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002001/0.4483, allocations: 60.25 kB / 481.4 MB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.721e-05/0.4484, allocations: 31.98 kB / 481.4 MB, free: 5.262 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002539/0.451, allocations: 1.71 MB / 483.1 MB, free: 3.543 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.451, allocations: 0 / 483.1 MB, free: 3.543 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003508/0.4545, allocations: 0.6705 MB / 483.8 MB, free: 2.883 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.007024/0.4615, allocations: 4.724 MB / 488.5 MB, free: 14.13 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006255/0.4678, allocations: 3.702 MB / 492.2 MB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.4678, allocations: 0 / 492.2 MB, free: 10.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00142/0.4693, allocations: 1.037 MB / 493.3 MB, free: 9.398 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001713/0.471, allocations: 274.5 kB / 493.5 MB, free: 9.133 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05318/0.5242, allocations: 33.27 MB / 0.5145 GB, free: 3.281 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002163/0.5264, allocations: 2.241 MB / 0.5166 GB, free: 1.012 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003128/0.5295, allocations: 1.319 MB / 0.5179 GB, free: 15.68 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001348/0.5309, allocations: 1.105 MB / 0.519 GB, free: 14.58 MB / 430.1 MB Notification: Performance of SimCode: time 8.51e-07/0.5309, allocations: 0 / 0.519 GB, free: 14.58 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2375/0.7684, allocations: 45.5 MB / 0.5634 GB, free: 136.8 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001639/0.7686, allocations: 253.7 kB / 0.5637 GB, free: 136.6 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.107/3.875, allocations: 0 / 0.5637 GB, free: 136.6 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-08 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.mat","/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","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches