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.001364/0.001364, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.001482/0.001482, allocations: 170.8 kB / 24.91 MB, free: 9.156 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.9263/0.9263, allocations: 177.1 MB / 205.3 MB, free: 5.504 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.363e-06/1.363e-06, allocations: 0 / 273.5 MB, free: 1.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.137e-05/2.273e-05, allocations: 2.312 kB / 273.5 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.00745/0.007472, allocations: 7.237 MB / 280.7 MB, free: 10.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003965/0.01144, allocations: 3.363 MB / 284.1 MB, free: 6.66 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003282/0.01177, allocations: 39.81 kB / 284.1 MB, free: 6.621 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001223/0.01299, allocations: 1.101 MB / 285.2 MB, free: 5.516 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001514/0.0145, allocations: 1.404 MB / 286.6 MB, free: 4.105 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006066/0.01511, allocations: 0.6 MB / 287.2 MB, free: 3.504 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001934/0.01704, allocations: 2.974 MB / 290.2 MB, free: 0.5234 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1133/0.1304, allocations: 1.557 MB / 291.7 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002327/0.1327, allocations: 1.316 MB / 293 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001893/0.1346, allocations: 1.253 MB / 294.3 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0004169/0.135, allocations: 150 kB / 294.4 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001431/0.1365, allocations: 0.8251 MB / 295.3 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000912/0.1374, allocations: 1.125 MB / 296.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001066/0.1384, allocations: 0.6707 MB / 297.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003132/0.1416, allocations: 2.829 MB / 299.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1416, allocations: 1.375 kB / 299.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.1416, allocations: 0 / 299.9 MB, free: 14.78 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001062/0.1417, allocations: 1.031 kB / 299.9 MB, free: 14.78 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.004159/0.1458, allocations: 2.735 MB / 302.6 MB, free: 13.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.437e-05/0.1459, allocations: 9.625 kB / 302.6 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00212/0.148, allocations: 0.7782 MB / 303.4 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001225/0.1492, allocations: 1.056 MB / 304.5 MB, free: 12.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.114e-05/0.1493, allocations: 120.5 kB / 304.6 MB, free: 12.7 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002096/0.1495, allocations: 165.3 kB / 304.8 MB, free: 12.67 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002661/0.1521, allocations: 3.124 MB / 307.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.452e-05/0.1522, allocations: 32.8 kB / 307.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001553/0.1523, allocations: 82.02 kB / 308 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009426/0.1533, allocations: 1.242 MB / 309.2 MB, free: 10.79 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002326/0.1556, allocations: 1.622 MB / 310.9 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01086/0.1665, allocations: 20.35 MB / 331.2 MB, free: 6.023 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001851/0.1683, allocations: 0.9254 MB / 332.1 MB, free: 5.09 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000245/0.1686, allocations: 220.2 kB / 332.4 MB, free: 4.871 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002427/0.171, allocations: 2.162 MB / 334.5 MB, free: 2.734 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.824e-05/0.171, allocations: 46.5 kB / 334.6 MB, free: 2.68 MB / 282.7 MB Notification: Performance of pre-optimization done (n=79): time 2.876e-06/0.171, allocations: 4 kB / 334.6 MB, free: 2.676 MB / 282.7 MB Notification: Performance of matching and sorting (n=80): time 0.003821/0.1748, allocations: 1.925 MB / 336.5 MB, free: 0.7461 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.68e-05/0.1749, allocations: 139 kB / 336.6 MB, free: 0.582 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00141/0.1763, allocations: 2.171 MB / 338.8 MB, free: 14.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.875e-05/0.1763, allocations: 29.7 kB / 338.8 MB, free: 14.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008229/0.1772, allocations: 2.105 MB / 340.9 MB, free: 12.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001763/0.1773, allocations: 363.7 kB / 341.3 MB, free: 12.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005602/0.1779, allocations: 0.7756 MB / 342.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.971e-05/0.178, allocations: 364.9 kB / 342.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006502/0.1787, allocations: 485.8 kB / 342.9 MB, free: 10.88 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001716/0.1804, allocations: 3.102 MB / 346 MB, free: 6.555 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002237/0.1826, allocations: 3.96 MB / 350 MB, free: 1.453 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.202e-05/0.1826, allocations: 28 kB / 350 MB, free: 1.426 MB / 298.7 MB Notification: Performance of matching and sorting (n=533) (initialization): time 0.00257/0.1852, allocations: 2.819 MB / 352.8 MB, free: 14.59 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.908e-05/0.1852, allocations: 48 kB / 352.8 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.285e-05/0.1853, allocations: 96 kB / 352.9 MB, free: 14.45 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002359/0.1855, allocations: 163.6 kB / 353.1 MB, free: 14.29 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/0.187, allocations: 0.9204 MB / 354 MB, free: 13.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008465/0.1878, allocations: 1.448 MB / 355.5 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/0.189, allocations: 195.7 kB / 355.7 MB, free: 11.63 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001823/0.1891, allocations: 224 kB / 355.9 MB, free: 11.41 MB / 314.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.0005726/0.1897, allocations: 470.9 kB / 356.3 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.1899, allocations: 123.8 kB / 356.5 MB, free: 10.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004457/0.1903, allocations: 386 kB / 356.8 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.1903, allocations: 8 kB / 356.8 MB, free: 10.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.1903, allocations: 4 kB / 356.8 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.1903, allocations: 4 kB / 356.9 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001935/0.1923, allocations: 1.693 MB / 358.5 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.1923, allocations: 0 / 358.5 MB, free: 8.867 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002345/0.1925, allocations: 87.89 kB / 358.6 MB, free: 8.781 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001226/0.1926, allocations: 47.52 kB / 358.7 MB, free: 8.73 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/0.1927, allocations: 14.97 kB / 358.7 MB, free: 8.719 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008371/0.1935, allocations: 1.38 MB / 360.1 MB, free: 7.242 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.1935, allocations: 0 / 360.1 MB, free: 7.242 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007883/0.1943, allocations: 1.035 MB / 361.1 MB, free: 6.172 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001655/0.1945, allocations: 200.5 kB / 361.3 MB, free: 5.977 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001298/0.1946, allocations: 15.98 kB / 361.3 MB, free: 5.961 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003581/0.1949, allocations: 16 kB / 361.3 MB, free: 5.945 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.244e-05/0.195, allocations: 43.8 kB / 361.4 MB, free: 5.902 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.295e-05/0.195, allocations: 20 kB / 361.4 MB, free: 5.883 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005921/0.1956, allocations: 0.7538 MB / 362.1 MB, free: 5.109 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1956, allocations: 0 / 362.1 MB, free: 5.109 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001702/0.1973, allocations: 0.6403 MB / 362.8 MB, free: 4.469 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.0003144/0.1976, allocations: 196 kB / 363 MB, free: 4.27 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001413/0.1991, allocations: 1.635 MB / 364.6 MB, free: 2.637 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 9.454e-05/0.1992, allocations: 56.69 kB / 364.7 MB, free: 2.574 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002675/0.1994, allocations: 284.5 kB / 364.9 MB, free: 2.281 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008631/0.2003, allocations: 360.1 kB / 365.3 MB, free: 1.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004291/0.2046, allocations: 4.283 MB / 369.6 MB, free: 13.58 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005653/0.2051, allocations: 0.7254 MB / 370.3 MB, free: 12.83 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0006488/0.2058, allocations: 329.1 kB / 370.6 MB, free: 12.51 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003975/0.2062, allocations: 345.3 kB / 371 MB, free: 12.17 MB / 330.7 MB Notification: Performance of SimCode: time 8.91e-07/0.2062, allocations: 0 / 371 MB, free: 12.17 MB / 330.7 MB Notification: Performance of Templates: time 0.02423/0.2304, allocations: 16.55 MB / 387.5 MB, free: 11.81 MB / 346.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 -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.168700050096959]