Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009975/0.0009975, allocations: 79.7 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 174 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9203/0.9203, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.827e-05/1.985e-05, allocations: 4.672 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.005753/0.005773, allocations: 6.768 MB / 331.3 MB, free: 9.121 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00477/0.01054, allocations: 3.169 MB / 334.5 MB, free: 5.941 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009848/0.01153, allocations: 39.81 kB / 334.6 MB, free: 5.902 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001568/0.0131, allocations: 1.062 MB / 335.6 MB, free: 4.836 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002538/0.01563, allocations: 1.392 MB / 337 MB, free: 3.441 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009195/0.01655, allocations: 0.5844 MB / 337.6 MB, free: 2.855 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002946/0.0195, allocations: 2.967 MB / 340.6 MB, free: 15.88 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001665/0.02116, allocations: 1.462 MB / 342 MB, free: 14.39 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001668/0.02283, allocations: 1.286 MB / 343.3 MB, free: 13.1 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001393/0.02423, allocations: 1.337 MB / 344.6 MB, free: 11.76 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002693/0.0245, allocations: 152 kB / 344.8 MB, free: 11.61 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001436/0.02593, allocations: 0.8266 MB / 345.6 MB, free: 10.79 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008306/0.02676, allocations: 1.122 MB / 346.7 MB, free: 9.66 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008293/0.02759, allocations: 0.6734 MB / 347.4 MB, free: 8.984 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004513/0.0321, allocations: 4.1 MB / 351.5 MB, free: 4.871 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.03211, allocations: 0 / 351.5 MB, free: 4.871 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.567e-06/0.03212, allocations: 0 / 351.5 MB, free: 4.871 MB / 314.7 MB Notification: Performance of Transformations before backend: time 0.0001705/0.03229, allocations: 0 / 351.5 MB, free: 4.871 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.005447/0.03773, allocations: 3.028 MB / 354.5 MB, free: 1.797 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.03778, allocations: 8.031 kB / 354.6 MB, free: 1.789 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004048/0.03818, allocations: 458.4 kB / 355 MB, free: 1.332 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003057/0.04124, allocations: 1.664 MB / 356.7 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001809/0.04305, allocations: 1.387 MB / 358.1 MB, free: 14.24 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.778e-05/0.04313, allocations: 123.1 kB / 358.2 MB, free: 14.12 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002447/0.04337, allocations: 163.9 kB / 358.3 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006942/0.05031, allocations: 6.542 MB / 364.9 MB, free: 6.938 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.698e-05/0.05037, allocations: 27.77 kB / 364.9 MB, free: 6.91 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000186/0.05056, allocations: 83.89 kB / 365 MB, free: 6.828 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001722/0.05228, allocations: 1.476 MB / 366.5 MB, free: 5.352 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007582/0.05986, allocations: 5.833 MB / 372.3 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02234/0.08219, allocations: 24.89 MB / 397.2 MB, free: 5.848 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003538/0.08573, allocations: 2.075 MB / 399.3 MB, free: 3.738 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001102/0.08683, allocations: 1.133 MB / 400.4 MB, free: 2.594 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005337/0.09217, allocations: 4.387 MB / 404.8 MB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.892e-05/0.0922, allocations: 46.55 kB / 404.8 MB, free: 14.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=97): time 3.166e-06/0.0922, allocations: 0 / 404.8 MB, free: 14.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=105): time 0.01553/0.1077, allocations: 10.04 MB / 414.9 MB, free: 4.012 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.425e-05/0.1078, allocations: 137 kB / 415 MB, free: 3.848 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00309/0.1109, allocations: 3.033 MB / 418 MB, free: 0.793 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001566/0.111, allocations: 33.7 kB / 418.1 MB, free: 0.7539 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009557/0.112, allocations: 2.109 MB / 420.2 MB, free: 14.62 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003601/0.1124, allocations: 440.7 kB / 420.6 MB, free: 14.19 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007279/0.1131, allocations: 0.8259 MB / 421.4 MB, free: 13.35 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.254e-05/0.1132, allocations: 305.1 kB / 421.7 MB, free: 13.05 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001532/0.1147, allocations: 1.445 MB / 423.2 MB, free: 11.6 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002755/0.1174, allocations: 4.069 MB / 427.2 MB, free: 6.215 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004831/0.1223, allocations: 5.959 MB / 433.2 MB, free: 14.95 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.324e-05/0.1223, allocations: 35.98 kB / 433.2 MB, free: 14.91 MB / 410.7 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.007563/0.1299, allocations: 6.024 MB / 439.3 MB, free: 8.883 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.571e-05/0.1299, allocations: 51.97 kB / 439.3 MB, free: 8.832 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.428e-05/0.13, allocations: 92 kB / 439.4 MB, free: 8.742 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001386/0.1314, allocations: 0.8123 MB / 440.2 MB, free: 7.926 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001629/0.133, allocations: 0.9513 MB / 441.2 MB, free: 6.973 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004463/0.1375, allocations: 4.545 MB / 445.7 MB, free: 2.32 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002261/0.1398, allocations: 295.5 kB / 446 MB, free: 2.031 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003251/0.1401, allocations: 256 kB / 446.2 MB, free: 1.781 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.001606/0.1417, allocations: 1.372 MB / 447.6 MB, free: 408 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003329/0.142, allocations: 242.3 kB / 447.9 MB, free: 164 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1704/0.3125, allocations: 2.122 MB / 450 MB, free: 113.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.211e-05/0.3125, allocations: 13.31 kB / 450 MB, free: 113.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.61e-05/0.3125, allocations: 1.906 kB / 450 MB, free: 113.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.702e-05/0.3125, allocations: 6.562 kB / 450 MB, free: 113.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006403/0.3189, allocations: 4.833 MB / 454.8 MB, free: 111.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.319, allocations: 0 / 454.8 MB, free: 111.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004021/0.3194, allocations: 159.5 kB / 455 MB, free: 111.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00107/0.3204, allocations: 0.6845 MB / 455.7 MB, free: 111.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.1e-05/0.3205, allocations: 23 kB / 455.7 MB, free: 111.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002969/0.3235, allocations: 4.045 MB / 459.7 MB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3235, allocations: 1.25 kB / 459.7 MB, free: 109.4 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003505/0.327, allocations: 4.064 MB / 463.8 MB, free: 107 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00046/0.3274, allocations: 246.1 kB / 464 MB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001508/0.3276, allocations: 19.72 kB / 464.1 MB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005741/0.3281, allocations: 103.8 kB / 464.2 MB, free: 106.8 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001166/0.3283, allocations: 63.61 kB / 464.2 MB, free: 106.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.837e-05/0.3283, allocations: 31.98 kB / 464.3 MB, free: 106.7 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001542/0.3299, allocations: 1.814 MB / 466.1 MB, free: 104.9 MB / 410.7 MB Notification: Performance of sort global known variables: time 4e-08/0.3299, allocations: 4 kB / 466.1 MB, free: 104.8 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002078/0.3319, allocations: 0.749 MB / 466.8 MB, free: 104.1 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.00353/0.3355, allocations: 4.761 MB / 471.6 MB, free: 99.48 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003463/0.3389, allocations: 3.361 MB / 474.9 MB, free: 96.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.3389, allocations: 0 / 474.9 MB, free: 96.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007388/0.3397, allocations: 0.9628 MB / 475.9 MB, free: 95.2 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001243/0.3409, allocations: 269.9 kB / 476.2 MB, free: 94.95 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02671/0.3676, allocations: 30.3 MB / 0.4946 GB, free: 61.4 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001142/0.3688, allocations: 1.675 MB / 0.4962 GB, free: 59.7 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001671/0.3704, allocations: 1.33 MB / 0.4975 GB, free: 58.37 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008265/0.3713, allocations: 1.098 MB / 0.4986 GB, free: 57.27 MB / 410.7 MB Notification: Performance of SimCode: time 1.312e-06/0.3713, allocations: 4 kB / 0.4986 GB, free: 57.27 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05868/0.4299, allocations: 46.7 MB / 0.5442 GB, free: 11.02 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.798/9.228, allocations: 3.719 kB / 0.5442 GB, free: 11.02 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 11.135424225591123]