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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 111.9 kB / 16.62 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 189.8 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001011, allocations: 43.05 kB / 300.1 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08911/0.09014, allocations: 49.44 MB / 349.6 MB, free: 4.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01743/0.1076, allocations: 18.09 MB / 367.7 MB, free: 2.582 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1736/0.2812, allocations: 5.014 MB / 372.7 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003228/0.2845, allocations: 73.12 kB / 372.8 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002474/0.287, allocations: 0.9708 MB / 373.7 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003688/0.2907, allocations: 1.262 MB / 375 MB, free: 9.426 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001405/0.2922, allocations: 0.509 MB / 375.5 MB, free: 9.406 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003749/0.2959, allocations: 2.608 MB / 378.1 MB, free: 9.391 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00214/0.2981, allocations: 1.461 MB / 379.6 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001491/0.2996, allocations: 0.8474 MB / 380.4 MB, free: 8.711 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001484/0.3011, allocations: 1.292 MB / 381.7 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002916/0.3014, allocations: 147.2 kB / 381.8 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001791/0.3032, allocations: 0.917 MB / 382.8 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009107/0.3041, allocations: 1.071 MB / 383.8 MB, free: 7.805 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009866/0.3051, allocations: 1.27 MB / 385.1 MB, free: 6.914 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004607/0.3097, allocations: 3.991 MB / 389.1 MB, free: 4.594 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.872e-06/0.3098, allocations: 2.938 kB / 389.1 MB, free: 4.594 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3098, allocations: 0 / 389.1 MB, free: 4.594 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.606e-05/0.3099, allocations: 0 / 389.1 MB, free: 4.594 MB / 302.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.005642/0.3155, allocations: 2.992 MB / 392.1 MB, free: 2.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.3156, allocations: 13.62 kB / 392.1 MB, free: 2.516 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004962/0.3205, allocations: 1.568 MB / 393.7 MB, free: 1.691 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002286/0.3228, allocations: 1.388 MB / 395.1 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.607e-05/0.323, allocations: 125.7 kB / 395.2 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003003/0.3233, allocations: 167 kB / 395.3 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009192/0.3325, allocations: 6.533 MB / 401.9 MB, free: 11.29 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.946e-05/0.3326, allocations: 39.62 kB / 401.9 MB, free: 11.25 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002275/0.3328, allocations: 83.5 kB / 402 MB, free: 11.19 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002439/0.3352, allocations: 1.465 MB / 403.5 MB, free: 9.734 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009936/0.3452, allocations: 5.836 MB / 409.3 MB, free: 3.898 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02925/0.3745, allocations: 25.77 MB / 435.1 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005637/0.3802, allocations: 2.537 MB / 437.6 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001519/0.3817, allocations: 1.219 MB / 438.8 MB, free: 5.586 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007281/0.389, allocations: 4.814 MB / 443.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/0.3891, allocations: 50.5 kB / 443.7 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.387e-06/0.3891, allocations: 4 kB / 443.7 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of matching and sorting (n=105): time 0.02374/0.4128, allocations: 9.765 MB / 453.5 MB, free: 6.738 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.401e-05/0.4129, allocations: 144.9 kB / 453.6 MB, free: 6.566 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003414/0.4163, allocations: 2.71 MB / 456.3 MB, free: 3.836 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001098/0.4164, allocations: 41.7 kB / 456.3 MB, free: 3.789 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001221/0.4177, allocations: 2.05 MB / 458.4 MB, free: 1.742 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003564/0.418, allocations: 424.8 kB / 458.8 MB, free: 1.332 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001007/0.4191, allocations: 0.8332 MB / 459.6 MB, free: 496 kB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.548e-05/0.4192, allocations: 305.1 kB / 459.9 MB, free: 188 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002005/0.4212, allocations: 1.449 MB / 461.4 MB, free: 14.73 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003796/0.425, allocations: 4.069 MB / 465.5 MB, free: 9.328 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006045/0.431, allocations: 5.958 MB / 471.4 MB, free: 2.062 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.605e-05/0.4311, allocations: 28 kB / 471.4 MB, free: 2.035 MB / 382.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.009608/0.4407, allocations: 6.022 MB / 477.5 MB, free: 12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.645e-05/0.4408, allocations: 44.22 kB / 477.5 MB, free: 11.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.347e-05/0.4408, allocations: 99.94 kB / 477.6 MB, free: 11.86 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002264/0.4431, allocations: 0.8239 MB / 478.4 MB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002528/0.4457, allocations: 0.9552 MB / 479.4 MB, free: 10.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005701/0.4514, allocations: 4.662 MB / 484.1 MB, free: 5.281 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002606/0.454, allocations: 243.6 kB / 484.3 MB, free: 5.043 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003023/0.4543, allocations: 260 kB / 484.5 MB, free: 4.789 MB / 398.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.001964/0.4563, allocations: 1.374 MB / 485.9 MB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003536/0.4566, allocations: 229 kB / 486.1 MB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004104/0.4608, allocations: 2.132 MB / 488.3 MB, free: 1.027 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.256e-05/0.4608, allocations: 15.94 kB / 488.3 MB, free: 1.012 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.4608, allocations: 4 kB / 488.3 MB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.4608, allocations: 3.984 kB / 488.3 MB, free: 1.004 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008797/0.4696, allocations: 5.09 MB / 493.4 MB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.887e-06/0.4697, allocations: 4 kB / 493.4 MB, free: 11.86 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007731/0.4704, allocations: 159.8 kB / 493.5 MB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002136/0.4726, allocations: 0.6756 MB / 494.2 MB, free: 11.02 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.474e-05/0.4727, allocations: 20 kB / 494.2 MB, free: 11 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005076/0.4778, allocations: 4.144 MB / 498.4 MB, free: 6.711 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/0.4778, allocations: 4 kB / 498.4 MB, free: 6.707 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006113/0.4839, allocations: 4.057 MB / 0.4907 GB, free: 2.621 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005834/0.4845, allocations: 286.1 kB / 0.4909 GB, free: 2.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000258/0.4848, allocations: 19.98 kB / 0.491 GB, free: 2.301 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000926/0.4857, allocations: 72.17 kB / 0.491 GB, free: 2.23 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/0.4859, allocations: 56.3 kB / 0.4911 GB, free: 2.176 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.051e-05/0.486, allocations: 34.19 kB / 0.4911 GB, free: 2.145 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002439/0.4884, allocations: 1.697 MB / 0.4928 GB, free: 448 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4885, allocations: 0 / 0.4928 GB, free: 448 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.003014/0.4915, allocations: 0.6758 MB / 0.4934 GB, free: 15.76 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.0004215/0.4919, allocations: 203.5 kB / 0.4936 GB, free: 15.55 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005057/0.497, allocations: 3.704 MB / 0.4972 GB, free: 11.86 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.497, allocations: 0 / 0.4972 GB, free: 11.86 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001368/0.4984, allocations: 1.039 MB / 0.4983 GB, free: 10.8 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001438/0.4998, allocations: 267 kB / 0.4985 GB, free: 10.55 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008222/0.508, allocations: 6.849 MB / 0.5052 GB, free: 3.66 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001957/0.51, allocations: 2.24 MB / 0.5074 GB, free: 1.391 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002759/0.5128, allocations: 1.321 MB / 0.5087 GB, free: 68 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004003/0.5132, allocations: 159.5 kB / 0.5088 GB, free: 15.91 MB / 446.1 MB Notification: Performance of SimCode: time 6.51e-07/0.5132, allocations: 0 / 0.5088 GB, free: 15.91 MB / 446.1 MB Notification: Performance of Templates: time 0.2027/0.7159, allocations: 23.9 MB / 0.5322 GB, free: 149.9 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (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) 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) Reference file matches