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.001098/0.001098, allocations: 108.1 kB / 17.15 MB, free: 6.309 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.001143/0.001143, allocations: 198 kB / 18.07 MB, free: 5.41 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.371/1.371, allocations: 205.1 MB / 223.9 MB, free: 12.46 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.001318/0.001318, allocations: 51.86 kB / 280.1 MB, free: 3.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08776/0.08909, allocations: 46.62 MB / 326.7 MB, free: 4.789 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01751/0.1066, allocations: 18.16 MB / 344.9 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01196/0.1187, allocations: 5.068 MB / 349.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00388/0.1226, allocations: 75.81 kB / 350 MB, free: 13.39 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002521/0.1252, allocations: 0.9971 MB / 351 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003295/0.1285, allocations: 1.25 MB / 352.2 MB, free: 11.14 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001314/0.1298, allocations: 0.4991 MB / 352.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004072/0.1339, allocations: 3.577 MB / 356.3 MB, free: 7.051 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002143/0.1361, allocations: 1.365 MB / 357.7 MB, free: 5.664 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00147/0.1376, allocations: 0.7547 MB / 358.4 MB, free: 4.906 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001891/0.1395, allocations: 1.238 MB / 359.7 MB, free: 3.664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000592/0.1401, allocations: 104 kB / 359.8 MB, free: 3.562 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002253/0.1423, allocations: 0.9086 MB / 360.7 MB, free: 2.652 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001347/0.1437, allocations: 1.044 MB / 361.7 MB, free: 1.605 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001895/0.1456, allocations: 1.23 MB / 363 MB, free: 376 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004697/0.1503, allocations: 3.933 MB / 366.9 MB, free: 12.42 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.474e-06/0.1503, allocations: 0 / 366.9 MB, free: 12.42 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1504, allocations: 3.938 kB / 366.9 MB, free: 12.42 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001514/0.1505, allocations: 0 / 366.9 MB, free: 12.42 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.007116/0.1576, allocations: 3.027 MB / 369.9 MB, free: 9.332 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.1577, allocations: 8.031 kB / 369.9 MB, free: 9.324 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006571/0.1584, allocations: 458.4 kB / 370.4 MB, free: 8.867 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00511/0.1635, allocations: 1.58 MB / 372 MB, free: 7.281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003202/0.1667, allocations: 1.847 MB / 373.8 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000109/0.1668, allocations: 123 kB / 373.9 MB, free: 5.266 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005413/0.1674, allocations: 171.7 kB / 374.1 MB, free: 5.098 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1697/0.3371, allocations: 6.528 MB / 380.6 MB, free: 51.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-05/0.3372, allocations: 25.53 kB / 380.7 MB, free: 51.05 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002513/0.3375, allocations: 85.73 kB / 380.7 MB, free: 51.05 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00273/0.3402, allocations: 1.464 MB / 382.2 MB, free: 51.04 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01099/0.3512, allocations: 5.833 MB / 388 MB, free: 49.35 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02575/0.377, allocations: 25.79 MB / 413.8 MB, free: 28.79 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004789/0.3819, allocations: 2.538 MB / 416.4 MB, free: 26.1 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001257/0.3832, allocations: 1.219 MB / 417.6 MB, free: 24.87 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00645/0.3896, allocations: 4.821 MB / 422.4 MB, free: 19.98 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.04e-05/0.3897, allocations: 42.55 kB / 422.4 MB, free: 19.93 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.536e-06/0.3897, allocations: 0 / 422.4 MB, free: 19.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=105): time 0.02181/0.4115, allocations: 9.854 MB / 432.3 MB, free: 9.957 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.585e-05/0.4116, allocations: 141 kB / 432.4 MB, free: 9.789 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003704/0.4153, allocations: 2.727 MB / 435.2 MB, free: 7.043 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002447/0.4156, allocations: 41.7 kB / 435.2 MB, free: 6.996 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009521/0.4166, allocations: 2.062 MB / 437.3 MB, free: 4.914 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005136/0.4171, allocations: 422.7 kB / 437.7 MB, free: 4.496 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001226/0.4183, allocations: 0.8369 MB / 438.5 MB, free: 3.648 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.743e-05/0.4184, allocations: 309.1 kB / 438.8 MB, free: 3.344 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001883/0.4203, allocations: 1.437 MB / 440.2 MB, free: 1.902 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003528/0.4238, allocations: 4.057 MB / 444.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006631/0.4305, allocations: 5.935 MB / 450.2 MB, free: 5.277 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.562e-05/0.4306, allocations: 28 kB / 450.3 MB, free: 5.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01154/0.4422, allocations: 6.009 MB / 456.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.055e-05/0.4423, allocations: 44 kB / 456.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001429/0.4425, allocations: 95.94 kB / 456.4 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002393/0.4449, allocations: 0.8207 MB / 457.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003173/0.4481, allocations: 0.9474 MB / 458.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005696/0.4538, allocations: 4.34 MB / 462.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003167/0.457, allocations: 243.5 kB / 462.8 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007717/0.4578, allocations: 260 kB / 463 MB, free: 8.363 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.002588/0.4604, allocations: 1.368 MB / 464.4 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005646/0.4609, allocations: 229 kB / 464.6 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004239/0.4652, allocations: 2.134 MB / 466.7 MB, free: 4.605 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.183e-05/0.4652, allocations: 16.56 kB / 466.8 MB, free: 4.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/0.4653, allocations: 4 kB / 466.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.4653, allocations: 7.922 kB / 466.8 MB, free: 4.578 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009619/0.4749, allocations: 5.082 MB / 471.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.22e-05/0.475, allocations: 0 / 471.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007799/0.4758, allocations: 159.8 kB / 472 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002054/0.4778, allocations: 0.6988 MB / 472.7 MB, free: 14.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001214/0.478, allocations: 12 kB / 472.7 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004728/0.4827, allocations: 3.886 MB / 476.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/0.4827, allocations: 7.969 kB / 476.6 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006497/0.4892, allocations: 4.051 MB / 480.7 MB, free: 6.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001001/0.4903, allocations: 454 kB / 481.1 MB, free: 5.965 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004852/0.4908, allocations: 20 kB / 481.1 MB, free: 5.945 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00115/0.4919, allocations: 75.94 kB / 481.2 MB, free: 5.871 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000221/0.4922, allocations: 60.3 kB / 481.3 MB, free: 5.812 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.601e-05/0.4923, allocations: 31.98 kB / 481.3 MB, free: 5.781 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002937/0.4952, allocations: 1.706 MB / 483 MB, free: 4.066 MB / 366.1 MB Notification: Performance of sort global known variables: time 5.71e-07/0.4952, allocations: 0 / 483 MB, free: 4.066 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003592/0.4988, allocations: 0.6666 MB / 483.7 MB, free: 3.41 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.006803/0.5057, allocations: 4.729 MB / 488.4 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005485/0.5112, allocations: 3.474 MB / 491.9 MB, free: 11.19 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.5112, allocations: 0 / 491.9 MB, free: 11.19 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0014/0.5126, allocations: 1.043 MB / 492.9 MB, free: 10.13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002078/0.5147, allocations: 247.1 kB / 493.1 MB, free: 9.891 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05399/0.5687, allocations: 33.27 MB / 0.5141 GB, free: 4.039 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002949/0.5717, allocations: 2.244 MB / 0.5163 GB, free: 1.77 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003486/0.5753, allocations: 1.315 MB / 0.5176 GB, free: 460 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001856/0.5771, allocations: 1.101 MB / 0.5186 GB, free: 15.34 MB / 430.1 MB Notification: Performance of SimCode: time 1.473e-06/0.5772, allocations: 4 kB / 0.5186 GB, free: 15.34 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2579/0.8351, allocations: 44.61 MB / 0.5622 GB, free: 136.4 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001677/0.8353, allocations: 257.2 kB / 0.5624 GB, free: 136.1 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.915/3.75, allocations: 0 / 0.5624 GB, free: 136.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 & /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