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.002699/0.002699, allocations: 106.6 kB / 18.45 MB, free: 4.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002805/0.002805, allocations: 213.9 kB / 19.4 MB, free: 3.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.75/2.75, allocations: 227.4 MB / 247.6 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002138/0.002138, allocations: 59.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7425/0.7446, allocations: 50.54 MB / 409.9 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.03369/0.7784, allocations: 7.591 MB / 417.5 MB, free: 10.13 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02954/0.808, allocations: 3.356 MB / 420.9 MB, free: 6.762 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002468/0.8106, allocations: 35.94 kB / 420.9 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004475/0.8152, allocations: 1.024 MB / 421.9 MB, free: 5.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007/0.8222, allocations: 1.315 MB / 423.3 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002492/0.8247, allocations: 0.5379 MB / 423.8 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.006675/0.8315, allocations: 2.625 MB / 426.4 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003003/0.8346, allocations: 1.37 MB / 427.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0022/0.8368, allocations: 0.8367 MB / 428.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002786/0.8396, allocations: 1.137 MB / 429.8 MB, free: 13.83 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000687/0.8403, allocations: 144 kB / 429.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002894/0.8432, allocations: 0.9087 MB / 430.8 MB, free: 12.78 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001704/0.845, allocations: 1.048 MB / 431.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001791/0.8468, allocations: 1.234 MB / 433.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008644/0.8554, allocations: 4.08 MB / 437.2 MB, free: 6.391 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.291e-05/0.8556, allocations: 0 / 437.2 MB, free: 6.391 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.791e-06/0.8556, allocations: 0 / 437.2 MB, free: 6.391 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002055/0.8558, allocations: 0 / 437.2 MB, free: 6.391 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.01187/0.8677, allocations: 2.988 MB / 440.2 MB, free: 3.344 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.369e-05/0.8678, allocations: 12.03 kB / 440.2 MB, free: 3.332 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008768/0.8766, allocations: 1.565 MB / 441.7 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005566/0.8822, allocations: 1.382 MB / 443.1 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001901/0.8825, allocations: 123 kB / 443.2 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009632/0.8835, allocations: 159.8 kB / 443.4 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02212/0.9056, allocations: 6.538 MB / 449.9 MB, free: 9.035 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001262/0.9058, allocations: 27.72 kB / 450 MB, free: 9.008 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004156/0.9062, allocations: 83.89 kB / 450 MB, free: 8.926 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00402/0.9103, allocations: 1.476 MB / 451.5 MB, free: 7.449 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02907/0.9394, allocations: 5.834 MB / 457.4 MB, free: 1.613 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06341/1.003, allocations: 25.64 MB / 483 MB, free: 7.211 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009866/1.013, allocations: 2.551 MB / 485.5 MB, free: 4.512 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003364/1.016, allocations: 1.215 MB / 486.8 MB, free: 3.285 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01649/1.033, allocations: 4.819 MB / 491.6 MB, free: 14.36 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.135e-05/1.033, allocations: 42.56 kB / 491.6 MB, free: 14.31 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 7.785e-06/1.033, allocations: 0 / 491.6 MB, free: 14.31 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.04558/1.079, allocations: 9.784 MB / 0.4896 GB, free: 4.383 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001353/1.079, allocations: 137 kB / 0.4898 GB, free: 4.219 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007137/1.086, allocations: 2.706 MB / 0.4924 GB, free: 1.492 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004797/1.087, allocations: 37.7 kB / 0.4925 GB, free: 1.449 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0029/1.089, allocations: 2.045 MB / 0.4945 GB, free: 15.37 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00106/1.091, allocations: 426.7 kB / 0.4949 GB, free: 14.95 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001964/1.093, allocations: 0.8332 MB / 0.4957 GB, free: 14.1 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/1.093, allocations: 305.1 kB / 0.496 GB, free: 13.8 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004113/1.097, allocations: 1.449 MB / 0.4974 GB, free: 12.34 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008197/1.105, allocations: 4.073 MB / 0.5014 GB, free: 6.941 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01334/1.119, allocations: 5.958 MB / 0.5072 GB, free: 15.68 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001807/1.119, allocations: 28 kB / 0.5072 GB, free: 15.65 MB / 446.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.02616/1.145, allocations: 6.039 MB / 0.5131 GB, free: 9.602 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001829/1.145, allocations: 44 kB / 0.5131 GB, free: 9.559 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002348/1.146, allocations: 92.47 kB / 0.5132 GB, free: 9.469 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005028/1.151, allocations: 0.8283 MB / 0.514 GB, free: 8.637 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00665/1.157, allocations: 0.9435 MB / 0.515 GB, free: 7.691 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01226/1.17, allocations: 4.659 MB / 0.5195 GB, free: 2.895 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007143/1.177, allocations: 239.6 kB / 0.5197 GB, free: 2.66 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001604/1.179, allocations: 264 kB / 0.52 GB, free: 2.402 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.005536/1.184, allocations: 1.376 MB / 0.5213 GB, free: 1.012 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001086/1.185, allocations: 225 kB / 0.5216 GB, free: 0.7891 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008447/1.194, allocations: 2.134 MB / 0.5236 GB, free: 14.64 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.524e-05/1.194, allocations: 16 kB / 0.5236 GB, free: 14.62 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.139e-05/1.194, allocations: 4 kB / 0.5237 GB, free: 14.62 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.554e-05/1.194, allocations: 3.984 kB / 0.5237 GB, free: 14.62 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01905/1.213, allocations: 5.065 MB / 0.5286 GB, free: 9.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.776e-05/1.213, allocations: 4 kB / 0.5286 GB, free: 9.477 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001593/1.215, allocations: 151.8 kB / 0.5288 GB, free: 9.328 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00433/1.219, allocations: 0.6873 MB / 0.5294 GB, free: 8.637 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003558/1.22, allocations: 16 kB / 0.5294 GB, free: 8.621 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0106/1.23, allocations: 4.16 MB / 0.5335 GB, free: 4.32 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/1.23, allocations: 4.031 kB / 0.5335 GB, free: 4.316 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01284/1.243, allocations: 4.047 MB / 0.5375 GB, free: 240 kB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.6055/1.849, allocations: 284.7 kB / 0.5377 GB, free: 124.9 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001161/1.85, allocations: 14.59 kB / 0.5377 GB, free: 124.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002117/1.852, allocations: 74.02 kB / 0.5378 GB, free: 124.9 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004561/1.853, allocations: 53.78 kB / 0.5379 GB, free: 124.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002148/1.853, allocations: 33.67 kB / 0.5379 GB, free: 124.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.007387/1.86, allocations: 1.687 MB / 0.5395 GB, free: 124.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.613e-06/1.86, allocations: 0 / 0.5395 GB, free: 124.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.008368/1.869, allocations: 0.664 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.001015/1.87, allocations: 199.3 kB / 0.5404 GB, free: 124.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009205/1.879, allocations: 3.49 MB / 0.5438 GB, free: 123.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.177e-05/1.879, allocations: 0 / 0.5438 GB, free: 123.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00216/1.881, 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.006512/1.888, allocations: 258.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.0152/1.903, allocations: 5.882 MB / 0.5508 GB, free: 120.6 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003162/1.906, allocations: 2.233 MB / 0.553 GB, free: 119.2 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001024/1.907, allocations: 195 kB / 0.5532 GB, free: 119.1 MB / 462.1 MB Notification: Performance of SimCode: time 3.286e-06/1.907, allocations: 0 / 0.5532 GB, free: 119.1 MB / 462.1 MB Notification: Performance of Templates: time 0.1254/2.033, allocations: 48.99 MB / 0.601 GB, free: 71.52 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