Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001724/0.001724, allocations: 84.25 kB / 21.99 MB, free: 5.184 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.001922/0.001922, allocations: 161.8 kB / 25.25 MB, free: 3.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.321/1.321, allocations: 158.6 MB / 187 MB, free: 6.484 MB / 174.1 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 58.44 kB / 299.4 MB, free: 8.793 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2172/0.219, allocations: 49.14 MB / 348.5 MB, free: 15.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008979/0.228, allocations: 6.833 MB / 355.3 MB, free: 10.37 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006452/0.2345, allocations: 3.1 MB / 358.4 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008037/0.2353, allocations: 47.81 kB / 358.5 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002102/0.2374, allocations: 1.008 MB / 359.5 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002966/0.2403, allocations: 1.386 MB / 360.9 MB, free: 4.812 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001332/0.2417, allocations: 0.5457 MB / 361.4 MB, free: 4.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003711/0.2454, allocations: 2.594 MB / 364 MB, free: 1.664 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001532/0.2469, allocations: 1.232 MB / 365.3 MB, free: 412 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001135/0.248, allocations: 0.8526 MB / 366.1 MB, free: 15.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001633/0.2497, allocations: 1.23 MB / 367.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000284/0.25, allocations: 148 kB / 367.5 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001613/0.2516, allocations: 0.7837 MB / 368.3 MB, free: 13.38 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001062/0.2526, allocations: 1.094 MB / 369.4 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001056/0.2537, allocations: 0.908 MB / 370.3 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004821/0.2585, allocations: 4.145 MB / 374.4 MB, free: 7.215 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.2585, allocations: 0 / 374.4 MB, free: 7.215 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.2585, allocations: 0 / 374.4 MB, free: 7.215 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.173e-05/0.2586, allocations: 0 / 374.4 MB, free: 7.215 MB / 334.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.005394/0.264, allocations: 3.013 MB / 377.4 MB, free: 4.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.264, allocations: 11.98 kB / 377.4 MB, free: 4.145 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005911/0.2699, allocations: 1.653 MB / 379.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002927/0.2728, allocations: 1.419 MB / 380.5 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001159/0.273, allocations: 123 kB / 380.6 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003422/0.2733, allocations: 159.9 kB / 380.8 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01038/0.2837, allocations: 6.546 MB / 387.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.998e-05/0.2837, allocations: 31.77 kB / 387.4 MB, free: 9.699 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002417/0.284, allocations: 83.83 kB / 387.4 MB, free: 9.617 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002737/0.2867, allocations: 1.472 MB / 388.9 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01107/0.2978, allocations: 5.834 MB / 394.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03167/0.3295, allocations: 24.26 MB / 419 MB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006079/0.3356, allocations: 2.074 MB / 421.1 MB, free: 7.176 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001758/0.3373, allocations: 1.133 MB / 422.2 MB, free: 6.031 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008131/0.3454, allocations: 4.289 MB / 426.5 MB, free: 1.707 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.931e-05/0.3455, allocations: 42.56 kB / 426.5 MB, free: 1.656 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.566e-06/0.3455, allocations: 0 / 426.5 MB, free: 1.656 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02675/0.3722, allocations: 9.96 MB / 436.5 MB, free: 7.625 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001107/0.3724, allocations: 145 kB / 436.6 MB, free: 7.449 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00413/0.3765, allocations: 2.554 MB / 439.2 MB, free: 4.859 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001587/0.3766, allocations: 41.69 kB / 439.2 MB, free: 4.812 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001743/0.3784, allocations: 2.155 MB / 441.4 MB, free: 2.633 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005475/0.3789, allocations: 441 kB / 441.8 MB, free: 2.199 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001359/0.3803, allocations: 0.8456 MB / 442.7 MB, free: 1.34 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001899/0.3805, allocations: 357.9 kB / 443 MB, free: 0.9844 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002573/0.3831, allocations: 1.464 MB / 444.5 MB, free: 15.51 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005174/0.3882, allocations: 4.081 MB / 448.6 MB, free: 10.1 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007692/0.3959, allocations: 5.974 MB / 454.5 MB, free: 2.82 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.032e-05/0.396, allocations: 31.94 kB / 454.6 MB, free: 2.789 MB / 414.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01211/0.4081, allocations: 6.032 MB / 460.6 MB, free: 12.75 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.91e-05/0.4082, allocations: 47.94 kB / 460.7 MB, free: 12.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001519/0.4084, allocations: 92 kB / 460.7 MB, free: 12.61 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002575/0.4109, allocations: 0.8123 MB / 461.6 MB, free: 11.79 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003119/0.4141, allocations: 0.967 MB / 462.5 MB, free: 10.82 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006497/0.4206, allocations: 4.483 MB / 467 MB, free: 6.238 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002941/0.4235, allocations: 271.6 kB / 467.3 MB, free: 5.973 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004641/0.424, allocations: 268 kB / 467.5 MB, free: 5.711 MB / 430.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.002206/0.4262, allocations: 1.372 MB / 468.9 MB, free: 4.328 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004763/0.4266, allocations: 210.6 kB / 469.1 MB, free: 4.121 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004611/0.4312, allocations: 2.098 MB / 471.2 MB, free: 2.008 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.257e-05/0.4313, allocations: 15.94 kB / 471.2 MB, free: 1.992 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.388e-05/0.4313, allocations: 8 kB / 471.2 MB, free: 1.984 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.4313, allocations: 3.984 kB / 471.2 MB, free: 1.98 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009567/0.4409, allocations: 4.341 MB / 475.6 MB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.4409, allocations: 3.984 kB / 475.6 MB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008449/0.4417, allocations: 151.9 kB / 475.7 MB, free: 13.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002269/0.444, allocations: 0.6872 MB / 476.4 MB, free: 12.74 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001057/0.4441, allocations: 15.91 kB / 476.4 MB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005762/0.4499, allocations: 3.994 MB / 480.4 MB, free: 8.629 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.4499, allocations: 7.969 kB / 480.4 MB, free: 8.621 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00693/0.4568, allocations: 4.047 MB / 484.5 MB, free: 4.543 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/0.4578, allocations: 358.4 kB / 484.8 MB, free: 4.191 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000339/0.4582, allocations: 16 kB / 484.8 MB, free: 4.176 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001087/0.4593, allocations: 83.86 kB / 484.9 MB, free: 4.094 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001846/0.4594, allocations: 60.45 kB / 485 MB, free: 4.035 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.38e-05/0.4595, allocations: 32 kB / 485 MB, free: 4.004 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002549/0.4621, allocations: 1.475 MB / 486.5 MB, free: 2.512 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4621, allocations: 0 / 486.5 MB, free: 2.512 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003188/0.4653, allocations: 0.6716 MB / 487.2 MB, free: 1.84 MB / 446.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.000469/0.4657, allocations: 194.8 kB / 487.4 MB, free: 1.641 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005761/0.4715, allocations: 3.376 MB / 490.7 MB, free: 14.27 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.4715, allocations: 0 / 490.7 MB, free: 14.27 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001492/0.473, allocations: 0.9592 MB / 491.7 MB, free: 13.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001612/0.4746, allocations: 232 kB / 491.9 MB, free: 13.07 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/0.4854, allocations: 5.724 MB / 497.6 MB, free: 7.297 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004391/0.4897, allocations: 1.678 MB / 499.3 MB, free: 5.582 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.004975/0.4947, allocations: 1.292 MB / 0.4889 GB, free: 4.285 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007768/0.4955, allocations: 152.5 kB / 0.489 GB, free: 4.137 MB / 462.1 MB Notification: Performance of SimCode: time 1.663e-06/0.4955, allocations: 4 kB / 0.489 GB, free: 4.133 MB / 462.1 MB Notification: Performance of Templates: time 0.2141/0.7096, allocations: 19.44 MB / 0.508 GB, free: 132.6 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.547459489083849]