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.0008739/0.0008738, allocations: 95.14 kB / 17.3 MB, free: 6.391 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.0008942/0.0008942, allocations: 172.7 kB / 18.2 MB, free: 5.551 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.207/1.207, allocations: 205.4 MB / 224.4 MB, free: 13.08 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.0003936/0.0003936, allocations: 16 kB / 281.5 MB, free: 3.309 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07279/0.07319, allocations: 47.58 MB / 329.1 MB, free: 3.656 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01389/0.08712, allocations: 17.48 MB / 346.6 MB, free: 2.098 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.007351/0.0945, allocations: 5.01 MB / 351.6 MB, free: 13.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008607/0.09538, allocations: 71.81 kB / 351.6 MB, free: 13 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005287/0.09592, allocations: 278.6 kB / 351.9 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001973/0.0979, allocations: 1.262 MB / 353.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007736/0.09868, allocations: 0.4952 MB / 353.7 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002847/0.1015, allocations: 3.585 MB / 357.2 MB, free: 7.371 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001775/0.1033, allocations: 1.736 MB / 359 MB, free: 5.598 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006486/0.104, allocations: 0.6962 MB / 359.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001107/0.1051, allocations: 1.175 MB / 360.9 MB, free: 3.719 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001478/0.1053, allocations: 84 kB / 360.9 MB, free: 3.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001181/0.1065, allocations: 0.8852 MB / 361.8 MB, free: 2.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007042/0.1072, allocations: 1.02 MB / 362.8 MB, free: 1.727 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007975/0.108, allocations: 1.208 MB / 364 MB, free: 0.5039 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002785/0.1108, allocations: 3.865 MB / 367.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.1108, allocations: 0 / 367.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1108, allocations: 4 kB / 367.9 MB, free: 12.62 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.407e-05/0.1108, allocations: 0 / 367.9 MB, free: 12.62 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.003469/0.1143, allocations: 2.512 MB / 370.4 MB, free: 10.05 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.1143, allocations: 12.03 kB / 370.4 MB, free: 10.04 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004286/0.1148, allocations: 466.4 kB / 370.9 MB, free: 9.574 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004929/0.1197, allocations: 1.623 MB / 372.5 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002287/0.122, allocations: 1.844 MB / 374.4 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.226e-05/0.1221, allocations: 123 kB / 374.5 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002979/0.1224, allocations: 163.8 kB / 374.6 MB, free: 5.773 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1373/0.2597, allocations: 6.531 MB / 381.2 MB, free: 26.58 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.411e-05/0.2598, allocations: 31.03 kB / 381.2 MB, free: 26.58 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002382/0.2601, allocations: 82.3 kB / 381.3 MB, free: 26.58 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002458/0.2625, allocations: 1.467 MB / 382.8 MB, free: 26.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00955/0.2721, allocations: 5.848 MB / 388.6 MB, free: 26.56 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01996/0.2921, allocations: 25.78 MB / 414.4 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004466/0.2966, allocations: 2.575 MB / 417 MB, free: 7.609 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001072/0.2977, allocations: 1.224 MB / 418.2 MB, free: 6.953 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005123/0.3028, allocations: 4.792 MB / 423 MB, free: 3 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.82e-05/0.3028, allocations: 42.56 kB / 423 MB, free: 2.949 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.306e-06/0.3028, allocations: 0 / 423 MB, free: 2.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=105): time 0.02001/0.3228, allocations: 9.821 MB / 432.8 MB, free: 9.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.931e-05/0.3229, allocations: 140.7 kB / 433 MB, free: 8.855 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002945/0.3259, allocations: 2.733 MB / 435.7 MB, free: 6.105 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.806e-05/0.326, allocations: 38.33 kB / 435.7 MB, free: 6.062 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001126/0.3271, allocations: 2.054 MB / 437.8 MB, free: 4.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003004/0.3274, allocations: 427.8 kB / 438.2 MB, free: 3.605 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003565/0.3278, allocations: 355.6 kB / 438.6 MB, free: 3.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 7.335e-05/0.3278, allocations: 305.1 kB / 438.9 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001818/0.3297, allocations: 1.441 MB / 440.3 MB, free: 1.504 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003129/0.3328, allocations: 4.056 MB / 444.4 MB, free: 12.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005273/0.3381, allocations: 5.952 MB / 450.3 MB, free: 5.293 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.613e-05/0.3381, allocations: 24 kB / 450.3 MB, free: 5.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.008567/0.3467, allocations: 6.011 MB / 456.3 MB, free: 15.58 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.912e-05/0.3468, allocations: 46.08 kB / 456.4 MB, free: 15.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.021e-05/0.3468, allocations: 96 kB / 456.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00211/0.349, allocations: 0.8237 MB / 457.3 MB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002328/0.3513, allocations: 0.9357 MB / 458.2 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00491/0.3562, allocations: 4.351 MB / 462.6 MB, free: 9.215 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002093/0.3583, allocations: 243.6 kB / 462.8 MB, free: 8.977 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002642/0.3586, allocations: 256.7 kB / 463.1 MB, free: 8.727 MB / 366.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.001574/0.3602, allocations: 1.381 MB / 464.5 MB, free: 7.332 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002715/0.3605, allocations: 225 kB / 464.7 MB, free: 7.109 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003894/0.3644, allocations: 2.126 MB / 466.8 MB, free: 4.965 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.977e-05/0.3644, allocations: 15.94 kB / 466.8 MB, free: 4.949 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.111e-06/0.3644, allocations: 4 kB / 466.8 MB, free: 4.945 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.3644, allocations: 3.984 kB / 466.8 MB, free: 4.941 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007363/0.3718, allocations: 5.089 MB / 471.9 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3718, allocations: 0.875 kB / 471.9 MB, free: 15.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006569/0.3725, allocations: 155.8 kB / 472.1 MB, free: 15.65 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001931/0.3744, allocations: 0.6835 MB / 472.8 MB, free: 14.96 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.423e-05/0.3745, allocations: 20 kB / 472.8 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004271/0.3788, allocations: 3.898 MB / 476.7 MB, free: 10.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/0.3788, allocations: 7.969 kB / 476.7 MB, free: 10.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005422/0.3842, allocations: 4.062 MB / 480.7 MB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005779/0.3848, allocations: 461.9 kB / 481.2 MB, free: 6.332 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001916/0.385, allocations: 12 kB / 481.2 MB, free: 6.32 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000841/0.3858, allocations: 75.89 kB / 481.3 MB, free: 6.246 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001492/0.386, allocations: 52.3 kB / 481.3 MB, free: 6.195 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.286e-05/0.3861, allocations: 33.17 kB / 481.4 MB, free: 6.164 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001906/0.388, allocations: 1.71 MB / 483.1 MB, free: 4.445 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.388, allocations: 4 kB / 483.1 MB, free: 4.441 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00236/0.3904, allocations: 0.6707 MB / 483.7 MB, free: 3.781 MB / 382.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.00587/0.3962, allocations: 4.721 MB / 488.5 MB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00408/0.4003, allocations: 3.467 MB / 491.9 MB, free: 11.58 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.4003, allocations: 0 / 491.9 MB, free: 11.58 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001169/0.4015, allocations: 1.044 MB / 493 MB, free: 10.52 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001598/0.4031, allocations: 253 kB / 493.2 MB, free: 10.28 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03695/0.4401, allocations: 33.35 MB / 0.5142 GB, free: 4.367 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001835/0.442, allocations: 2.243 MB / 0.5164 GB, free: 2.098 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00266/0.4446, allocations: 1.317 MB / 0.5177 GB, free: 0.7734 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001234/0.4459, allocations: 1.113 MB / 0.5188 GB, free: 15.7 MB / 446.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4459, allocations: 0 / 0.5188 GB, free: 15.7 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.38/1.826, allocations: 44.12 MB / 0.5619 GB, free: 152.2 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001758/1.826, allocations: 254.3 kB / 0.5621 GB, free: 151.9 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.212/5.039, allocations: 0 / 0.5621 GB, free: 151.9 MB / 446.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