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.0008549/0.0008549, allocations: 84 kB / 21.43 MB, free: 3.133 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.003909/0.003909, allocations: 143.6 kB / 24.68 MB, free: 8.891 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.8214/0.8214, allocations: 173.4 MB / 201.2 MB, free: 9.422 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.342e-06/1.342e-06, allocations: 0 / 319.7 MB, free: 5.852 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.644e-05/1.778e-05, allocations: 6.219 kB / 319.7 MB, free: 5.844 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.00535/0.005368, allocations: 6.772 MB / 326.5 MB, free: 15.04 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004422/0.00979, allocations: 3.15 MB / 329.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006262/0.01042, allocations: 43.81 kB / 329.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001292/0.01171, allocations: 1.062 MB / 330.7 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001945/0.01365, allocations: 1.423 MB / 332.2 MB, free: 9.336 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007809/0.01443, allocations: 0.5883 MB / 332.7 MB, free: 8.746 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001894/0.01633, allocations: 2.904 MB / 335.6 MB, free: 5.84 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00132/0.01765, allocations: 1.478 MB / 337.1 MB, free: 4.336 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001019/0.01867, allocations: 1.294 MB / 338.4 MB, free: 3.039 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009842/0.01965, allocations: 1.333 MB / 339.8 MB, free: 1.703 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001448/0.0198, allocations: 152 kB / 339.9 MB, free: 1.555 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009088/0.0207, allocations: 0.8383 MB / 340.7 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005719/0.02128, allocations: 1.137 MB / 341.9 MB, free: 15.57 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004409/0.02172, allocations: 0.6851 MB / 342.6 MB, free: 14.88 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002788/0.02451, allocations: 4.142 MB / 346.7 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.02451, allocations: 0 / 346.7 MB, free: 10.73 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.02451, allocations: 0 / 346.7 MB, free: 10.73 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.781e-05/0.02454, allocations: 0 / 346.7 MB, free: 10.73 MB / 314.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.002985/0.02752, allocations: 3.028 MB / 349.7 MB, free: 7.652 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.46e-05/0.02756, allocations: 8.031 kB / 349.7 MB, free: 7.645 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002905/0.03046, allocations: 1.606 MB / 351.3 MB, free: 6.035 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001405/0.03187, allocations: 1.321 MB / 352.7 MB, free: 4.684 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.79e-05/0.03193, allocations: 127.4 kB / 352.8 MB, free: 4.559 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002052/0.03214, allocations: 163.8 kB / 352.9 MB, free: 4.398 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005449/0.03759, allocations: 6.534 MB / 359.5 MB, free: 13.38 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.125e-05/0.03763, allocations: 23.81 kB / 359.5 MB, free: 13.36 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001542/0.03778, allocations: 83.89 kB / 359.6 MB, free: 13.28 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001285/0.03907, allocations: 1.468 MB / 361.1 MB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005873/0.04494, allocations: 5.826 MB / 366.9 MB, free: 5.977 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01578/0.06072, allocations: 24.29 MB / 391.2 MB, free: 12.93 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002874/0.06359, allocations: 2.087 MB / 393.3 MB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001149/0.06474, allocations: 1.133 MB / 394.4 MB, free: 9.66 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004081/0.06882, allocations: 4.352 MB / 398.7 MB, free: 5.273 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.226e-05/0.06885, allocations: 46.56 kB / 398.8 MB, free: 5.219 MB / 362.7 MB Notification: Performance of pre-optimization done (n=97): time 2.485e-06/0.06885, allocations: 0 / 398.8 MB, free: 5.219 MB / 362.7 MB Notification: Performance of matching and sorting (n=105): time 0.0134/0.08225, allocations: 9.999 MB / 408.8 MB, free: 11.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.555e-05/0.0823, allocations: 145 kB / 408.9 MB, free: 10.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001948/0.08425, allocations: 2.62 MB / 411.5 MB, free: 8.324 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.835e-05/0.08431, allocations: 45.7 kB / 411.6 MB, free: 8.273 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007911/0.0851, allocations: 2.124 MB / 413.7 MB, free: 6.125 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002304/0.08533, allocations: 444.7 kB / 414.1 MB, free: 5.688 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000634/0.08597, allocations: 0.8338 MB / 415 MB, free: 4.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.721e-05/0.08606, allocations: 353.9 kB / 415.3 MB, free: 4.488 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001551/0.08761, allocations: 1.449 MB / 416.8 MB, free: 3.031 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002298/0.08991, allocations: 4.073 MB / 420.9 MB, free: 13.62 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004169/0.09408, allocations: 5.963 MB / 426.8 MB, free: 6.352 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.593e-05/0.09411, allocations: 28 kB / 426.8 MB, free: 6.324 MB / 394.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.005996/0.1001, allocations: 6.006 MB / 432.8 MB, free: 320 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.898e-05/0.1001, allocations: 44 kB / 432.9 MB, free: 276 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.959e-05/0.1002, allocations: 92 kB / 433 MB, free: 184 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00123/0.1014, allocations: 0.8201 MB / 433.8 MB, free: 15.36 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00166/0.1031, allocations: 0.9513 MB / 434.8 MB, free: 14.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003634/0.1067, allocations: 4.511 MB / 439.3 MB, free: 9.801 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001353/0.1081, allocations: 275.6 kB / 439.5 MB, free: 9.531 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002058/0.1083, allocations: 267.9 kB / 439.8 MB, free: 9.27 MB / 410.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.001258/0.1095, allocations: 1.368 MB / 441.2 MB, free: 7.891 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002039/0.1097, allocations: 214.5 kB / 441.4 MB, free: 7.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002567/0.1123, allocations: 2.102 MB / 443.5 MB, free: 5.562 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.435e-05/0.1123, allocations: 19.98 kB / 443.5 MB, free: 5.543 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1123, allocations: 0 / 443.5 MB, free: 5.543 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.647e-06/0.1123, allocations: 11.92 kB / 443.5 MB, free: 5.531 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004859/0.1172, allocations: 4.376 MB / 447.9 MB, free: 1.102 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.1172, allocations: 0 / 447.9 MB, free: 1.102 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003697/0.1176, allocations: 159.7 kB / 448 MB, free: 0.9453 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001062/0.1186, allocations: 0.6834 MB / 448.7 MB, free: 264 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.714e-05/0.1187, allocations: 19.94 kB / 448.7 MB, free: 244 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1528/0.2714, allocations: 4.016 MB / 452.8 MB, free: 117.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.2715, allocations: 8.469 kB / 452.8 MB, free: 117.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003398/0.2748, allocations: 4.034 MB / 456.8 MB, free: 116.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002816/0.2751, allocations: 210.6 kB / 457 MB, free: 116.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001219/0.2753, allocations: 19.45 kB / 457 MB, free: 116.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005289/0.2758, allocations: 102.4 kB / 457.1 MB, free: 116.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.2759, allocations: 59.09 kB / 457.2 MB, free: 116.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.021e-05/0.2759, allocations: 38.44 kB / 457.2 MB, free: 116.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001205/0.2771, allocations: 1.517 MB / 458.7 MB, free: 115.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 3e-08/0.2771, allocations: 3.969 kB / 458.7 MB, free: 115.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001945/0.2791, allocations: 0.755 MB / 459.5 MB, free: 115.5 MB / 410.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.0003713/0.2795, allocations: 225.2 kB / 459.7 MB, free: 115.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002502/0.282, allocations: 3.363 MB / 463.1 MB, free: 113.4 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.282, allocations: 7.938 kB / 463.1 MB, free: 113.4 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006328/0.2826, allocations: 0.9541 MB / 464 MB, free: 112.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007888/0.2834, allocations: 227.8 kB / 464.3 MB, free: 112.3 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004372/0.2878, allocations: 5.942 MB / 470.2 MB, free: 107 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009654/0.2887, allocations: 1.671 MB / 471.9 MB, free: 105.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002927/0.289, allocations: 184.3 kB / 472.1 MB, free: 105.1 MB / 410.7 MB Notification: Performance of SimCode: time 5.81e-07/0.289, allocations: 4 kB / 472.1 MB, free: 105.1 MB / 410.7 MB Notification: Performance of Templates: time 0.0266/0.3156, allocations: 49.31 MB / 0.5091 GB, free: 55.91 MB / 410.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 480] 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: 6.352276501245797]