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.001081/0.001081, allocations: 119.9 kB / 18.42 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001098, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.32/1.32, allocations: 227.4 MB / 247.5 MB, free: 10.36 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 59.69 kB / 308.4 MB, free: 15.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1031, allocations: 50.54 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009014/0.1121, allocations: 7.586 MB / 366.5 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006146/0.1183, allocations: 3.364 MB / 369.9 MB, free: 2.336 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007448/0.1191, allocations: 39.88 kB / 369.9 MB, free: 2.297 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001935/0.1211, allocations: 1.028 MB / 370.9 MB, free: 1.266 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1719/0.293, allocations: 1.304 MB / 372.2 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001479/0.2945, allocations: 0.5421 MB / 372.8 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003502/0.298, allocations: 2.613 MB / 375.4 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001453/0.2995, allocations: 1.388 MB / 376.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001001/0.3005, allocations: 0.8226 MB / 377.6 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001229/0.3017, allocations: 1.149 MB / 378.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002671/0.302, allocations: 147.5 kB / 378.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001444/0.3035, allocations: 0.8984 MB / 379.8 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008915/0.3044, allocations: 1.037 MB / 380.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009231/0.3053, allocations: 1.238 MB / 382.1 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003668/0.309, allocations: 4.075 MB / 386.1 MB, free: 7.531 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.309, allocations: 1.188 kB / 386.1 MB, free: 7.531 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.309, allocations: 0 / 386.1 MB, free: 7.531 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.927e-05/0.3091, allocations: 0 / 386.1 MB, free: 7.531 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.004375/0.3134, allocations: 2.988 MB / 389.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.3135, allocations: 9.031 kB / 389.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004676/0.3182, allocations: 1.567 MB / 390.7 MB, free: 4.926 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002624/0.3208, allocations: 1.387 MB / 392.1 MB, free: 4.102 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.391e-05/0.3209, allocations: 123.5 kB / 392.2 MB, free: 4.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003095/0.3212, allocations: 161.6 kB / 392.4 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00749/0.3287, allocations: 6.537 MB / 398.9 MB, free: 140 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.676e-05/0.3288, allocations: 29.25 kB / 398.9 MB, free: 136 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002193/0.329, allocations: 84.72 kB / 399 MB, free: 108 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002223/0.3312, allocations: 1.473 MB / 400.5 MB, free: 14.87 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008617/0.3399, allocations: 5.829 MB / 406.3 MB, free: 9.078 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02775/0.3676, allocations: 25.65 MB / 432 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005238/0.3729, allocations: 2.549 MB / 434.5 MB, free: 12.1 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001508/0.3744, allocations: 1.22 MB / 435.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007329/0.3818, allocations: 4.81 MB / 440.5 MB, free: 5.992 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.567e-05/0.3818, allocations: 46.56 kB / 440.6 MB, free: 5.938 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.166e-06/0.3818, allocations: 0 / 440.6 MB, free: 5.938 MB / 350.1 MB Notification: Performance of matching and sorting (n=105): time 0.02272/0.4046, allocations: 9.776 MB / 450.4 MB, free: 12.03 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.896e-05/0.4047, allocations: 141 kB / 450.5 MB, free: 11.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003447/0.4081, allocations: 2.706 MB / 453.2 MB, free: 9.133 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.638e-05/0.4082, allocations: 33.7 kB / 453.2 MB, free: 9.094 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001316/0.4095, allocations: 2.042 MB / 455.3 MB, free: 7.055 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003817/0.4099, allocations: 429.3 kB / 455.7 MB, free: 6.637 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001055/0.411, allocations: 0.8313 MB / 456.5 MB, free: 5.793 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.4111, allocations: 309.1 kB / 456.8 MB, free: 5.488 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002031/0.4132, allocations: 1.452 MB / 458.3 MB, free: 4.027 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003736/0.4169, allocations: 4.067 MB / 462.4 MB, free: 14.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006316/0.4232, allocations: 5.959 MB / 468.3 MB, free: 7.387 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.73e-05/0.4233, allocations: 28 kB / 468.3 MB, free: 7.359 MB / 382.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.009857/0.4331, allocations: 6.031 MB / 474.4 MB, free: 1.32 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.669e-05/0.4332, allocations: 44 kB / 474.4 MB, free: 1.277 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-05/0.4333, allocations: 92 kB / 474.5 MB, free: 1.188 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002278/0.4356, allocations: 0.8319 MB / 475.3 MB, free: 360 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002623/0.4382, allocations: 0.9474 MB / 476.3 MB, free: 15.4 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00561/0.4439, allocations: 4.654 MB / 480.9 MB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002568/0.4464, allocations: 239.6 kB / 481.2 MB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003121/0.4468, allocations: 260 kB / 481.4 MB, free: 10.13 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.001884/0.4487, allocations: 1.373 MB / 482.8 MB, free: 8.742 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003311/0.449, allocations: 221.1 kB / 483 MB, free: 8.523 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005841/0.4548, allocations: 2.138 MB / 485.2 MB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.135e-05/0.4549, allocations: 18.12 kB / 485.2 MB, free: 6.352 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.4549, allocations: 4 kB / 485.2 MB, free: 6.348 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.266e-05/0.4549, allocations: 7.984 kB / 485.2 MB, free: 6.34 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01446/0.4694, allocations: 5.067 MB / 490.3 MB, free: 1.211 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.17e-05/0.4695, allocations: 4 kB / 490.3 MB, free: 1.207 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00116/0.4706, allocations: 151.8 kB / 490.4 MB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003186/0.4738, allocations: 0.6794 MB / 491.1 MB, free: 384 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001494/0.474, allocations: 24.05 kB / 491.1 MB, free: 360 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00799/0.482, allocations: 4.157 MB / 495.3 MB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.482, allocations: 0 / 495.3 MB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0095/0.4915, allocations: 4.063 MB / 499.3 MB, free: 7.965 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009185/0.4925, allocations: 282.1 kB / 499.6 MB, free: 7.668 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000363/0.4928, allocations: 16 kB / 499.6 MB, free: 7.652 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001457/0.4943, allocations: 67.89 kB / 499.7 MB, free: 7.586 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002669/0.4946, allocations: 60.3 kB / 499.7 MB, free: 7.527 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001354/0.4947, allocations: 28 kB / 499.8 MB, free: 7.5 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.003599/0.4984, allocations: 1.693 MB / 0.4897 GB, free: 5.797 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4984, allocations: 288 / 0.4897 GB, free: 5.797 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005284/0.5037, allocations: 0.6673 MB / 0.4904 GB, free: 5.133 MB / 414.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.0005831/0.5043, allocations: 196.6 kB / 0.4906 GB, free: 4.938 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.007269/0.5115, allocations: 3.499 MB / 0.494 GB, free: 1.453 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.5116, allocations: 0 / 0.494 GB, free: 1.453 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002024/0.5136, allocations: 1.04 MB / 0.495 GB, free: 412 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002555/0.5162, allocations: 254.7 kB / 0.4952 GB, free: 160 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0105/0.5267, allocations: 5.595 MB / 0.5007 GB, free: 10.52 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002869/0.5296, allocations: 2.232 MB / 0.5029 GB, free: 8.258 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002856/0.5324, allocations: 1.324 MB / 0.5042 GB, free: 6.93 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005005/0.533, allocations: 159.4 kB / 0.5043 GB, free: 6.777 MB / 430.1 MB Notification: Performance of SimCode: time 9.22e-07/0.533, allocations: 0 / 0.5043 GB, free: 6.777 MB / 430.1 MB Notification: Performance of Templates: time 0.03991/0.5729, allocations: 20.36 MB / 0.5242 GB, free: 2.586 MB / 446.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 -s gbode -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