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.002029/0.002029, allocations: 115.8 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002682/0.002682, allocations: 199.5 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.42/1.42, allocations: 227.4 MB / 247.5 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 63.55 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1114/0.1126, 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.009386/0.122, allocations: 7.582 MB / 366.5 MB, free: 5.723 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006746/0.1288, allocations: 3.364 MB / 369.8 MB, free: 2.348 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00122/0.13, allocations: 39.94 kB / 369.9 MB, free: 2.309 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002126/0.1322, allocations: 1.024 MB / 370.9 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.21/0.3422, allocations: 1.309 MB / 372.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002004/0.3443, allocations: 0.5451 MB / 372.8 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005547/0.3499, allocations: 2.611 MB / 375.4 MB, free: 10 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002488/0.3524, allocations: 1.393 MB / 376.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002046/0.3544, allocations: 0.8236 MB / 377.6 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00268/0.3571, allocations: 1.152 MB / 378.7 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009023/0.3581, allocations: 147.4 kB / 378.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002905/0.361, allocations: 0.8925 MB / 379.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002615/0.3636, allocations: 1.038 MB / 380.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003792/0.3674, allocations: 1.232 MB / 382.1 MB, free: 8.852 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007039/0.3745, allocations: 4.085 MB / 386.1 MB, free: 7.527 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.3745, allocations: 0 / 386.1 MB, free: 7.527 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.3745, allocations: 0 / 386.1 MB, free: 7.527 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001807/0.3747, allocations: 5.188 kB / 386.1 MB, free: 7.523 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.009776/0.3845, allocations: 2.975 MB / 389.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.3846, allocations: 9.531 kB / 389.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005623/0.3902, allocations: 1.57 MB / 390.7 MB, free: 4.941 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003369/0.3936, allocations: 1.384 MB / 392.1 MB, free: 4.121 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.3937, allocations: 125 kB / 392.2 MB, free: 4.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003846/0.3941, allocations: 165.3 kB / 392.4 MB, free: 4.055 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008421/0.4025, allocations: 6.533 MB / 398.9 MB, free: 164 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.426e-05/0.4027, allocations: 36.19 kB / 398.9 MB, free: 156 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002215/0.4029, allocations: 81.33 kB / 399 MB, free: 128 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002324/0.4052, allocations: 1.47 MB / 400.5 MB, free: 14.91 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009831/0.4151, allocations: 5.823 MB / 406.3 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03062/0.4457, allocations: 25.65 MB / 432 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005722/0.4515, allocations: 2.547 MB / 434.5 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001651/0.4531, allocations: 1.219 MB / 435.7 MB, free: 10.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007955/0.4611, allocations: 4.82 MB / 440.5 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.138e-05/0.4612, allocations: 38.56 kB / 440.6 MB, free: 5.961 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 3.246e-06/0.4612, allocations: 0 / 440.6 MB, free: 5.961 MB / 350.1 MB Notification: Performance of matching and sorting (n=105): time 0.02323/0.4844, allocations: 9.784 MB / 450.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.306e-05/0.4845, allocations: 137 kB / 450.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003648/0.4882, allocations: 2.702 MB / 453.2 MB, free: 9.156 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001292/0.4883, allocations: 37.7 kB / 453.2 MB, free: 9.113 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001298/0.4896, allocations: 2.046 MB / 455.3 MB, free: 7.07 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003786/0.49, allocations: 433 kB / 455.7 MB, free: 6.652 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001088/0.4911, allocations: 0.8332 MB / 456.5 MB, free: 5.805 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.525e-05/0.4912, allocations: 301.1 kB / 456.8 MB, free: 5.508 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002045/0.4933, allocations: 1.445 MB / 458.3 MB, free: 4.055 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003818/0.4971, allocations: 4.076 MB / 462.4 MB, free: 14.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006568/0.5037, allocations: 5.955 MB / 468.3 MB, free: 7.406 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.401e-05/0.5037, allocations: 28 kB / 468.3 MB, free: 7.379 MB / 382.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01082/0.5146, allocations: 6.024 MB / 474.4 MB, free: 1.344 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.752e-05/0.5147, allocations: 46.97 kB / 474.4 MB, free: 1.301 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001048/0.5148, allocations: 92 kB / 474.5 MB, free: 1.211 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002352/0.5172, allocations: 0.8287 MB / 475.3 MB, free: 388 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003007/0.5202, allocations: 0.9513 MB / 476.3 MB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006009/0.5262, allocations: 4.652 MB / 480.9 MB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003141/0.5294, allocations: 243.6 kB / 481.2 MB, free: 10.41 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004078/0.5298, allocations: 260 kB / 481.4 MB, free: 10.15 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.002271/0.5321, allocations: 1.371 MB / 482.8 MB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003981/0.5325, allocations: 229.1 kB / 483 MB, free: 8.543 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004239/0.5367, allocations: 2.134 MB / 485.1 MB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.441e-05/0.5368, allocations: 19.92 kB / 485.2 MB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.257e-05/0.5368, allocations: 4 kB / 485.2 MB, free: 6.367 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.308e-05/0.5368, allocations: 3.984 kB / 485.2 MB, free: 6.363 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00939/0.5462, allocations: 5.063 MB / 490.2 MB, free: 1.238 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.841e-06/0.5462, allocations: 4 kB / 490.2 MB, free: 1.234 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007646/0.547, allocations: 159.7 kB / 490.4 MB, free: 1.078 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002058/0.5491, allocations: 0.6834 MB / 491.1 MB, free: 400 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.966e-05/0.5492, allocations: 16 kB / 491.1 MB, free: 384 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005147/0.5543, allocations: 4.151 MB / 495.2 MB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.727e-06/0.5544, allocations: 3.984 kB / 495.3 MB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006379/0.5607, allocations: 4.058 MB / 499.3 MB, free: 7.992 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007395/0.5615, allocations: 282 kB / 499.6 MB, free: 7.695 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002608/0.5618, allocations: 19.98 kB / 499.6 MB, free: 7.676 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009631/0.5627, allocations: 75.95 kB / 499.7 MB, free: 7.602 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001856/0.5629, allocations: 52.31 kB / 499.7 MB, free: 7.551 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.357e-05/0.563, allocations: 35.89 kB / 499.8 MB, free: 7.52 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002559/0.5656, allocations: 1.689 MB / 0.4897 GB, free: 5.82 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.5656, allocations: 288 / 0.4897 GB, free: 5.82 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003244/0.5689, allocations: 0.6601 MB / 0.4903 GB, free: 5.16 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.0004392/0.5693, allocations: 197.6 kB / 0.4905 GB, free: 4.961 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005103/0.5744, allocations: 3.493 MB / 0.4939 GB, free: 1.48 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.5745, allocations: 4 kB / 0.494 GB, free: 1.477 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001406/0.5759, allocations: 1.038 MB / 0.495 GB, free: 440 kB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001602/0.5775, allocations: 269.4 kB / 0.4952 GB, free: 180 kB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009176/0.5867, allocations: 5.587 MB / 0.5007 GB, free: 10.55 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002409/0.5891, allocations: 2.232 MB / 0.5029 GB, free: 8.285 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00285/0.592, allocations: 1.324 MB / 0.5042 GB, free: 6.957 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004069/0.5924, allocations: 163.4 kB / 0.5043 GB, free: 6.801 MB / 430.1 MB Notification: Performance of SimCode: time 7.12e-07/0.5924, allocations: 0 / 0.5043 GB, free: 6.801 MB / 430.1 MB Notification: Performance of Templates: time 0.03976/0.6322, allocations: 20.36 MB / 0.5242 GB, free: 2.617 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 cvode -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