Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008003/0.0008003, allocations: 76.06 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007527/0.0007527, allocations: 149.1 kB / 23.93 MB, free: 0.6328 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8852/0.8852, allocations: 173.4 MB / 200.4 MB, free: 9.449 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.403e-06/1.403e-06, allocations: 0 / 318.4 MB, free: 6.23 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.281e-05/1.422e-05, allocations: 5.516 kB / 318.4 MB, free: 6.227 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.005705/0.005719, allocations: 6.776 MB / 325.2 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0059/0.01162, allocations: 3.142 MB / 328.4 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001069/0.01269, allocations: 43.81 kB / 328.4 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001545/0.01423, allocations: 1.059 MB / 329.5 MB, free: 11.16 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002276/0.01651, allocations: 1.422 MB / 330.9 MB, free: 9.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008349/0.01734, allocations: 0.5961 MB / 331.5 MB, free: 9.133 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002327/0.01967, allocations: 2.905 MB / 334.4 MB, free: 6.219 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001393/0.02106, allocations: 1.482 MB / 335.9 MB, free: 4.711 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001234/0.0223, allocations: 1.282 MB / 337.1 MB, free: 3.426 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0011/0.0234, allocations: 1.333 MB / 338.5 MB, free: 2.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001689/0.02357, allocations: 152 kB / 338.6 MB, free: 1.941 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009779/0.02454, allocations: 0.8421 MB / 339.5 MB, free: 1.098 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005911/0.02514, allocations: 1.137 MB / 340.6 MB, free: 15.95 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005143/0.02565, allocations: 0.689 MB / 341.3 MB, free: 15.26 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002679/0.02833, allocations: 4.146 MB / 345.4 MB, free: 11.1 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.02833, allocations: 0 / 345.4 MB, free: 11.1 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.02833, allocations: 0 / 345.4 MB, free: 11.1 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.329e-05/0.02837, allocations: 4 kB / 345.4 MB, free: 11.1 MB / 314.7 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.003105/0.03147, allocations: 3.044 MB / 348.5 MB, free: 8.008 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.812e-05/0.03151, allocations: 8.922 kB / 348.5 MB, free: 8 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003391/0.03185, allocations: 462.4 kB / 349 MB, free: 7.539 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002908/0.03476, allocations: 1.66 MB / 350.6 MB, free: 5.875 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001698/0.03645, allocations: 1.4 MB / 352 MB, free: 4.441 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.663e-05/0.03654, allocations: 123.2 kB / 352.1 MB, free: 4.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002381/0.03678, allocations: 159.8 kB / 352.3 MB, free: 4.164 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006303/0.04308, allocations: 6.542 MB / 358.8 MB, free: 13.14 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.73e-05/0.04313, allocations: 27.75 kB / 358.9 MB, free: 13.11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001644/0.04329, allocations: 83.89 kB / 358.9 MB, free: 13.03 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001386/0.04468, allocations: 1.468 MB / 360.4 MB, free: 11.56 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005939/0.05062, allocations: 5.841 MB / 366.2 MB, free: 5.715 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01905/0.06967, allocations: 24.89 MB / 391.1 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003058/0.07273, allocations: 2.083 MB / 393.2 MB, free: 9.934 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009549/0.07368, allocations: 1.129 MB / 394.3 MB, free: 8.793 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004724/0.07841, allocations: 4.387 MB / 398.7 MB, free: 4.375 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.07844, allocations: 58.48 kB / 398.8 MB, free: 4.309 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 2.745e-06/0.07844, allocations: 0 / 398.8 MB, free: 4.309 MB / 362.7 MB Notification: Performance of matching and sorting (n=105): time 0.01417/0.09261, allocations: 10.03 MB / 408.8 MB, free: 10.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.1e-05/0.09268, allocations: 141 kB / 409 MB, free: 10.05 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002885/0.09557, allocations: 3.034 MB / 412 MB, free: 6.992 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.978e-05/0.09562, allocations: 45.7 kB / 412 MB, free: 6.941 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008993/0.09652, allocations: 2.116 MB / 414.2 MB, free: 4.805 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002512/0.09678, allocations: 432.8 kB / 414.6 MB, free: 4.379 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000649/0.09742, allocations: 0.8337 MB / 415.4 MB, free: 3.535 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.705e-05/0.09749, allocations: 301.1 kB / 415.7 MB, free: 3.238 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001367/0.09886, allocations: 1.445 MB / 417.1 MB, free: 1.789 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002604/0.1015, allocations: 4.069 MB / 421.2 MB, free: 12.4 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004468/0.1059, allocations: 5.957 MB / 427.2 MB, free: 5.137 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-05/0.106, allocations: 32 kB / 427.2 MB, free: 5.105 MB / 394.7 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.006432/0.1124, allocations: 6.031 MB / 433.2 MB, free: 15.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.496e-05/0.1124, allocations: 50.75 kB / 433.3 MB, free: 15.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.248e-05/0.1125, allocations: 96 kB / 433.4 MB, free: 14.92 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001391/0.1139, allocations: 0.8189 MB / 434.2 MB, free: 14.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001499/0.1154, allocations: 0.9552 MB / 435.2 MB, free: 13.14 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004058/0.1194, allocations: 4.529 MB / 439.7 MB, free: 8.508 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001857/0.1213, allocations: 295.7 kB / 440 MB, free: 8.219 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002305/0.1215, allocations: 271.8 kB / 440.2 MB, free: 7.957 MB / 410.7 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.001458/0.123, allocations: 1.372 MB / 441.6 MB, free: 6.574 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002466/0.1232, allocations: 238.4 kB / 441.8 MB, free: 6.34 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002513/0.1257, allocations: 2.119 MB / 444 MB, free: 4.207 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.625e-05/0.1258, allocations: 15.94 kB / 444 MB, free: 4.191 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/0.1258, allocations: 4 kB / 444 MB, free: 4.188 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.328e-06/0.1258, allocations: 7.984 kB / 444 MB, free: 4.18 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1758/0.3015, allocations: 4.845 MB / 448.8 MB, free: 118.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.458e-05/0.3016, allocations: 1.75 kB / 448.8 MB, free: 118.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006701/0.3022, allocations: 160.9 kB / 449 MB, free: 118.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001338/0.3036, allocations: 0.6839 MB / 449.7 MB, free: 118.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-05/0.3036, allocations: 17.94 kB / 449.7 MB, free: 118.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003111/0.3068, allocations: 4.046 MB / 453.7 MB, free: 116.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.3068, allocations: 7.406 kB / 453.7 MB, free: 116.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003602/0.3104, allocations: 4.061 MB / 457.8 MB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003994/0.3108, allocations: 248.3 kB / 458 MB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001546/0.3109, allocations: 17.41 kB / 458.1 MB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005983/0.3115, allocations: 112.1 kB / 458.2 MB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001121/0.3116, allocations: 62.56 kB / 458.2 MB, free: 115.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.074e-05/0.3117, allocations: 37.59 kB / 458.3 MB, free: 115.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001668/0.3134, allocations: 1.819 MB / 460.1 MB, free: 114.5 MB / 410.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3134, allocations: 0 / 460.1 MB, free: 114.5 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002074/0.3154, allocations: 0.7598 MB / 460.9 MB, free: 114.5 MB / 410.7 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.003615/0.319, allocations: 4.759 MB / 465.6 MB, free: 110.9 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002896/0.3219, allocations: 3.354 MB / 469 MB, free: 107.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.3219, allocations: 2 kB / 469 MB, free: 107.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007073/0.3226, allocations: 0.961 MB / 469.9 MB, free: 106.6 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009398/0.3236, allocations: 249.2 kB / 470.2 MB, free: 106.4 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02453/0.3481, allocations: 30.35 MB / 0.4888 GB, free: 72.84 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001619/0.3497, allocations: 1.664 MB / 0.4904 GB, free: 71.15 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.002349/0.3521, allocations: 1.327 MB / 0.4917 GB, free: 69.82 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007665/0.3529, allocations: 1.106 MB / 0.4928 GB, free: 68.71 MB / 410.7 MB Notification: Performance of SimCode: time 1.142e-06/0.3529, allocations: 0 / 0.4928 GB, free: 68.71 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05047/0.4033, allocations: 46.83 MB / 0.5385 GB, free: 22.33 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.548/8.952, allocations: 7.922 kB / 0.5385 GB, free: 22.32 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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.0019992 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.772079863585532]