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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001794/0.001794, allocations: 205.3 kB / 18.11 MB, free: 3.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.273/1.273, allocations: 226.5 MB / 245.4 MB, free: 6.504 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007361/0.0007361, allocations: 101.6 kB / 297.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002325/0.0002324, allocations: 8 kB / 358.1 MB, free: 10.04 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2054, allocations: 51.29 MB / 409.4 MB, free: 27.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.109/0.3144, allocations: 94.49 MB / 0.4921 GB, free: 12.97 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002644/0.3147, allocations: 91.95 kB / 0.4921 GB, free: 12.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3166/0.6313, allocations: 58.85 MB / 0.5496 GB, free: 62.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.6313, allocations: 0 / 0.5496 GB, free: 62.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001193/0.6315, allocations: 48 kB / 0.5497 GB, free: 62.73 MB / 378.7 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.007996/0.6395, allocations: 2.707 MB / 0.5523 GB, free: 59.96 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.688e-05/0.6395, allocations: 8.031 kB / 0.5523 GB, free: 59.96 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007188/0.6467, allocations: 1.893 MB / 0.5542 GB, free: 58.06 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004066/0.6508, allocations: 2.106 MB / 0.5562 GB, free: 55.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001562/0.651, allocations: 185.1 kB / 0.5564 GB, free: 55.72 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001019/0.652, allocations: 244.3 kB / 0.5566 GB, free: 55.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01064/0.6627, allocations: 6.829 MB / 0.5633 GB, free: 47.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001199/0.6628, allocations: 47.77 kB / 0.5633 GB, free: 47.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000636/0.6635, allocations: 123.9 kB / 0.5635 GB, free: 47.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008359/0.6643, allocations: 0.7267 MB / 0.5642 GB, free: 47.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00891/0.6732, allocations: 5.942 MB / 0.57 GB, free: 41.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02401/0.6973, allocations: 31.22 MB / 0.6005 GB, free: 8.879 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004661/0.702, allocations: 2.611 MB / 0.603 GB, free: 6.113 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001282/0.7033, allocations: 1.199 MB / 0.6042 GB, free: 4.902 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006886/0.7102, allocations: 5.107 MB / 0.6092 GB, free: 15.64 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.7102, allocations: 46.5 kB / 0.6092 GB, free: 15.58 MB / 394.7 MB Notification: Performance of pre-optimization done (n=97): time 2.995e-06/0.7103, allocations: 0 / 0.6092 GB, free: 15.58 MB / 394.7 MB Notification: Performance of matching and sorting (n=105): time 0.02341/0.7337, allocations: 9.501 MB / 0.6185 GB, free: 5.941 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.419e-05/0.7338, allocations: 140.9 kB / 0.6186 GB, free: 5.773 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005215/0.739, allocations: 2.73 MB / 0.6213 GB, free: 3.023 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002164/0.7393, allocations: 41.98 kB / 0.6213 GB, free: 2.977 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001402/0.7407, allocations: 2.044 MB / 0.6233 GB, free: 0.9023 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005356/0.7412, allocations: 422.8 kB / 0.6237 GB, free: 496 kB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001883/0.7414, allocations: 79.94 kB / 0.6238 GB, free: 416 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000286/0.7417, allocations: 490.9 kB / 0.6243 GB, free: 15.92 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002299/0.744, allocations: 1.452 MB / 0.6257 GB, free: 14.46 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00387/0.7479, allocations: 4.059 MB / 0.6297 GB, free: 9.09 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006759/0.7547, allocations: 5.941 MB / 0.6355 GB, free: 1.848 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.261e-05/0.7548, allocations: 28 kB / 0.6355 GB, free: 1.82 MB / 410.7 MB Notification: Performance of matching and sorting (n=532) (initialization): time 0.01011/0.7649, allocations: 6.005 MB / 0.6414 GB, free: 11.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.181e-05/0.765, allocations: 52.23 kB / 0.6414 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.9e-05/0.7651, allocations: 96 kB / 0.6415 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002108/0.7672, allocations: 0.8045 MB / 0.6423 GB, free: 10.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002637/0.7698, allocations: 0.9435 MB / 0.6432 GB, free: 9.902 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00569/0.7755, allocations: 4.302 MB / 0.6474 GB, free: 5.469 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003548/0.7791, allocations: 275.6 kB / 0.6477 GB, free: 5.199 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005914/0.7797, allocations: 264 kB / 0.6479 GB, free: 4.941 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 423 * 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 (496): * Single equations (assignments): 492 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 11} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002262/0.782, allocations: 1.369 MB / 0.6493 GB, free: 3.566 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004248/0.7824, allocations: 225 kB / 0.6495 GB, free: 3.344 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004217/0.7867, allocations: 2.138 MB / 0.6516 GB, free: 1.188 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.668e-05/0.7867, allocations: 12 kB / 0.6516 GB, free: 1.176 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.448e-06/0.7867, allocations: 4 kB / 0.6516 GB, free: 1.172 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.124e-05/0.7867, allocations: 3.984 kB / 0.6516 GB, free: 1.168 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008892/0.7956, allocations: 5.072 MB / 0.6565 GB, free: 12.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.739e-06/0.7957, allocations: 3.984 kB / 0.6565 GB, free: 12.01 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006674/0.7964, allocations: 143.8 kB / 0.6567 GB, free: 11.87 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001946/0.7983, allocations: 0.6718 MB / 0.6573 GB, free: 11.2 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.473e-05/0.7984, allocations: 19.98 kB / 0.6573 GB, free: 11.18 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004655/0.8031, allocations: 3.863 MB / 0.6611 GB, free: 7.18 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.8031, allocations: 4 kB / 0.6611 GB, free: 7.176 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006017/0.8091, allocations: 4.055 MB / 0.6651 GB, free: 3.082 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006851/0.8098, allocations: 298 kB / 0.6654 GB, free: 2.77 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002145/0.8101, allocations: 12 kB / 0.6654 GB, free: 2.758 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009467/0.811, allocations: 87.81 kB / 0.6655 GB, free: 2.672 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001746/0.8112, allocations: 52.38 kB / 0.6655 GB, free: 2.621 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.075e-05/0.8113, allocations: 35.98 kB / 0.6655 GB, free: 2.586 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002672/0.814, allocations: 1.697 MB / 0.6672 GB, free: 0.8789 MB / 442.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.814, allocations: 0 / 0.6672 GB, free: 0.8789 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003214/0.8172, allocations: 0.6913 MB / 0.6679 GB, free: 192 kB / 442.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1993/1.017, allocations: 191.8 kB / 0.6681 GB, free: 125.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006616/1.023, allocations: 3.468 MB / 0.6714 GB, free: 125.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/1.023, allocations: 0 / 0.6714 GB, free: 125.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001469/1.025, allocations: 1.041 MB / 0.6725 GB, free: 125.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002185/1.027, allocations: 256 kB / 0.6727 GB, free: 125.4 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008792/1.036, allocations: 6.635 MB / 0.6792 GB, free: 122.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001757/1.038, allocations: 2.231 MB / 0.6814 GB, free: 122.1 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003145/1.041, allocations: 1.32 MB / 0.6827 GB, free: 122 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003736/1.041, allocations: 156.8 kB / 0.6828 GB, free: 122 MB / 442.7 MB Notification: Performance of SimCode: time 7.51e-07/1.041, allocations: 0 / 0.6828 GB, free: 122 MB / 442.7 MB Notification: Performance of Templates: time 0.03664/1.078, allocations: 22.41 MB / 0.7047 GB, free: 119.4 MB / 442.7 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","../files/Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches