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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001434/0.001434, allocations: 118.3 kB / 18.4 MB, free: 4.672 MB / 14.72 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.001435/0.001435, allocations: 190.9 kB / 21.34 MB, free: 1.738 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.392/1.392, allocations: 205.1 MB / 229.2 MB, free: 4.523 MB / 174.1 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "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.001842/0.001842, allocations: 51.2 kB / 334.7 MB, free: 14.64 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08941/0.09126, allocations: 46.62 MB / 381.4 MB, free: 1.094 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01022/0.1015, allocations: 7.677 MB / 389 MB, free: 9.383 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006738/0.1083, allocations: 3.295 MB / 392.3 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00116/0.1095, allocations: 39.88 kB / 392.4 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002474/0.112, allocations: 1.031 MB / 393.4 MB, free: 5.004 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003471/0.1155, allocations: 1.335 MB / 394.7 MB, free: 3.664 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001347/0.1169, allocations: 0.5457 MB / 395.3 MB, free: 3.117 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003813/0.1207, allocations: 2.594 MB / 397.9 MB, free: 0.5156 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002139/0.1229, allocations: 1.393 MB / 399.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001494/0.1244, allocations: 0.8445 MB / 400.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001859/0.1263, allocations: 1.152 MB / 401.3 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005522/0.1268, allocations: 144 kB / 401.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002066/0.1289, allocations: 0.897 MB / 402.3 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001306/0.1302, allocations: 1.06 MB / 403.4 MB, free: 10.99 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001855/0.1321, allocations: 1.258 MB / 404.6 MB, free: 9.723 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005455/0.1376, allocations: 4.15 MB / 408.8 MB, free: 5.555 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.342e-06/0.1376, allocations: 0 / 408.8 MB, free: 5.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.1376, allocations: 3.938 kB / 408.8 MB, free: 5.551 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001208/0.1377, allocations: 0 / 408.8 MB, free: 5.551 MB / 334.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.0068/0.1445, allocations: 3.104 MB / 411.9 MB, free: 2.383 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.1446, allocations: 8.031 kB / 411.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009074/0.1455, allocations: 466.4 kB / 412.3 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005791/0.1513, allocations: 1.594 MB / 413.9 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003666/0.155, allocations: 1.879 MB / 415.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001534/0.1552, allocations: 127 kB / 415.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006068/0.1558, allocations: 155.9 kB / 416.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01189/0.1677, allocations: 6.534 MB / 422.6 MB, free: 7.098 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.74e-05/0.1679, allocations: 31.7 kB / 422.7 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005183/0.1684, allocations: 83.89 kB / 422.7 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002811/0.1712, allocations: 1.464 MB / 424.2 MB, free: 5.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01193/0.1832, allocations: 5.83 MB / 430 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03265/0.2158, allocations: 25.72 MB / 455.8 MB, free: 5.195 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005958/0.2219, allocations: 2.541 MB / 458.3 MB, free: 2.508 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001721/0.2236, allocations: 1.227 MB / 459.5 MB, free: 1.27 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1796/0.4032, allocations: 4.813 MB / 464.3 MB, free: 69.76 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.4033, allocations: 46.11 kB / 464.4 MB, free: 69.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 4.608e-06/0.4033, allocations: 1.25 kB / 464.4 MB, free: 69.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02313/0.4265, allocations: 9.977 MB / 474.4 MB, free: 66.29 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.4266, allocations: 138.5 kB / 474.5 MB, free: 66.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0033/0.4299, allocations: 2.743 MB / 477.2 MB, free: 65.17 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000172/0.4301, allocations: 41.64 kB / 477.3 MB, free: 65.13 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008439/0.4309, allocations: 2.148 MB / 479.4 MB, free: 63.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003077/0.4312, allocations: 441.5 kB / 479.9 MB, free: 63.36 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008082/0.432, allocations: 0.8439 MB / 480.7 MB, free: 62.94 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.358e-05/0.4321, allocations: 301.1 kB / 481 MB, free: 62.64 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001641/0.4337, allocations: 1.439 MB / 482.4 MB, free: 62.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002582/0.4363, allocations: 4.061 MB / 486.5 MB, free: 58.05 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004707/0.4411, allocations: 5.954 MB / 492.4 MB, free: 51.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.966e-05/0.4411, allocations: 28 kB / 492.5 MB, free: 51.74 MB / 382.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.008762/0.4499, allocations: 6.015 MB / 498.5 MB, free: 45.71 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.254e-05/0.45, allocations: 52.25 kB / 498.5 MB, free: 45.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.405e-05/0.4501, allocations: 92 kB / 498.6 MB, free: 45.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002012/0.4521, allocations: 0.8128 MB / 499.4 MB, free: 44.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002424/0.4545, allocations: 0.9396 MB / 0.4887 GB, free: 43.82 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0044/0.4589, allocations: 4.678 MB / 0.4932 GB, free: 39.01 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002854/0.4618, allocations: 243.7 kB / 0.4935 GB, free: 38.77 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003535/0.4622, allocations: 263.4 kB / 0.4937 GB, free: 38.52 MB / 382.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.001569/0.4638, allocations: 1.38 MB / 0.4951 GB, free: 37.12 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004099/0.4642, allocations: 238.4 kB / 0.4953 GB, free: 36.89 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003522/0.4677, allocations: 2.134 MB / 0.4974 GB, free: 34.74 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.059e-05/0.4677, allocations: 12 kB / 0.4974 GB, free: 34.73 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.4678, allocations: 4 kB / 0.4974 GB, free: 34.72 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.137e-05/0.4678, allocations: 6.047 kB / 0.4974 GB, free: 34.72 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007111/0.4749, allocations: 5.072 MB / 0.5023 GB, free: 29.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.929e-06/0.4749, allocations: 7.938 kB / 0.5023 GB, free: 29.58 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006963/0.4756, allocations: 163.8 kB / 0.5025 GB, free: 29.42 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001817/0.4775, allocations: 0.6794 MB / 0.5032 GB, free: 28.74 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.74e-05/0.4776, allocations: 20 kB / 0.5032 GB, free: 28.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003912/0.4815, allocations: 4.141 MB / 0.5072 GB, free: 24.44 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.4815, allocations: 8.047 kB / 0.5072 GB, free: 24.43 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005148/0.4867, allocations: 4.072 MB / 0.5112 GB, free: 20.33 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009185/0.4876, allocations: 464.4 kB / 0.5117 GB, free: 19.86 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004938/0.4881, allocations: 18.88 kB / 0.5117 GB, free: 19.84 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/0.4893, allocations: 67.89 kB / 0.5117 GB, free: 19.77 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001798/0.4895, allocations: 60.3 kB / 0.5118 GB, free: 19.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.456e-05/0.4896, allocations: 35.94 kB / 0.5118 GB, free: 19.68 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002467/0.4921, allocations: 1.71 MB / 0.5135 GB, free: 17.96 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4921, allocations: 4.062 kB / 0.5135 GB, free: 17.96 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00322/0.4953, allocations: 0.6716 MB / 0.5142 GB, free: 17.29 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.005565/0.5009, allocations: 4.752 MB / 0.5188 GB, free: 12.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004422/0.5053, allocations: 3.482 MB / 0.5222 GB, free: 9.023 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/0.5054, allocations: 0 / 0.5222 GB, free: 9.023 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001112/0.5065, allocations: 1.032 MB / 0.5232 GB, free: 7.98 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002051/0.5086, allocations: 262.5 kB / 0.5235 GB, free: 7.73 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04696/0.5555, allocations: 30.02 MB / 0.5528 GB, free: 6.348 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003372/0.559, allocations: 2.245 MB / 0.555 GB, free: 4.078 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003303/0.5623, allocations: 1.321 MB / 0.5563 GB, free: 2.75 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001762/0.5641, allocations: 1.097 MB / 0.5573 GB, free: 1.652 MB / 414.1 MB Notification: Performance of SimCode: time 1.113e-06/0.5641, allocations: 3.938 kB / 0.5573 GB, free: 1.648 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.131/0.6951, allocations: 44.81 MB / 0.6011 GB, free: 4.738 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.18/17.88, allocations: 11.58 kB / 0.6011 GB, free: 4.727 MB / 462.1 MB " [Timeout remaining time 642] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_UserDefinedGravityField.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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_2/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 20.38525974599179]