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.001154/0.001154, allocations: 105.3 kB / 17.58 MB, free: 5.559 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.001185/0.001185, allocations: 192 kB / 18.51 MB, free: 4.641 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.438/1.438, 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.001367/0.001367, allocations: 55.92 kB / 280.8 MB, free: 3.055 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08671/0.08809, allocations: 46.63 MB / 327.4 MB, free: 4.359 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009366/0.09748, allocations: 7.666 MB / 335.1 MB, free: 12.64 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006138/0.1037, allocations: 3.298 MB / 338.4 MB, free: 9.336 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001061/0.1048, allocations: 39.88 kB / 338.4 MB, free: 9.297 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00232/0.1071, allocations: 1.039 MB / 339.4 MB, free: 8.254 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003285/0.1105, allocations: 1.339 MB / 340.8 MB, free: 6.91 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001315/0.1118, allocations: 0.5456 MB / 341.3 MB, free: 6.363 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003069/0.1149, allocations: 2.598 MB / 343.9 MB, free: 3.758 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001916/0.1168, allocations: 1.389 MB / 345.3 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001522/0.1183, allocations: 0.8446 MB / 346.2 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001783/0.1201, allocations: 1.148 MB / 347.3 MB, free: 352 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005131/0.1207, allocations: 144 kB / 347.4 MB, free: 208 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001878/0.1226, allocations: 0.9048 MB / 348.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00121/0.1238, allocations: 1.052 MB / 349.4 MB, free: 14.24 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00184/0.1256, allocations: 1.262 MB / 350.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004464/0.1301, allocations: 3.96 MB / 354.6 MB, free: 9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.1301, allocations: 0 / 354.6 MB, free: 9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1301, allocations: 4 kB / 354.6 MB, free: 8.996 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001404/0.1303, allocations: 0 / 354.6 MB, free: 8.996 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.006001/0.1363, allocations: 3.015 MB / 357.6 MB, free: 5.922 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.078e-05/0.1363, allocations: 12.03 kB / 357.6 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008256/0.1372, allocations: 458.4 kB / 358.1 MB, free: 5.453 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005277/0.1425, allocations: 1.584 MB / 359.7 MB, free: 3.863 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003209/0.1457, allocations: 1.847 MB / 361.5 MB, free: 1.969 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.1458, allocations: 127 kB / 361.7 MB, free: 1.844 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005013/0.1463, allocations: 159.9 kB / 361.8 MB, free: 1.688 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01025/0.1566, allocations: 6.542 MB / 368.3 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.754e-05/0.1567, allocations: 23.81 kB / 368.4 MB, free: 10.64 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003876/0.1571, allocations: 87.89 kB / 368.5 MB, free: 10.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00243/0.1596, allocations: 1.464 MB / 369.9 MB, free: 9.09 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009924/0.1695, allocations: 5.834 MB / 375.8 MB, free: 3.246 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1658/0.3353, allocations: 25.77 MB / 401.5 MB, free: 32.65 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00512/0.3404, allocations: 2.538 MB / 404.1 MB, free: 31.47 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001364/0.3418, allocations: 1.223 MB / 405.3 MB, free: 30.96 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005849/0.3477, allocations: 4.827 MB / 410.1 MB, free: 27.94 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.222e-05/0.3478, allocations: 46.09 kB / 410.2 MB, free: 27.89 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.226e-06/0.3478, allocations: 4 kB / 410.2 MB, free: 27.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=105): time 0.02027/0.3681, allocations: 9.832 MB / 420 MB, free: 20.39 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.88e-05/0.3681, allocations: 144.9 kB / 420.1 MB, free: 20.21 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002595/0.3707, allocations: 2.731 MB / 422.9 MB, free: 17.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001223/0.3709, allocations: 41.7 kB / 422.9 MB, free: 17.42 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007351/0.3716, allocations: 2.057 MB / 425 MB, free: 15.36 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002477/0.3719, allocations: 433.3 kB / 425.4 MB, free: 14.95 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007284/0.3726, allocations: 0.8252 MB / 426.2 MB, free: 14.11 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.627e-05/0.3726, allocations: 305.1 kB / 426.5 MB, free: 13.81 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00152/0.3742, allocations: 1.444 MB / 428 MB, free: 12.36 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002294/0.3765, allocations: 4.067 MB / 432 MB, free: 6.98 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004654/0.3811, allocations: 5.94 MB / 438 MB, free: 15.73 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-05/0.3812, allocations: 27.56 kB / 438 MB, free: 15.7 MB / 334.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.009911/0.3911, allocations: 6.005 MB / 444 MB, free: 9.691 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.428e-05/0.3912, allocations: 44 kB / 444 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.174e-05/0.3913, allocations: 100.2 kB / 444.1 MB, free: 9.551 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002298/0.3936, allocations: 0.8227 MB / 445 MB, free: 8.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002685/0.3963, allocations: 0.9396 MB / 445.9 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005587/0.4019, allocations: 4.653 MB / 450.6 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002642/0.4046, allocations: 243.6 kB / 450.8 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004752/0.4051, allocations: 260 kB / 451 MB, free: 2.512 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.001879/0.407, allocations: 1.376 MB / 452.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004114/0.4074, allocations: 232.9 kB / 452.6 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00408/0.4115, allocations: 2.131 MB / 454.8 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.491e-05/0.4115, allocations: 15.98 kB / 454.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.616e-06/0.4115, allocations: 4 kB / 454.8 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.004e-05/0.4116, allocations: 3.984 kB / 454.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008606/0.4202, allocations: 5.089 MB / 459.9 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.532e-06/0.4202, allocations: 0 / 459.9 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007526/0.421, allocations: 159.7 kB / 460 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001955/0.4229, allocations: 0.684 MB / 460.7 MB, free: 8.746 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.368e-05/0.423, allocations: 12 kB / 460.7 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004552/0.4276, allocations: 4.153 MB / 464.9 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.4276, allocations: 0 / 464.9 MB, free: 4.434 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005805/0.4334, allocations: 4.062 MB / 469 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008777/0.4343, allocations: 454 kB / 469.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004266/0.4348, allocations: 20 kB / 469.4 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00107/0.4358, allocations: 71.89 kB / 469.5 MB, free: 15.78 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.436, allocations: 56.34 kB / 469.5 MB, free: 15.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.059e-05/0.4361, allocations: 29.41 kB / 469.6 MB, free: 15.7 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002694/0.4388, allocations: 1.71 MB / 471.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.4388, allocations: 4 kB / 471.3 MB, free: 13.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003153/0.442, allocations: 0.6642 MB / 472 MB, free: 13.31 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.006198/0.4482, allocations: 4.748 MB / 476.7 MB, free: 8.531 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004949/0.4531, allocations: 3.688 MB / 480.4 MB, free: 4.855 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.4532, allocations: 192 / 480.4 MB, free: 4.855 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.4544, allocations: 1.039 MB / 481.4 MB, free: 3.801 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001593/0.456, allocations: 269.3 kB / 481.7 MB, free: 3.543 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03793/0.4939, allocations: 32.16 MB / 0.5018 GB, free: 14.79 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002003/0.496, allocations: 2.241 MB / 0.504 GB, free: 12.52 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002648/0.4986, allocations: 1.316 MB / 0.5053 GB, free: 11.2 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001242/0.4999, allocations: 1.105 MB / 0.5064 GB, free: 10.09 MB / 414.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4999, allocations: 0 / 0.5064 GB, free: 10.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.469/1.969, allocations: 45.6 MB / 0.5509 GB, free: 148.9 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.29/15.26, allocations: 13.11 kB / 0.5509 GB, free: 148.9 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","/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