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.0008567/0.0008567, allocations: 80.92 kB / 21.5 MB, free: 2.992 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.0008944/0.0008944, allocations: 173.7 kB / 24.92 MB, free: 8.723 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.8638/0.8638, allocations: 177.1 MB / 205.3 MB, free: 4.488 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: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.1.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.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.172e-06/1.172e-06, allocations: 0 / 273.5 MB, free: 4.379 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.443e-05/1.56e-05, allocations: 7.766 kB / 273.5 MB, free: 4.375 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008589/0.008604, allocations: 7.288 MB / 280.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005962/0.01457, allocations: 3.362 MB / 284.2 MB, free: 9.695 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005501/0.01512, allocations: 43.81 kB / 284.2 MB, free: 9.652 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001804/0.01692, allocations: 1.086 MB / 285.3 MB, free: 8.562 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00243/0.01935, allocations: 1.377 MB / 286.7 MB, free: 7.18 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001094/0.02045, allocations: 0.5805 MB / 287.2 MB, free: 6.598 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002864/0.02331, allocations: 2.975 MB / 290.2 MB, free: 3.617 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001905/0.02521, allocations: 1.463 MB / 291.7 MB, free: 2.117 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001313/0.02653, allocations: 1.29 MB / 293 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00146/0.02799, allocations: 1.251 MB / 294.2 MB, free: 15.57 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001864/0.02817, allocations: 152 kB / 294.4 MB, free: 15.42 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009917/0.02917, allocations: 0.8461 MB / 295.2 MB, free: 14.57 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000654/0.02982, allocations: 1.126 MB / 296.3 MB, free: 13.45 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005036/0.03032, allocations: 0.6695 MB / 297 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002117/0.03244, allocations: 2.837 MB / 299.9 MB, free: 9.926 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.03244, allocations: 0 / 299.9 MB, free: 9.926 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.03244, allocations: 4 kB / 299.9 MB, free: 9.922 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.072e-05/0.03248, allocations: 0 / 299.9 MB, free: 9.922 MB / 282.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.002864/0.03534, allocations: 2.726 MB / 302.6 MB, free: 7.156 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.616e-05/0.03537, allocations: 8.031 kB / 302.6 MB, free: 7.148 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002058/0.03742, allocations: 0.7772 MB / 303.4 MB, free: 6.371 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001112/0.03854, allocations: 1.055 MB / 304.4 MB, free: 5.281 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.687e-05/0.0386, allocations: 119.4 kB / 304.5 MB, free: 5.164 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002122/0.03881, allocations: 167.8 kB / 304.7 MB, free: 5 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003486/0.0423, allocations: 3.12 MB / 307.8 MB, free: 1.395 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.277e-05/0.04235, allocations: 27.77 kB / 307.8 MB, free: 1.367 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001925/0.04255, allocations: 83.83 kB / 307.9 MB, free: 1.285 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001401/0.04395, allocations: 1.238 MB / 309.2 MB, free: 48 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00331/0.04726, allocations: 1.633 MB / 310.8 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01576/0.06302, allocations: 20.34 MB / 331.1 MB, free: 9.254 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001906/0.06492, allocations: 0.942 MB / 332.1 MB, free: 8.27 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002837/0.0652, allocations: 214 kB / 332.3 MB, free: 8.051 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002812/0.06802, allocations: 2.165 MB / 334.5 MB, free: 5.867 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.06804, allocations: 46.55 kB / 334.5 MB, free: 5.812 MB / 314.7 MB Notification: Performance of pre-optimization done (n=79): time 2.485e-06/0.06805, allocations: 0 / 334.5 MB, free: 5.812 MB / 314.7 MB Notification: Performance of matching and sorting (n=80): time 0.004034/0.07208, allocations: 1.939 MB / 336.4 MB, free: 3.836 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.769e-05/0.07213, allocations: 140.4 kB / 336.6 MB, free: 3.668 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001517/0.07365, allocations: 2.17 MB / 338.8 MB, free: 1.461 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.07368, allocations: 37.7 kB / 338.8 MB, free: 1.418 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007655/0.07445, allocations: 2.101 MB / 340.9 MB, free: 15.29 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000186/0.07463, allocations: 357.4 kB / 341.2 MB, free: 14.94 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005276/0.07516, allocations: 0.7709 MB / 342 MB, free: 14.16 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.985e-05/0.07525, allocations: 361.8 kB / 342.4 MB, free: 13.8 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006407/0.07589, allocations: 485.8 kB / 342.8 MB, free: 13.32 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001628/0.07752, allocations: 3.113 MB / 346 MB, free: 8.824 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002505/0.08002, allocations: 3.965 MB / 349.9 MB, free: 3.488 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.352e-05/0.08006, allocations: 28 kB / 349.9 MB, free: 3.461 MB / 330.7 MB Notification: Performance of matching and sorting (n=533) (initialization): time 0.002755/0.08281, allocations: 2.821 MB / 352.8 MB, free: 0.625 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.024e-05/0.08285, allocations: 44 kB / 352.8 MB, free: 0.582 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.287e-05/0.08291, allocations: 100 kB / 352.9 MB, free: 496 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002339/0.08315, allocations: 171.6 kB / 353.1 MB, free: 320 kB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1017/0.1848, allocations: 0.9494 MB / 354 MB, free: 69.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009507/0.1858, allocations: 1.441 MB / 355.5 MB, free: 67.9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001796/0.1876, allocations: 189 kB / 355.6 MB, free: 67.9 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003045/0.1879, allocations: 231.1 kB / 355.9 MB, free: 67.9 MB / 330.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.0009242/0.1888, allocations: 469.2 kB / 356.3 MB, free: 67.79 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002818/0.1891, allocations: 121.6 kB / 356.4 MB, free: 67.79 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000603/0.1897, allocations: 384.5 kB / 356.8 MB, free: 67.71 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.801e-05/0.1897, allocations: 13.53 kB / 356.8 MB, free: 67.71 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.944e-06/0.1897, allocations: 1.859 kB / 356.8 MB, free: 67.71 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.375e-06/0.1897, allocations: 4.969 kB / 356.8 MB, free: 67.71 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002388/0.1921, allocations: 1.691 MB / 358.5 MB, free: 67.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.1921, allocations: 1.344 kB / 358.5 MB, free: 67.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002774/0.1924, allocations: 89.7 kB / 358.6 MB, free: 67.32 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001412/0.1925, allocations: 50.41 kB / 358.7 MB, free: 67.31 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.263e-05/0.1926, allocations: 13.91 kB / 358.7 MB, free: 67.31 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007422/0.1933, allocations: 1.381 MB / 360.1 MB, free: 66.14 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.1933, allocations: 2.312 kB / 360.1 MB, free: 66.14 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008218/0.1941, allocations: 1.039 MB / 361.1 MB, free: 65.56 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001749/0.1943, allocations: 197 kB / 361.3 MB, free: 65.56 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.1944, allocations: 16.59 kB / 361.3 MB, free: 65.56 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003405/0.1948, allocations: 12.38 kB / 361.3 MB, free: 65.56 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.872e-05/0.1948, allocations: 45.41 kB / 361.4 MB, free: 65.55 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.417e-05/0.1949, allocations: 17.66 kB / 361.4 MB, free: 65.55 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0006816/0.1956, allocations: 0.7631 MB / 362.2 MB, free: 65.47 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1956, allocations: 0 / 362.2 MB, free: 65.47 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001892/0.1975, allocations: 0.6335 MB / 362.8 MB, free: 65.47 MB / 330.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.0003148/0.1978, allocations: 196.5 kB / 363 MB, free: 65.4 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001577/0.1993, allocations: 1.634 MB / 364.6 MB, free: 65.24 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 8.818e-05/0.1994, allocations: 59.44 kB / 364.7 MB, free: 65.23 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002613/0.1997, allocations: 297 kB / 365 MB, free: 65.11 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008999/0.2006, allocations: 346.6 kB / 365.3 MB, free: 65.09 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004315/0.2049, allocations: 4.275 MB / 369.6 MB, free: 63.29 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005286/0.2054, allocations: 0.7303 MB / 370.3 MB, free: 63.17 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0007013/0.2061, allocations: 321.1 kB / 370.6 MB, free: 63.07 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003959/0.2065, allocations: 346.9 kB / 371 MB, free: 63.02 MB / 330.7 MB Notification: Performance of SimCode: time 1.443e-06/0.2065, allocations: 0 / 371 MB, free: 63.02 MB / 330.7 MB Notification: Performance of Templates: time 0.02353/0.2301, allocations: 16.57 MB / 387.5 MB, free: 50.47 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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.116802044212818]