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.001287/0.001287, allocations: 120.1 kB / 17.78 MB, free: 5.23 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.001392/0.001392, allocations: 198.8 kB / 20.73 MB, free: 2.289 MB / 14.72 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 1.461/1.461, allocations: 225.6 MB / 249.1 MB, free: 3.598 MB / 190.1 MB " [Timeout remaining time 178] 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 0.001503/0.001503, allocations: 55.91 kB / 365.7 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1066, allocations: 52.15 MB / 417.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009715/0.1163, allocations: 7.658 MB / 425.5 MB, free: 4.867 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006632/0.1229, allocations: 3.36 MB / 428.8 MB, free: 1.496 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008987/0.1238, allocations: 43.81 kB / 428.9 MB, free: 1.453 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002206/0.1261, allocations: 1.047 MB / 429.9 MB, free: 412 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003107/0.1292, allocations: 1.37 MB / 431.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001362/0.1305, allocations: 0.5457 MB / 431.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003664/0.1342, allocations: 2.589 MB / 434.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001634/0.1358, allocations: 1.206 MB / 435.6 MB, free: 10.65 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001128/0.137, allocations: 0.8446 MB / 436.5 MB, free: 9.801 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001707/0.1387, allocations: 1.261 MB / 437.7 MB, free: 8.535 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003436/0.139, allocations: 148 kB / 437.9 MB, free: 8.391 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001851/0.1409, allocations: 0.9437 MB / 438.8 MB, free: 7.445 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001058/0.1419, allocations: 1.087 MB / 439.9 MB, free: 6.355 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001245/0.1432, allocations: 1.25 MB / 441.1 MB, free: 5.098 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005061/0.1482, allocations: 4.15 MB / 445.3 MB, free: 0.9297 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.1482, allocations: 4 kB / 445.3 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.1482, allocations: 0 / 445.3 MB, free: 0.9258 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.726e-05/0.1483, allocations: 0 / 445.3 MB, free: 0.9258 MB / 366.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.2009/0.3491, allocations: 3.08 MB / 448.4 MB, free: 29.3 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.3492, allocations: 12.31 kB / 448.4 MB, free: 29.3 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005281/0.3497, allocations: 458.8 kB / 448.8 MB, free: 29.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00563/0.3554, allocations: 1.599 MB / 450.4 MB, free: 29.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003481/0.3588, allocations: 1.72 MB / 452.2 MB, free: 28.78 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.3589, allocations: 126.5 kB / 452.3 MB, free: 28.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003511/0.3593, allocations: 161 kB / 452.4 MB, free: 28.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01103/0.3703, allocations: 6.542 MB / 459 MB, free: 26.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.509e-05/0.3704, allocations: 32.45 kB / 459 MB, free: 26.14 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002854/0.3707, allocations: 82.09 kB / 459.1 MB, free: 26.11 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002734/0.3734, allocations: 1.474 MB / 460.6 MB, free: 25.86 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01187/0.3853, allocations: 5.835 MB / 466.4 MB, free: 23.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02399/0.4093, allocations: 25.7 MB / 492.1 MB, free: 1.348 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005404/0.4147, allocations: 2.471 MB / 494.6 MB, free: 14.72 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001562/0.4163, allocations: 1.133 MB / 495.7 MB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00778/0.424, allocations: 4.805 MB / 0.4888 GB, free: 8.676 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.994e-05/0.4241, allocations: 47.62 kB / 0.4888 GB, free: 8.621 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.626e-06/0.4241, allocations: 4 kB / 0.4888 GB, free: 8.617 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02637/0.4504, allocations: 9.915 MB / 0.4985 GB, free: 14.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001027/0.4506, allocations: 144.8 kB / 0.4987 GB, free: 14.4 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004228/0.4548, allocations: 2.727 MB / 0.5013 GB, free: 11.65 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001956/0.455, allocations: 47.94 kB / 0.5014 GB, free: 11.6 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001645/0.4566, allocations: 2.132 MB / 0.5034 GB, free: 9.449 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005934/0.4572, allocations: 444.7 kB / 0.5039 GB, free: 9.012 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00114/0.4584, allocations: 0.8376 MB / 0.5047 GB, free: 8.164 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.4585, allocations: 305.1 kB / 0.505 GB, free: 7.863 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002408/0.4609, allocations: 1.437 MB / 0.5064 GB, free: 6.422 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004449/0.4654, allocations: 4.067 MB / 0.5104 GB, free: 1.039 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007721/0.4731, allocations: 5.949 MB / 0.5162 GB, free: 9.781 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.788e-05/0.4731, allocations: 24 kB / 0.5162 GB, free: 9.758 MB / 414.1 MB Notification: Performance of matching and sorting (n=534) (initialization): time 0.01134/0.4845, allocations: 6.014 MB / 0.5221 GB, free: 3.738 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.934e-05/0.4846, allocations: 44 kB / 0.5221 GB, free: 3.695 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001384/0.4847, allocations: 100.2 kB / 0.5222 GB, free: 3.598 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00247/0.4872, allocations: 0.8123 MB / 0.523 GB, free: 2.781 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002806/0.49, allocations: 0.9435 MB / 0.5239 GB, free: 1.836 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006378/0.4964, allocations: 4.664 MB / 0.5285 GB, free: 13.04 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003539/0.4999, allocations: 246.3 kB / 0.5287 GB, free: 12.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007695/0.5007, allocations: 260 kB / 0.5289 GB, free: 12.54 MB / 430.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.002607/0.5033, allocations: 1.367 MB / 0.5303 GB, free: 11.17 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005089/0.5038, allocations: 242.5 kB / 0.5305 GB, free: 10.93 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004704/0.5085, allocations: 2.111 MB / 0.5326 GB, free: 8.801 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.38e-05/0.5085, allocations: 15.94 kB / 0.5326 GB, free: 8.789 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.17e-05/0.5085, allocations: 7.984 kB / 0.5326 GB, free: 8.781 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.5085, allocations: 7.922 kB / 0.5326 GB, free: 8.773 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009574/0.5181, allocations: 5.07 MB / 0.5376 GB, free: 3.629 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.648e-06/0.5181, allocations: 4 kB / 0.5376 GB, free: 3.625 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007928/0.5189, allocations: 159.8 kB / 0.5377 GB, free: 3.469 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00223/0.5211, allocations: 0.68 MB / 0.5384 GB, free: 2.785 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.521e-05/0.5212, allocations: 16 kB / 0.5384 GB, free: 2.77 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005849/0.5271, allocations: 4.146 MB / 0.5424 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.251e-06/0.5271, allocations: 7.922 kB / 0.5424 GB, free: 14.48 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007081/0.5342, allocations: 4.064 MB / 0.5464 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007387/0.5349, allocations: 295.4 kB / 0.5467 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002267/0.5351, allocations: 23.97 kB / 0.5467 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009452/0.5361, allocations: 71.89 kB / 0.5468 GB, free: 9.98 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002241/0.5363, allocations: 56.31 kB / 0.5468 GB, free: 9.926 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.98e-05/0.5364, allocations: 31.98 kB / 0.5469 GB, free: 9.895 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002713/0.5391, allocations: 1.694 MB / 0.5485 GB, free: 8.191 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5391, allocations: 64 / 0.5485 GB, free: 8.191 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003886/0.543, allocations: 0.6756 MB / 0.5492 GB, free: 7.516 MB / 446.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.007787/0.5508, allocations: 4.742 MB / 0.5538 GB, free: 2.734 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006051/0.5568, allocations: 3.352 MB / 0.5571 GB, free: 15.39 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.5568, allocations: 0 / 0.5571 GB, free: 15.39 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001472/0.5583, allocations: 0.9615 MB / 0.558 GB, free: 14.41 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001743/0.56, allocations: 262.7 kB / 0.5583 GB, free: 14.17 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04657/0.6066, allocations: 29.91 MB / 0.5875 GB, free: 12.88 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002464/0.6091, allocations: 2.236 MB / 0.5897 GB, free: 10.62 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002994/0.6121, allocations: 1.321 MB / 0.591 GB, free: 9.297 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00153/0.6136, allocations: 1.097 MB / 0.592 GB, free: 8.199 MB / 494.1 MB Notification: Performance of SimCode: time 6.81e-07/0.6136, allocations: 0 / 0.592 GB, free: 8.199 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.308/0.9216, allocations: 45.01 MB / 0.636 GB, free: 170.6 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.86/19.78, allocations: 0.5625 kB / 0.636 GB, free: 170.6 MB / 0.5137 GB " [Timeout remaining time 640] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/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: 22.51784174796194]