Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00188/0.00188, allocations: 106.5 kB / 21.23 MB, free: 0.6562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002281/0.002281, allocations: 213.9 kB / 24.54 MB, free: 4.016 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 230.3 MB / 258 MB, free: 8.258 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002049/0.002049, allocations: 67.88 kB / 378.8 MB, free: 2.777 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2759, allocations: 53.36 MB / 432.1 MB, free: 7.23 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009976/0.2859, allocations: 7.655 MB / 439.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006528/0.2924, allocations: 3.407 MB / 443.2 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007657/0.2932, allocations: 43.81 kB / 443.2 MB, free: 12.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002229/0.2954, allocations: 1.043 MB / 444.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003095/0.2985, allocations: 1.351 MB / 445.6 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001236/0.2997, allocations: 0.5417 MB / 446.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0035/0.3032, allocations: 2.621 MB / 448.8 MB, free: 6.512 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001503/0.3047, allocations: 1.079 MB / 449.9 MB, free: 5.406 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001377/0.3061, allocations: 0.8407 MB / 450.7 MB, free: 4.562 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001768/0.3079, allocations: 1.261 MB / 452 MB, free: 3.297 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000342/0.3082, allocations: 148 kB / 452.1 MB, free: 3.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001829/0.3101, allocations: 0.9242 MB / 453 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001089/0.3111, allocations: 1.075 MB / 454.1 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00131/0.3125, allocations: 1.234 MB / 455.4 MB, free: 15.9 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00489/0.3173, allocations: 4.1 MB / 459.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3174, allocations: 0 / 459.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.3174, allocations: 0 / 459.5 MB, free: 11.79 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.927e-05/0.3174, allocations: 4 kB / 459.5 MB, free: 11.79 MB / 366.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.005778/0.3232, allocations: 2.986 MB / 462.4 MB, free: 8.754 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/0.3232, allocations: 8.031 kB / 462.4 MB, free: 8.746 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005741/0.3289, allocations: 1.582 MB / 464 MB, free: 7.16 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002788/0.3317, allocations: 1.325 MB / 465.4 MB, free: 5.801 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001185/0.3319, allocations: 127 kB / 465.5 MB, free: 5.676 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000345/0.3322, allocations: 163.9 kB / 465.6 MB, free: 5.516 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01015/0.3424, allocations: 6.538 MB / 472.2 MB, free: 14.5 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.567e-05/0.3424, allocations: 39.75 kB / 472.2 MB, free: 14.46 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002466/0.3427, allocations: 83.89 kB / 472.3 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002741/0.3454, allocations: 1.464 MB / 473.8 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01051/0.3559, allocations: 5.83 MB / 479.6 MB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03069/0.3866, allocations: 25.62 MB / 0.4934 GB, free: 12.68 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005659/0.3923, allocations: 2.004 MB / 0.4953 GB, free: 10.64 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001632/0.3939, allocations: 1.141 MB / 0.4964 GB, free: 9.488 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007731/0.4016, allocations: 4.552 MB / 0.5009 GB, free: 4.906 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.271e-05/0.4017, allocations: 42.56 kB / 0.5009 GB, free: 4.855 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 2.685e-06/0.4017, allocations: 0 / 0.5009 GB, free: 4.855 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02555/0.4272, allocations: 9.697 MB / 0.5104 GB, free: 11.08 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000106/0.4273, allocations: 141 kB / 0.5105 GB, free: 10.91 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004215/0.4315, allocations: 2.703 MB / 0.5132 GB, free: 8.191 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000225/0.4318, allocations: 37.7 kB / 0.5132 GB, free: 8.148 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001716/0.4335, allocations: 2.132 MB / 0.5153 GB, free: 6 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004938/0.434, allocations: 456.6 kB / 0.5157 GB, free: 5.551 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00115/0.4351, allocations: 0.8378 MB / 0.5165 GB, free: 4.699 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.4353, allocations: 305.1 kB / 0.5168 GB, free: 4.398 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00233/0.4376, allocations: 1.445 MB / 0.5182 GB, free: 2.945 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004433/0.442, allocations: 4.077 MB / 0.5222 GB, free: 13.54 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00733/0.4494, allocations: 5.957 MB / 0.528 GB, free: 6.277 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.988e-05/0.4494, allocations: 28 kB / 0.5281 GB, free: 6.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01133/0.4608, allocations: 6.03 MB / 0.534 GB, free: 212 kB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.422e-05/0.4608, allocations: 50.81 kB / 0.534 GB, free: 164 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.241e-05/0.4609, allocations: 92 kB / 0.5341 GB, free: 72 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002552/0.4635, allocations: 0.817 MB / 0.5349 GB, free: 15.25 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003043/0.4665, allocations: 0.9474 MB / 0.5358 GB, free: 14.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006555/0.4731, allocations: 4.549 MB / 0.5403 GB, free: 9.637 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00285/0.4759, allocations: 243.7 kB / 0.5405 GB, free: 9.398 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003989/0.4763, allocations: 260.1 kB / 0.5407 GB, free: 9.145 MB / 462.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.00203/0.4784, allocations: 1.38 MB / 0.5421 GB, free: 7.754 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004005/0.4788, allocations: 238.3 kB / 0.5423 GB, free: 7.52 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004669/0.4834, allocations: 2.13 MB / 0.5444 GB, free: 5.379 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.169e-05/0.4834, allocations: 12 kB / 0.5444 GB, free: 5.367 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.265e-06/0.4835, allocations: 4 kB / 0.5444 GB, free: 5.363 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.4835, allocations: 3.984 kB / 0.5444 GB, free: 5.359 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009474/0.4929, allocations: 5.033 MB / 0.5493 GB, free: 260 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.4929, allocations: 0 / 0.5493 GB, free: 260 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008257/0.4938, allocations: 151.8 kB / 0.5495 GB, free: 108 kB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2037/0.6975, allocations: 0.6818 MB / 0.5501 GB, free: 114.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000221/0.6977, allocations: 18.67 kB / 0.5502 GB, free: 114.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005117/0.7028, allocations: 4.055 MB / 0.5541 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.7028, allocations: 7.531 kB / 0.5541 GB, free: 113.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005746/0.7086, allocations: 4.052 MB / 0.5581 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005425/0.7091, allocations: 222.6 kB / 0.5583 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002481/0.7094, allocations: 16.53 kB / 0.5583 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009573/0.7103, allocations: 65.2 kB / 0.5584 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001772/0.7105, allocations: 64.02 kB / 0.5584 GB, free: 111.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.118e-05/0.7106, allocations: 32.94 kB / 0.5585 GB, free: 111.7 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002126/0.7127, allocations: 1.691 MB / 0.5601 GB, free: 111.1 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.7127, allocations: 0 / 0.5601 GB, free: 111.1 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003121/0.7158, allocations: 0.6679 MB / 0.5608 GB, free: 111 MB / 462.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.0004466/0.7163, allocations: 200.5 kB / 0.561 GB, free: 110.9 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004319/0.7206, allocations: 3.358 MB / 0.5642 GB, free: 109.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.7206, allocations: 2 kB / 0.5642 GB, free: 109.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001091/0.7217, allocations: 0.9611 MB / 0.5652 GB, free: 109.4 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001537/0.7232, allocations: 258.4 kB / 0.5654 GB, free: 109.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007407/0.7306, allocations: 5.738 MB / 0.571 GB, free: 105.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001615/0.7323, allocations: 2.235 MB / 0.5732 GB, free: 103.3 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002545/0.7348, allocations: 1.319 MB / 0.5745 GB, free: 102.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000364/0.7352, allocations: 167.4 kB / 0.5747 GB, free: 102 MB / 462.1 MB Notification: Performance of SimCode: time 9.41e-07/0.7352, allocations: 0 / 0.5747 GB, free: 102 MB / 462.1 MB Notification: Performance of Templates: time 0.0388/0.774, allocations: 24.77 MB / 0.5989 GB, free: 77.39 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.943864403292537]