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.0009058/0.0009058, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.0008317/0.0008317, allocations: 142.1 kB / 24.89 MB, free: 8.777 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.8887/0.8887, allocations: 173.4 MB / 201.5 MB, free: 8.758 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 3.938 kB / 268.5 MB, free: 5.965 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.437e-05/1.583e-05, allocations: 5.969 kB / 268.5 MB, free: 5.961 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.005528/0.005544, allocations: 7.3 MB / 275.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004075/0.009619, allocations: 3.344 MB / 279.2 MB, free: 11.27 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004085/0.01003, allocations: 43.81 kB / 279.2 MB, free: 11.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001201/0.01123, allocations: 1.086 MB / 280.3 MB, free: 10.13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001555/0.01278, allocations: 1.4 MB / 281.7 MB, free: 8.727 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006/0.01338, allocations: 0.5922 MB / 282.3 MB, free: 8.133 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001782/0.01516, allocations: 2.913 MB / 285.2 MB, free: 5.215 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009667/0.01613, allocations: 1.463 MB / 286.7 MB, free: 3.715 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009246/0.01706, allocations: 1.301 MB / 288 MB, free: 2.41 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000943/0.018, allocations: 1.259 MB / 289.2 MB, free: 1.148 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001473/0.01815, allocations: 152 kB / 289.4 MB, free: 1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008315/0.01898, allocations: 0.8617 MB / 290.2 MB, free: 140 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1011/0.1201, allocations: 1.13 MB / 291.4 MB, free: 18.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001424/0.1215, allocations: 0.6842 MB / 292.1 MB, free: 18.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003338/0.1249, allocations: 2.877 MB / 294.9 MB, free: 18.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.1249, allocations: 0 / 294.9 MB, free: 18.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1249, allocations: 0 / 294.9 MB, free: 18.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.712e-05/0.1249, allocations: 0 / 294.9 MB, free: 18.64 MB / 266.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.003951/0.1289, allocations: 2.753 MB / 297.7 MB, free: 17.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.1289, allocations: 10 kB / 297.7 MB, free: 17.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002278/0.1312, allocations: 0.7638 MB / 298.5 MB, free: 17.35 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001575/0.1328, allocations: 1.066 MB / 299.5 MB, free: 16.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.109e-05/0.1329, allocations: 119.7 kB / 299.6 MB, free: 16.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002236/0.1331, allocations: 165.2 kB / 299.8 MB, free: 16.97 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004067/0.1371, allocations: 3.126 MB / 302.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.653e-05/0.1372, allocations: 27.91 kB / 303 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001722/0.1374, allocations: 85.56 kB / 303 MB, free: 15.64 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001181/0.1386, allocations: 1.236 MB / 304.3 MB, free: 15.63 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003019/0.1416, allocations: 1.63 MB / 305.9 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01228/0.1539, allocations: 20.35 MB / 326.3 MB, free: 14.99 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001867/0.1557, allocations: 0.9456 MB / 327.2 MB, free: 14.09 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002531/0.156, allocations: 197.5 kB / 327.4 MB, free: 13.89 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003091/0.1591, allocations: 2.167 MB / 329.6 MB, free: 11.74 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.1591, allocations: 53.77 kB / 329.6 MB, free: 11.68 MB / 282.7 MB Notification: Performance of pre-optimization done (n=79): time 2.625e-06/0.1591, allocations: 0 / 329.6 MB, free: 11.68 MB / 282.7 MB Notification: Performance of matching and sorting (n=80): time 0.004382/0.1635, allocations: 1.939 MB / 331.6 MB, free: 9.738 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.754e-05/0.1635, allocations: 144.5 kB / 331.7 MB, free: 9.566 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001877/0.1654, allocations: 2.178 MB / 333.9 MB, free: 7.742 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.244e-05/0.1655, allocations: 37.7 kB / 333.9 MB, free: 7.699 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008389/0.1663, allocations: 2.099 MB / 336 MB, free: 5.707 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002188/0.1665, allocations: 351.5 kB / 336.4 MB, free: 5.379 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005991/0.1671, allocations: 0.7787 MB / 337.1 MB, free: 4.68 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.1672, allocations: 368.5 kB / 337.5 MB, free: 4.34 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007174/0.1679, allocations: 485.8 kB / 338 MB, free: 3.859 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00172/0.1697, allocations: 3.103 MB / 341.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002797/0.1725, allocations: 3.97 MB / 345 MB, free: 10.5 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.069e-05/0.1725, allocations: 28 kB / 345.1 MB, free: 10.47 MB / 298.7 MB Notification: Performance of matching and sorting (n=533) (initialization): time 0.003074/0.1756, allocations: 2.816 MB / 347.9 MB, free: 7.641 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.209e-05/0.1756, allocations: 44 kB / 347.9 MB, free: 7.598 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.723e-05/0.1757, allocations: 100 kB / 348 MB, free: 7.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002453/0.1759, allocations: 171.6 kB / 348.2 MB, free: 7.328 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001421/0.1773, allocations: 0.9436 MB / 349.1 MB, free: 6.383 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009335/0.1783, allocations: 1.454 MB / 350.6 MB, free: 4.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/0.1798, allocations: 191.8 kB / 350.8 MB, free: 4.652 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002028/0.18, allocations: 227 kB / 351 MB, free: 4.434 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 445 * Number of states: 0 () * Number of discrete variables: 21 (world.gravityArrowColor[1],world.gravityArrowColor[2],world.gravityArrowColor[3],world.gravitySphereColor[1],world.gravitySphereColor[2],world.gravitySphereColor[3],world.groundColor[1],world.groundColor[2],world.groundColor[3],world.axisColor_x[1],world.axisColor_x[2],world.axisColor_x[3],rev.cylinderColor[1],rev.cylinderColor[2],rev.cylinderColor[3],body.sphereColor[1],body.sphereColor[2],body.sphereColor[3],fixedTranslation.color[1],fixedTranslation.color[2],fixedTranslation.color[3]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (507): * Single equations (assignments): 503 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009626/0.181, allocations: 476.5 kB / 351.5 MB, free: 3.957 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000218/0.1812, allocations: 123.8 kB / 351.6 MB, free: 3.836 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004791/0.1817, allocations: 379.3 kB / 352 MB, free: 3.457 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.1817, allocations: 8 kB / 352 MB, free: 3.449 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.1817, allocations: 7.938 kB / 352 MB, free: 3.441 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.1817, allocations: 3.984 kB / 352 MB, free: 3.438 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002396/0.1841, allocations: 1.679 MB / 353.7 MB, free: 1.898 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.1841, allocations: 0 / 353.7 MB, free: 1.898 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002588/0.1844, allocations: 103.8 kB / 353.8 MB, free: 1.797 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001206/0.1845, allocations: 41.98 kB / 353.8 MB, free: 1.754 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.934e-05/0.1845, allocations: 15.98 kB / 353.8 MB, free: 1.738 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008373/0.1854, allocations: 1.388 MB / 355.2 MB, free: 260 kB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1854, allocations: 0 / 355.2 MB, free: 260 kB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008292/0.1862, allocations: 1.05 MB / 356.2 MB, free: 15.19 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002055/0.1864, allocations: 186.5 kB / 356.4 MB, free: 15 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001168/0.1865, allocations: 11.98 kB / 356.4 MB, free: 14.99 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003457/0.1869, allocations: 16 kB / 356.5 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.092e-05/0.1869, allocations: 43.75 kB / 356.5 MB, free: 14.93 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.019e-05/0.187, allocations: 27.11 kB / 356.5 MB, free: 14.91 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0006619/0.1876, allocations: 0.7602 MB / 357.3 MB, free: 14.22 MB / 314.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1876, allocations: 0 / 357.3 MB, free: 14.22 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.002174/0.1898, allocations: 0.6558 MB / 357.9 MB, free: 13.57 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 2 (rev.w,damper.phi_rel) * 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 (54): * Single equations (assignments): 50 * 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,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003342/0.1902, allocations: 197.2 kB / 358.1 MB, free: 13.37 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001726/0.1919, allocations: 1.646 MB / 359.8 MB, free: 11.77 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.341e-05/0.192, allocations: 59.94 kB / 359.8 MB, free: 11.71 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002866/0.1923, allocations: 287.7 kB / 360.1 MB, free: 11.41 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001115/0.1934, allocations: 353.7 kB / 360.5 MB, free: 11.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005339/0.1987, allocations: 4.283 MB / 364.7 MB, free: 6.723 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005861/0.1993, allocations: 0.7332 MB / 365.5 MB, free: 5.961 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0008036/0.2001, allocations: 322.3 kB / 365.8 MB, free: 5.648 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004169/0.2005, allocations: 345.3 kB / 366.1 MB, free: 5.312 MB / 314.7 MB Notification: Performance of SimCode: time 1.112e-06/0.2005, allocations: 0 / 366.1 MB, free: 5.312 MB / 314.7 MB Notification: Performance of Templates: time 0.02652/0.227, allocations: 16.66 MB / 382.8 MB, free: 4.902 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.1050794860348105]