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.001883/0.001883, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.001918/0.001918, allocations: 149.1 kB / 24.26 MB, free: 172 kB / 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 1.511/1.511, allocations: 173.4 MB / 200.8 MB, free: 9.328 MB / 186.7 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: 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.303e-06/1.303e-06, allocations: 0 / 267.3 MB, free: 6.734 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.232e-05/2.363e-05, allocations: 2.312 kB / 267.3 MB, free: 6.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01052/0.01054, allocations: 7.41 MB / 274.7 MB, free: 15.28 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006473/0.01701, allocations: 3.255 MB / 278 MB, free: 12.02 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005294/0.01754, allocations: 43.81 kB / 278 MB, free: 11.97 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00246/0.02, allocations: 1.097 MB / 279.1 MB, free: 10.87 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002978/0.02298, allocations: 1.427 MB / 280.6 MB, free: 9.438 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001272/0.02425, allocations: 0.6001 MB / 281.2 MB, free: 8.836 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003631/0.02788, allocations: 2.92 MB / 284.1 MB, free: 5.914 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002059/0.02994, allocations: 1.525 MB / 285.6 MB, free: 4.359 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002021/0.03197, allocations: 1.298 MB / 286.9 MB, free: 3.059 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002002/0.03397, allocations: 1.34 MB / 288.2 MB, free: 1.715 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003102/0.03428, allocations: 152 kB / 288.4 MB, free: 1.566 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001641/0.03592, allocations: 0.8306 MB / 289.2 MB, free: 0.7344 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.1145/0.1504, allocations: 1.14 MB / 290.4 MB, free: 18.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00128/0.1517, allocations: 0.69 MB / 291.1 MB, free: 18.46 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005861/0.1575, allocations: 4.147 MB / 295.2 MB, free: 18.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.1575, allocations: 1.281 kB / 295.2 MB, free: 18.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1575, allocations: 0 / 295.2 MB, free: 18.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001466/0.1577, allocations: 1.125 kB / 295.2 MB, free: 18.25 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.007365/0.1651, allocations: 3.561 MB / 298.8 MB, free: 16.83 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.357e-05/0.1651, allocations: 14.72 kB / 298.8 MB, free: 16.83 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005844/0.1709, allocations: 1.897 MB / 300.7 MB, free: 16.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002877/0.1738, allocations: 1.233 MB / 301.9 MB, free: 16.29 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.895e-05/0.1739, allocations: 118.4 kB / 302 MB, free: 16.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003408/0.1742, allocations: 158.8 kB / 302.2 MB, free: 16.29 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007179/0.1814, allocations: 4.137 MB / 306.3 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.775e-05/0.1815, allocations: 32.47 kB / 306.3 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002443/0.1817, allocations: 82 kB / 306.4 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002267/0.184, allocations: 1.465 MB / 307.9 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006535/0.1905, allocations: 2.416 MB / 310.3 MB, free: 12.84 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03388/0.2244, allocations: 31.07 MB / 341.4 MB, free: 14.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005138/0.2296, allocations: 1.257 MB / 342.6 MB, free: 13.21 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009212/0.2305, allocations: 404.9 kB / 343 MB, free: 12.79 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008577/0.2391, allocations: 3.385 MB / 346.4 MB, free: 9.406 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.022e-05/0.2391, allocations: 48.95 kB / 346.5 MB, free: 9.352 MB / 298.7 MB Notification: Performance of pre-optimization done (n=97): time 3.868e-06/0.2391, allocations: 0 / 346.5 MB, free: 9.352 MB / 298.7 MB Notification: Performance of matching and sorting (n=105): time 0.02403/0.2631, allocations: 7.013 MB / 353.5 MB, free: 2.316 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001115/0.2633, allocations: 140.2 kB / 353.6 MB, free: 2.148 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004736/0.268, allocations: 2.993 MB / 356.6 MB, free: 15.12 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001185/0.2681, allocations: 41.7 kB / 356.6 MB, free: 15.07 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002322/0.2704, allocations: 2.38 MB / 359 MB, free: 12.71 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006151/0.271, allocations: 487.7 kB / 359.5 MB, free: 12.24 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001669/0.2727, allocations: 1.042 MB / 360.5 MB, free: 11.18 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0003901/0.2731, allocations: 0.5551 MB / 361.1 MB, free: 10.62 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001392/0.2745, allocations: 0.496 MB / 361.6 MB, free: 10.11 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005454/0.28, allocations: 4.522 MB / 366.1 MB, free: 3.824 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007701/0.2877, allocations: 5.499 MB / 371.6 MB, free: 12.67 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.608e-05/0.2877, allocations: 28 kB / 371.6 MB, free: 12.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01011/0.2979, allocations: 4.166 MB / 375.8 MB, free: 8.469 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.734e-05/0.2979, allocations: 44 kB / 375.9 MB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001169/0.2981, allocations: 92.75 kB / 375.9 MB, free: 8.336 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002475/0.3005, allocations: 0.5614 MB / 376.5 MB, free: 7.77 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003141/0.3037, allocations: 0.955 MB / 377.5 MB, free: 6.816 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005244/0.3089, allocations: 3.064 MB / 380.5 MB, free: 3.633 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003278/0.3122, allocations: 279.6 kB / 380.8 MB, free: 3.359 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005171/0.3127, allocations: 265.5 kB / 381.1 MB, free: 3.105 MB / 330.7 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 (502): * Single equations (assignments): 498 * 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.001507/0.3142, allocations: 0.5589 MB / 381.6 MB, free: 2.535 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005245/0.3147, allocations: 238.6 kB / 381.9 MB, free: 2.301 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003952/0.3187, allocations: 1.196 MB / 383 MB, free: 1.09 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.614e-05/0.3187, allocations: 15.98 kB / 383.1 MB, free: 1.074 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.3187, allocations: 4 kB / 383.1 MB, free: 1.07 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.164e-05/0.3187, allocations: 3.984 kB / 383.1 MB, free: 1.066 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01033/0.3291, allocations: 3.954 MB / 387 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.3291, allocations: 0 / 387 MB, free: 13.07 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008476/0.3299, allocations: 155.8 kB / 387.2 MB, free: 12.92 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002083/0.332, allocations: 438.8 kB / 387.6 MB, free: 12.49 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.467e-05/0.3321, allocations: 19.94 kB / 387.6 MB, free: 12.47 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004286/0.3364, allocations: 2.547 MB / 390.2 MB, free: 9.805 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3364, allocations: 0 / 390.2 MB, free: 9.805 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005137/0.3415, allocations: 2.161 MB / 392.3 MB, free: 7.605 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006177/0.3421, allocations: 206.4 kB / 392.5 MB, free: 7.402 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002604/0.3424, allocations: 23.62 kB / 392.6 MB, free: 7.383 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001141/0.3435, allocations: 99.83 kB / 392.7 MB, free: 7.285 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002076/0.3438, allocations: 64.45 kB / 392.7 MB, free: 7.223 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001015/0.3439, allocations: 36.19 kB / 392.8 MB, free: 7.191 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.002416/0.3463, allocations: 1.209 MB / 394 MB, free: 5.965 MB / 346.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3463, allocations: 0 / 394 MB, free: 5.965 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.003908/0.3502, allocations: 0.7576 MB / 394.7 MB, free: 5.207 MB / 346.7 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.0006216/0.3508, allocations: 220.1 kB / 394.9 MB, free: 4.988 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.005143/0.3559, allocations: 2.335 MB / 397.3 MB, free: 2.641 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3559, allocations: 0 / 397.3 MB, free: 2.641 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.3571, allocations: 0.5975 MB / 397.9 MB, free: 2.027 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001659/0.3587, allocations: 237.4 kB / 398.1 MB, free: 1.797 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009213/0.368, allocations: 4.594 MB / 402.7 MB, free: 13.13 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002249/0.3702, allocations: 1.501 MB / 404.2 MB, free: 11.59 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002737/0.3729, allocations: 1.111 MB / 405.3 MB, free: 10.47 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004719/0.3734, allocations: 160.5 kB / 405.5 MB, free: 10.32 MB / 362.7 MB Notification: Performance of SimCode: time 1.172e-06/0.3734, allocations: 0 / 405.5 MB, free: 10.32 MB / 362.7 MB Notification: Performance of Templates: time 0.04922/0.4226, allocations: 20.92 MB / 426.4 MB, free: 5.707 MB / 378.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 -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","/var/lib/jenkins/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: 5.87377580802422]