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.001566/0.001566, allocations: 107.4 kB / 16.92 MB, free: 5.781 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.001889/0.001889, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.409/1.409, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009756/0.0009756, allocations: 55.61 kB / 300.6 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09388/0.09487, allocations: 49.45 MB / 350.1 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009604/0.1045, allocations: 7.616 MB / 357.7 MB, free: 12.76 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006673/0.1112, allocations: 3.343 MB / 361 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001642/0.1129, allocations: 43.88 kB / 361.1 MB, free: 9.367 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002558/0.1155, allocations: 1.02 MB / 362.1 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003411/0.119, allocations: 1.335 MB / 363.4 MB, free: 7.004 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00126/0.1203, allocations: 0.5573 MB / 364 MB, free: 6.445 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003125/0.1234, allocations: 2.586 MB / 366.6 MB, free: 3.855 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001778/0.1252, allocations: 1.37 MB / 367.9 MB, free: 2.457 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001289/0.1265, allocations: 0.8368 MB / 368.8 MB, free: 1.617 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001579/0.1281, allocations: 1.152 MB / 369.9 MB, free: 472 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004245/0.1285, allocations: 148 kB / 370.1 MB, free: 324 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1544/0.283, allocations: 0.9059 MB / 371 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00121/0.2842, allocations: 1.049 MB / 372 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001162/0.2854, allocations: 1.25 MB / 373.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004357/0.2898, allocations: 3.952 MB / 377.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.2898, allocations: 2.344 kB / 377.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2898, allocations: 0 / 377.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.087e-05/0.2899, allocations: 0 / 377.2 MB, free: 10.93 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.006151/0.296, allocations: 2.995 MB / 380.2 MB, free: 9.602 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.799e-05/0.2961, allocations: 10.47 kB / 380.2 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00585/0.302, allocations: 1.571 MB / 381.8 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003391/0.3054, allocations: 1.389 MB / 383.2 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000132/0.3056, allocations: 130.2 kB / 383.3 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006933/0.3063, allocations: 166.2 kB / 383.5 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009959/0.3162, allocations: 6.532 MB / 390 MB, free: 6.238 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.383e-05/0.3163, allocations: 30.69 kB / 390 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002616/0.3166, allocations: 80.48 kB / 390.1 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002488/0.3191, allocations: 1.475 MB / 391.6 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008228/0.3274, allocations: 5.83 MB / 397.4 MB, free: 3.242 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02836/0.3557, allocations: 25.75 MB / 423.2 MB, free: 9.387 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005745/0.3615, allocations: 2.558 MB / 425.7 MB, free: 6.699 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001663/0.3632, allocations: 1.218 MB / 427 MB, free: 5.473 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008346/0.3716, allocations: 4.818 MB / 431.8 MB, free: 0.582 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.16e-05/0.3717, allocations: 50.22 kB / 431.8 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of pre-optimization done (n=97): time 3.927e-06/0.3717, allocations: 0 / 431.8 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of matching and sorting (n=105): time 0.02668/0.3984, allocations: 9.782 MB / 441.6 MB, free: 6.645 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.688e-05/0.3985, allocations: 141 kB / 441.7 MB, free: 6.477 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0054/0.4039, allocations: 2.71 MB / 444.4 MB, free: 3.746 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002904/0.4042, allocations: 44.23 kB / 444.5 MB, free: 3.699 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001621/0.4059, allocations: 2.039 MB / 446.5 MB, free: 1.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006595/0.4065, allocations: 431.7 kB / 447 MB, free: 1.246 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001727/0.4083, allocations: 0.8371 MB / 447.8 MB, free: 404 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.121e-05/0.4084, allocations: 301.1 kB / 448.1 MB, free: 100 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002456/0.4108, allocations: 1.449 MB / 449.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004223/0.4151, allocations: 4.069 MB / 453.6 MB, free: 9.289 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00654/0.4216, allocations: 5.963 MB / 459.6 MB, free: 2.398 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001011/0.4218, allocations: 28 kB / 459.6 MB, free: 2.371 MB / 366.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01132/0.4331, allocations: 6.034 MB / 465.6 MB, free: 12.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.46e-05/0.4332, allocations: 47.94 kB / 465.7 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001127/0.4333, allocations: 96 kB / 465.8 MB, free: 12.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002375/0.4357, allocations: 0.8204 MB / 466.6 MB, free: 11.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002983/0.4387, allocations: 0.9474 MB / 467.5 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00638/0.4451, allocations: 4.655 MB / 472.2 MB, free: 5.688 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004207/0.4493, allocations: 243.6 kB / 472.4 MB, free: 5.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001122/0.4505, allocations: 256 kB / 472.7 MB, free: 5.199 MB / 382.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.003677/0.4542, allocations: 1.38 MB / 474.1 MB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007205/0.4549, allocations: 225.1 kB / 474.3 MB, free: 3.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004917/0.4599, allocations: 2.127 MB / 476.4 MB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.165e-05/0.4599, allocations: 19.94 kB / 476.4 MB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.4599, allocations: 0 / 476.4 MB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.568e-05/0.4599, allocations: 7.984 kB / 476.4 MB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0107/0.4706, allocations: 5.075 MB / 481.5 MB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/0.4707, allocations: 0 / 481.5 MB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008147/0.4715, allocations: 155.8 kB / 481.7 MB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002173/0.4737, allocations: 0.6873 MB / 482.3 MB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001434/0.4739, allocations: 16 kB / 482.4 MB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005207/0.4791, allocations: 4.149 MB / 486.5 MB, free: 7.137 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.4791, allocations: 3.984 kB / 486.5 MB, free: 7.133 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006641/0.4857, allocations: 4.063 MB / 490.6 MB, free: 3.043 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007182/0.4865, allocations: 282.1 kB / 490.8 MB, free: 2.746 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005665/0.4871, allocations: 19.98 kB / 490.9 MB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00136/0.4884, allocations: 67.89 kB / 490.9 MB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/0.4887, allocations: 56.31 kB / 491 MB, free: 2.605 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.4888, allocations: 40.05 kB / 491 MB, free: 2.566 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004065/0.4929, allocations: 1.685 MB / 492.7 MB, free: 0.8711 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4929, allocations: 0 / 492.7 MB, free: 0.8711 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004173/0.4971, allocations: 0.6796 MB / 493.4 MB, free: 196 kB / 398.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.0006035/0.4977, allocations: 209.2 kB / 493.6 MB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005824/0.5035, allocations: 3.703 MB / 497.3 MB, free: 12.28 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.462e-06/0.5035, allocations: 0 / 497.3 MB, free: 12.28 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00142/0.505, allocations: 1.044 MB / 498.3 MB, free: 11.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001912/0.5069, allocations: 252.2 kB / 498.6 MB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01152/0.5184, allocations: 5.672 MB / 0.4924 GB, free: 5.273 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003342/0.5218, allocations: 2.233 MB / 0.4946 GB, free: 3.012 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.003227/0.525, allocations: 1.322 MB / 0.4959 GB, free: 1.684 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005504/0.5256, allocations: 163.4 kB / 0.4961 GB, free: 1.523 MB / 414.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5256, allocations: 0 / 0.4961 GB, free: 1.523 MB / 414.1 MB Notification: Performance of Templates: time 0.04402/0.5696, allocations: 23.93 MB / 0.5194 GB, free: 9.727 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