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.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.001746/0.001746, allocations: 111.6 kB / 18.45 MB, free: 4.59 MB / 14.72 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.002171/0.002171, allocations: 215.2 kB / 21.42 MB, free: 1.629 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.495/1.495, allocations: 207.6 MB / 231.8 MB, free: 4.219 MB / 174.1 MB " [Timeout remaining time 178] 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.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_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.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001741/0.001741, allocations: 51.92 kB / 342.3 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09613/0.09787, allocations: 49.14 MB / 391.4 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01005/0.1079, allocations: 7.712 MB / 399.1 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007278/0.1152, allocations: 3.318 MB / 402.5 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001096/0.1163, allocations: 43.81 kB / 402.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002151/0.1184, allocations: 1.047 MB / 403.6 MB, free: 12.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003092/0.1215, allocations: 1.362 MB / 404.9 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001228/0.1228, allocations: 0.5495 MB / 405.5 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003742/0.1265, allocations: 2.594 MB / 408.1 MB, free: 8.012 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001706/0.1282, allocations: 1.21 MB / 409.3 MB, free: 6.773 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001274/0.1295, allocations: 0.8563 MB / 410.1 MB, free: 5.914 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001645/0.1311, allocations: 1.269 MB / 411.4 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003154/0.1314, allocations: 151.9 kB / 411.5 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0017/0.1331, allocations: 0.9282 MB / 412.5 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001055/0.1342, allocations: 1.087 MB / 413.6 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001266/0.1355, allocations: 1.258 MB / 414.8 MB, free: 1.207 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00491/0.1404, allocations: 4.158 MB / 419 MB, free: 13.03 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1404, allocations: 0 / 419 MB, free: 13.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1404, allocations: 0 / 419 MB, free: 13.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.135e-05/0.1405, allocations: 0 / 419 MB, free: 13.03 MB / 350.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.005994/0.1465, allocations: 3.107 MB / 422.1 MB, free: 9.859 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/0.1465, allocations: 8.031 kB / 422.1 MB, free: 9.852 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005846/0.1471, allocations: 466.4 kB / 422.5 MB, free: 9.387 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00575/0.1529, allocations: 1.594 MB / 424.1 MB, free: 7.789 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003794/0.1566, allocations: 1.871 MB / 426 MB, free: 5.875 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001293/0.1568, allocations: 131 kB / 426.1 MB, free: 5.746 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000393/0.1572, allocations: 155.9 kB / 426.3 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01109/0.1683, allocations: 6.538 MB / 432.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.655e-05/0.1683, allocations: 27.77 kB / 432.9 MB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002711/0.1686, allocations: 83.83 kB / 432.9 MB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00267/0.1713, allocations: 1.464 MB / 434.4 MB, free: 13 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01115/0.1824, allocations: 5.834 MB / 440.2 MB, free: 7.168 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2323/0.4147, allocations: 25.72 MB / 465.9 MB, free: 46.11 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006351/0.421, allocations: 2.463 MB / 468.4 MB, free: 45.45 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00187/0.4229, allocations: 1.141 MB / 469.6 MB, free: 45.42 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008417/0.4313, allocations: 4.816 MB / 474.4 MB, free: 44.07 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.075e-05/0.4314, allocations: 43.53 kB / 474.4 MB, free: 44.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 4.749e-06/0.4314, allocations: 1.5 kB / 474.4 MB, free: 44.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02348/0.4549, allocations: 9.979 MB / 484.4 MB, free: 40.36 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.168e-05/0.4549, allocations: 147.7 kB / 484.5 MB, free: 40.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003072/0.458, allocations: 2.74 MB / 487.3 MB, free: 39.03 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001577/0.4581, allocations: 40.66 kB / 487.3 MB, free: 38.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000977/0.4591, allocations: 2.139 MB / 489.5 MB, free: 37.23 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003692/0.4595, allocations: 449.2 kB / 489.9 MB, free: 36.87 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008544/0.4603, allocations: 0.8374 MB / 490.7 MB, free: 36.39 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.342e-05/0.4604, allocations: 301.1 kB / 491 MB, free: 36.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001718/0.4621, allocations: 1.436 MB / 492.5 MB, free: 35.42 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002587/0.4647, allocations: 4.065 MB / 496.5 MB, free: 30.82 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004699/0.4694, allocations: 5.953 MB / 0.4907 GB, free: 23.7 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.148e-05/0.4694, allocations: 28 kB / 0.4907 GB, free: 23.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.009214/0.4787, allocations: 6.011 MB / 0.4966 GB, free: 17.65 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.349e-05/0.4787, allocations: 46.81 kB / 0.4966 GB, free: 17.61 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-05/0.4788, allocations: 95.94 kB / 0.4967 GB, free: 17.51 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002133/0.4809, allocations: 0.8163 MB / 0.4975 GB, free: 16.69 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002512/0.4834, allocations: 0.9474 MB / 0.4985 GB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004574/0.488, allocations: 4.658 MB / 0.503 GB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002996/0.491, allocations: 251.5 kB / 0.5032 GB, free: 10.7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003364/0.4913, allocations: 260 kB / 0.5035 GB, free: 10.45 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.00179/0.4931, allocations: 1.368 MB / 0.5048 GB, free: 9.066 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003771/0.4935, allocations: 238.4 kB / 0.5051 GB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003732/0.4972, allocations: 2.118 MB / 0.5071 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.181e-05/0.4973, allocations: 19.88 kB / 0.5071 GB, free: 6.684 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.318e-06/0.4973, allocations: 4 kB / 0.5071 GB, free: 6.68 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.909e-06/0.4973, allocations: 11.98 kB / 0.5072 GB, free: 6.668 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007656/0.5049, allocations: 5.075 MB / 0.5121 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.772e-06/0.5049, allocations: 0 / 0.5121 GB, free: 1.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007178/0.5057, allocations: 159.7 kB / 0.5123 GB, free: 1.379 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001938/0.5076, allocations: 0.6795 MB / 0.5129 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.538e-05/0.5077, allocations: 22.12 kB / 0.513 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005618/0.5133, allocations: 4.15 MB / 0.517 GB, free: 12.39 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.073e-06/0.5133, allocations: 8.016 kB / 0.517 GB, free: 12.38 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00713/0.5204, allocations: 4.06 MB / 0.521 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001159/0.5216, allocations: 467.2 kB / 0.5214 GB, free: 7.805 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002953/0.5219, allocations: 16.81 kB / 0.5214 GB, free: 7.789 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001008/0.5229, allocations: 71.89 kB / 0.5215 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000233/0.5231, allocations: 60.39 kB / 0.5216 GB, free: 7.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.133e-05/0.5232, allocations: 39.23 kB / 0.5216 GB, free: 7.625 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002942/0.5262, allocations: 1.714 MB / 0.5233 GB, free: 5.902 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5262, allocations: 0 / 0.5233 GB, free: 5.902 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003724/0.5299, allocations: 0.6678 MB / 0.5239 GB, free: 5.234 MB / 398.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.008001/0.5379, allocations: 4.73 MB / 0.5285 GB, free: 476 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006464/0.5444, allocations: 3.344 MB / 0.5318 GB, free: 13.13 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.5444, allocations: 0 / 0.5318 GB, free: 13.13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001547/0.5459, allocations: 0.9692 MB / 0.5328 GB, free: 12.15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001793/0.5477, allocations: 260.4 kB / 0.533 GB, free: 11.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04986/0.5976, allocations: 30 MB / 0.5623 GB, free: 10.54 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002348/0.5999, allocations: 2.245 MB / 0.5645 GB, free: 8.273 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003009/0.6029, allocations: 1.321 MB / 0.5658 GB, free: 6.949 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001585/0.6045, allocations: 1.093 MB / 0.5669 GB, free: 5.855 MB / 446.1 MB Notification: Performance of SimCode: time 8.11e-07/0.6045, allocations: 4 kB / 0.5669 GB, free: 5.852 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1221/0.7266, allocations: 45.14 MB / 0.6109 GB, free: 8.605 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.68/18.41, allocations: 4 kB / 0.6109 GB, free: 8.602 MB / 494.1 MB " [Timeout remaining time 641] (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/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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 21.064706546996604]