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.001291/0.001291, allocations: 85 kB / 20.68 MB, free: 1.027 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.001476/0.001476, allocations: 164 kB / 23.95 MB, free: 4.148 MB / 14.72 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 1.421/1.421, allocations: 177.1 MB / 204.3 MB, free: 9.207 MB / 190.1 MB " [Timeout remaining time 178] 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 2.505e-06/2.505e-06, allocations: 0 / 325.1 MB, free: 400 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.861e-05/3.112e-05, allocations: 3.344 kB / 325.1 MB, free: 396 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009314/0.009345, allocations: 6.767 MB / 331.8 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007337/0.01668, allocations: 3.173 MB / 335 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001388/0.01807, allocations: 44.12 kB / 335.1 MB, free: 9.668 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002483/0.02055, allocations: 1.056 MB / 336.1 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003689/0.02424, allocations: 1.391 MB / 337.5 MB, free: 8.012 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001462/0.0257, allocations: 0.5872 MB / 338.1 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003881/0.02958, allocations: 2.971 MB / 341.1 MB, free: 5.008 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001964/0.03155, allocations: 1.462 MB / 342.5 MB, free: 3.52 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001952/0.0335, allocations: 1.278 MB / 343.8 MB, free: 2.234 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001994/0.03549, allocations: 1.333 MB / 345.1 MB, free: 0.8984 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003517/0.03585, allocations: 152 kB / 345.3 MB, free: 0.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001864/0.03771, allocations: 0.8304 MB / 346.1 MB, free: 15.92 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001205/0.03891, allocations: 1.118 MB / 347.2 MB, free: 14.8 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001045/0.03996, allocations: 0.6695 MB / 347.9 MB, free: 14.12 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005172/0.04513, allocations: 4.103 MB / 352 MB, free: 10.01 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.04513, allocations: 4 kB / 352 MB, free: 10 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.04514, allocations: 0 / 352 MB, free: 10 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.063e-05/0.0452, allocations: 0 / 352 MB, free: 10 MB / 318.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.00593/0.05113, allocations: 3.001 MB / 355 MB, free: 6.957 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.087e-05/0.05117, allocations: 8.031 kB / 355 MB, free: 6.949 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006045/0.05721, allocations: 1.649 MB / 356.7 MB, free: 5.297 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002832/0.06005, allocations: 1.321 MB / 358 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001134/0.06016, allocations: 123.4 kB / 358.1 MB, free: 3.82 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003691/0.06053, allocations: 159.8 kB / 358.3 MB, free: 3.664 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01107/0.0716, allocations: 6.546 MB / 364.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.415e-05/0.07168, allocations: 31.7 kB / 364.8 MB, free: 12.61 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002748/0.07196, allocations: 83.89 kB / 364.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002775/0.07473, allocations: 1.468 MB / 366.4 MB, free: 11.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01159/0.08632, allocations: 5.841 MB / 372.2 MB, free: 5.203 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0297/0.116, allocations: 24.29 MB / 396.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005706/0.1217, allocations: 2.083 MB / 398.6 MB, free: 10.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001587/0.1233, allocations: 1.133 MB / 399.7 MB, free: 8.895 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00763/0.1309, allocations: 4.355 MB / 404.1 MB, free: 4.508 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.454e-05/0.131, allocations: 38.56 kB / 404.1 MB, free: 4.461 MB / 366.1 MB Notification: Performance of pre-optimization done (n=97): time 3.597e-06/0.131, allocations: 0 / 404.1 MB, free: 4.461 MB / 366.1 MB Notification: Performance of matching and sorting (n=105): time 0.02641/0.1574, allocations: 10.01 MB / 414.1 MB, free: 10.38 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.53e-05/0.1575, allocations: 148.9 kB / 414.3 MB, free: 10.2 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00361/0.1611, allocations: 2.608 MB / 416.9 MB, free: 7.559 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001337/0.1612, allocations: 37.7 kB / 416.9 MB, free: 7.516 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001598/0.1628, allocations: 2.128 MB / 419.1 MB, free: 5.363 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004745/0.1633, allocations: 440.8 kB / 419.5 MB, free: 4.93 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001133/0.1644, allocations: 0.8377 MB / 420.3 MB, free: 4.078 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.1646, allocations: 357.9 kB / 420.7 MB, free: 3.723 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002361/0.167, allocations: 1.456 MB / 422.1 MB, free: 2.258 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004553/0.1715, allocations: 4.077 MB / 426.2 MB, free: 12.85 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00759/0.1791, allocations: 5.974 MB / 432.2 MB, free: 5.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.496e-05/0.1792, allocations: 24 kB / 432.2 MB, free: 5.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.0117/0.1909, allocations: 6.028 MB / 438.2 MB, free: 15.51 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.699e-05/0.191, allocations: 44 kB / 438.3 MB, free: 15.46 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.819e-05/0.1911, allocations: 92 kB / 438.4 MB, free: 15.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002623/0.1937, allocations: 0.8272 MB / 439.2 MB, free: 14.55 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003232/0.1969, allocations: 0.9552 MB / 440.2 MB, free: 13.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006727/0.2036, allocations: 4.499 MB / 444.7 MB, free: 8.992 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003394/0.207, allocations: 303.6 kB / 445 MB, free: 8.695 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006362/0.2077, allocations: 260 kB / 445.2 MB, free: 8.441 MB / 414.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 (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.002438/0.2101, allocations: 1.372 MB / 446.6 MB, free: 7.059 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004965/0.2106, allocations: 210.6 kB / 446.8 MB, free: 6.852 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00464/0.2152, allocations: 2.105 MB / 448.9 MB, free: 4.734 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.918e-05/0.2153, allocations: 15.98 kB / 448.9 MB, free: 4.719 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.2153, allocations: 8 kB / 448.9 MB, free: 4.711 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.434e-05/0.2153, allocations: 11.92 kB / 448.9 MB, free: 4.699 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009039/0.2243, allocations: 4.372 MB / 453.3 MB, free: 280 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.167e-06/0.2243, allocations: 4 kB / 453.3 MB, free: 276 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008367/0.2252, allocations: 163.6 kB / 453.5 MB, free: 112 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002265/0.2274, allocations: 0.6717 MB / 454.1 MB, free: 15.43 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.496e-05/0.2275, allocations: 24.06 kB / 454.2 MB, free: 15.41 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005775/0.2333, allocations: 4.01 MB / 458.2 MB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2333, allocations: 0 / 458.2 MB, free: 11.3 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007128/0.2404, allocations: 4.041 MB / 462.2 MB, free: 7.227 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006287/0.2411, allocations: 206.5 kB / 462.4 MB, free: 7.023 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002682/0.2413, allocations: 28.11 kB / 462.4 MB, free: 6.996 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001131/0.2425, allocations: 103.8 kB / 462.5 MB, free: 6.895 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002072/0.2427, allocations: 64.31 kB / 462.6 MB, free: 6.832 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-05/0.2428, allocations: 31.98 kB / 462.6 MB, free: 6.801 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002432/0.2452, allocations: 1.517 MB / 464.1 MB, free: 5.266 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2452, allocations: 0 / 464.1 MB, free: 5.266 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003149/0.2484, allocations: 0.7419 MB / 464.9 MB, free: 4.523 MB / 430.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.0004847/0.2488, allocations: 225.9 kB / 465.1 MB, free: 4.297 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005133/0.254, allocations: 3.368 MB / 468.5 MB, free: 0.9336 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.776e-06/0.254, allocations: 0 / 468.5 MB, free: 0.9336 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.1396/0.3936, allocations: 0.9604 MB / 469.4 MB, free: 129.1 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001984/0.3956, allocations: 215.1 kB / 469.6 MB, free: 129.1 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00965/0.4053, allocations: 5.651 MB / 475.3 MB, free: 127.4 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002236/0.4075, allocations: 1.668 MB / 477 MB, free: 127.2 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002623/0.4101, allocations: 1.303 MB / 478.3 MB, free: 127.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004761/0.4106, allocations: 149.7 kB / 478.4 MB, free: 127.2 MB / 430.1 MB Notification: Performance of SimCode: time 2.144e-06/0.4106, allocations: 0 / 478.4 MB, free: 127.2 MB / 430.1 MB Notification: Performance of Templates: time 0.03775/0.4483, allocations: 20.68 MB / 499.1 MB, free: 113.9 MB / 430.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.535641763359308]