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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001384/0.001384, allocations: 114.4 kB / 18.46 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001412/0.001412, allocations: 202 kB / 19.4 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 67.88 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2421, allocations: 50.54 MB / 409.9 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.008266/0.2504, allocations: 7.588 MB / 417.5 MB, free: 9.996 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006333/0.2567, allocations: 3.352 MB / 420.9 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001054/0.2578, allocations: 39.88 kB / 420.9 MB, free: 6.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002269/0.2602, allocations: 1.024 MB / 421.9 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003163/0.2634, allocations: 1.315 MB / 423.3 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001308/0.2647, allocations: 0.5417 MB / 423.8 MB, free: 3.703 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003444/0.2681, allocations: 2.621 MB / 426.4 MB, free: 1.078 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001937/0.2701, allocations: 1.385 MB / 427.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001479/0.2716, allocations: 0.8212 MB / 428.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001713/0.2733, allocations: 1.148 MB / 429.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005234/0.2739, allocations: 144 kB / 429.9 MB, free: 13.54 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001888/0.2758, allocations: 0.9009 MB / 430.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001116/0.2769, allocations: 1.044 MB / 431.9 MB, free: 11.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001733/0.2786, allocations: 1.242 MB / 433.1 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004449/0.2831, allocations: 4.076 MB / 437.2 MB, free: 6.258 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2831, allocations: 0 / 437.2 MB, free: 6.258 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2831, allocations: 0 / 437.2 MB, free: 6.258 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001117/0.2833, allocations: 0 / 437.2 MB, free: 6.258 MB / 350.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.005977/0.2892, allocations: 2.984 MB / 440.2 MB, free: 3.215 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.2893, allocations: 12.03 kB / 440.2 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005455/0.2948, allocations: 1.565 MB / 441.7 MB, free: 1.633 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002487/0.2973, allocations: 1.382 MB / 443.1 MB, free: 208 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001234/0.2974, allocations: 123 kB / 443.2 MB, free: 84 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005522/0.298, allocations: 163.8 kB / 443.4 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01093/0.3089, allocations: 6.538 MB / 449.9 MB, free: 8.902 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001025/0.3091, allocations: 31.66 kB / 450 MB, free: 8.871 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005259/0.3096, allocations: 79.89 kB / 450.1 MB, free: 8.793 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002651/0.3123, allocations: 1.472 MB / 451.5 MB, free: 7.32 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01089/0.3232, allocations: 5.838 MB / 457.4 MB, free: 1.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03024/0.3535, allocations: 25.65 MB / 483 MB, free: 7.066 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005809/0.3593, allocations: 2.541 MB / 485.5 MB, free: 4.375 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001794/0.3612, allocations: 1.215 MB / 486.8 MB, free: 3.148 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008462/0.3696, allocations: 4.811 MB / 491.6 MB, free: 14.23 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.931e-05/0.3697, allocations: 46.56 kB / 491.6 MB, free: 14.18 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 4.238e-06/0.3697, allocations: 7.938 kB / 491.6 MB, free: 14.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02503/0.3948, allocations: 9.768 MB / 0.4896 GB, free: 4.258 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.498e-05/0.3949, allocations: 141 kB / 0.4898 GB, free: 4.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003844/0.3987, allocations: 2.71 MB / 0.4924 GB, free: 1.359 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000147/0.3989, allocations: 33.7 kB / 0.4925 GB, free: 1.32 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001359/0.4003, allocations: 2.048 MB / 0.4945 GB, free: 15.24 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004452/0.4007, allocations: 426.8 kB / 0.4949 GB, free: 14.82 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00118/0.4019, allocations: 0.8332 MB / 0.4957 GB, free: 13.97 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.877e-05/0.402, allocations: 305.1 kB / 0.496 GB, free: 13.67 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002172/0.4042, allocations: 1.452 MB / 0.4974 GB, free: 12.21 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003922/0.4081, allocations: 4.069 MB / 0.5014 GB, free: 6.812 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00699/0.4151, allocations: 5.956 MB / 0.5072 GB, free: 15.55 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.203e-05/0.4153, allocations: 28 kB / 0.5072 GB, free: 15.52 MB / 446.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01236/0.4277, allocations: 6.035 MB / 0.5131 GB, free: 9.48 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001145/0.4278, allocations: 47.94 kB / 0.5131 GB, free: 9.434 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001698/0.428, allocations: 92 kB / 0.5132 GB, free: 9.344 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002536/0.4305, allocations: 0.8246 MB / 0.514 GB, free: 8.516 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003252/0.4338, allocations: 0.9474 MB / 0.515 GB, free: 7.566 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006324/0.4402, allocations: 4.652 MB / 0.5195 GB, free: 2.773 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003285/0.4435, allocations: 239.6 kB / 0.5197 GB, free: 2.539 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007411/0.4443, allocations: 260 kB / 0.52 GB, free: 2.285 MB / 446.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.002704/0.447, allocations: 1.384 MB / 0.5213 GB, free: 0.8867 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005702/0.4476, allocations: 225 kB / 0.5215 GB, free: 0.6641 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004768/0.4523, allocations: 2.13 MB / 0.5236 GB, free: 14.52 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.531e-05/0.4524, allocations: 15.91 kB / 0.5236 GB, free: 14.51 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-05/0.4524, allocations: 4 kB / 0.5236 GB, free: 14.51 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.4524, allocations: 7.984 kB / 0.5237 GB, free: 14.5 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0106/0.463, allocations: 5.069 MB / 0.5286 GB, free: 9.352 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.712e-05/0.4631, allocations: 4 kB / 0.5286 GB, free: 9.348 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008872/0.464, allocations: 159.8 kB / 0.5288 GB, free: 9.191 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002198/0.4662, allocations: 0.6717 MB / 0.5294 GB, free: 8.516 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001365/0.4664, allocations: 24.06 kB / 0.5294 GB, free: 8.492 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005536/0.4719, allocations: 4.152 MB / 0.5335 GB, free: 4.199 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.472, allocations: 0 / 0.5335 GB, free: 4.199 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006929/0.4789, allocations: 4.055 MB / 0.5375 GB, free: 112 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2309/0.7099, allocations: 281.8 kB / 0.5377 GB, free: 125 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005045/0.7104, allocations: 13.75 kB / 0.5377 GB, free: 125 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001139/0.7115, allocations: 74.98 kB / 0.5378 GB, free: 125 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002221/0.7118, allocations: 54.3 kB / 0.5379 GB, free: 125 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.7119, allocations: 28.69 kB / 0.5379 GB, free: 125 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00332/0.7152, allocations: 1.692 MB / 0.5395 GB, free: 124.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.7152, allocations: 0 / 0.5395 GB, free: 124.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003601/0.7188, allocations: 0.6653 MB / 0.5402 GB, free: 124.8 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.0004493/0.7193, allocations: 210.9 kB / 0.5404 GB, free: 124.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004504/0.7238, allocations: 3.485 MB / 0.5438 GB, free: 123.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.641e-06/0.7239, allocations: 7.297 kB / 0.5438 GB, free: 123.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001085/0.7249, allocations: 1.044 MB / 0.5448 GB, free: 123.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001591/0.7265, allocations: 253.1 kB / 0.5451 GB, free: 123.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007657/0.7342, allocations: 5.88 MB / 0.5508 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001652/0.7359, allocations: 2.229 MB / 0.553 GB, free: 119.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006383/0.7366, allocations: 192 kB / 0.5532 GB, free: 119 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.7366, allocations: 4 kB / 0.5532 GB, free: 119 MB / 462.1 MB Notification: Performance of Templates: time 0.04797/0.7846, allocations: 48.62 MB / 0.6006 GB, free: 71.79 MB / 462.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches