Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_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_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001353/0.001353, allocations: 195.7 kB / 18.07 MB, free: 3.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 226.5 MB / 245.4 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007979/0.0007978, allocations: 106 kB / 297.4 MB, free: 6.691 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002324/0.0002324, allocations: 8 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2621/0.2624, allocations: 51.3 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1072/0.3696, allocations: 94.49 MB / 0.4914 GB, free: 13.1 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/0.3699, allocations: 91.95 kB / 0.4914 GB, free: 13.01 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3197/0.6896, allocations: 58.85 MB / 0.5489 GB, free: 62.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.6896, allocations: 0 / 0.5489 GB, free: 62.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001207/0.6898, allocations: 47.94 kB / 0.549 GB, free: 62.83 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.007034/0.6968, allocations: 2.708 MB / 0.5516 GB, free: 60.05 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.643e-05/0.6968, allocations: 12.03 kB / 0.5516 GB, free: 60.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007316/0.7042, allocations: 1.896 MB / 0.5535 GB, free: 58.14 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004339/0.7085, allocations: 2.102 MB / 0.5555 GB, free: 55.99 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001546/0.7087, allocations: 189.1 kB / 0.5557 GB, free: 55.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001272/0.71, allocations: 244.3 kB / 0.5559 GB, free: 55.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01475/0.7248, allocations: 6.833 MB / 0.5626 GB, free: 48.03 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001685/0.725, allocations: 43.78 kB / 0.5626 GB, free: 47.99 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001132/0.7261, allocations: 123.9 kB / 0.5628 GB, free: 47.87 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001029/0.7272, allocations: 0.7228 MB / 0.5635 GB, free: 47.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01005/0.7372, allocations: 5.954 MB / 0.5693 GB, free: 41.19 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03223/0.7695, allocations: 31.2 MB / 0.5998 GB, free: 8.969 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00538/0.7749, allocations: 2.615 MB / 0.6023 GB, free: 6.199 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001524/0.7765, allocations: 1.211 MB / 0.6035 GB, free: 4.977 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008169/0.7847, allocations: 5.099 MB / 0.6085 GB, free: 15.72 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.709e-05/0.7848, allocations: 58.48 kB / 0.6085 GB, free: 15.65 MB / 394.7 MB Notification: Performance of pre-optimization done (n=97): time 4.669e-06/0.7848, allocations: 0 / 0.6085 GB, free: 15.65 MB / 394.7 MB Notification: Performance of matching and sorting (n=105): time 0.02538/0.8102, allocations: 9.491 MB / 0.6178 GB, free: 6.02 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.587e-05/0.8103, allocations: 141 kB / 0.6179 GB, free: 5.852 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005884/0.8162, allocations: 2.722 MB / 0.6206 GB, free: 3.109 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002627/0.8165, allocations: 37.7 kB / 0.6206 GB, free: 3.066 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001987/0.8185, allocations: 2.044 MB / 0.6226 GB, free: 0.9922 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007435/0.8193, allocations: 430.7 kB / 0.623 GB, free: 0.5664 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004138/0.8197, allocations: 87.98 kB / 0.6231 GB, free: 492 kB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0004519/0.8202, allocations: 487.1 kB / 0.6236 GB, free: 15.99 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00289/0.8231, allocations: 1.448 MB / 0.625 GB, free: 14.54 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00542/0.8285, allocations: 4.059 MB / 0.629 GB, free: 9.168 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009144/0.8377, allocations: 5.943 MB / 0.6348 GB, free: 1.926 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000134/0.8379, allocations: 31.94 kB / 0.6348 GB, free: 1.895 MB / 410.7 MB Notification: Performance of matching and sorting (n=532) (initialization): time 0.01426/0.8522, allocations: 6.005 MB / 0.6407 GB, free: 11.88 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.8523, allocations: 44 kB / 0.6407 GB, free: 11.84 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001648/0.8525, allocations: 92 kB / 0.6408 GB, free: 11.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002632/0.8552, allocations: 0.8133 MB / 0.6416 GB, free: 10.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003654/0.8588, allocations: 0.9396 MB / 0.6425 GB, free: 9.988 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006385/0.8652, allocations: 4.297 MB / 0.6467 GB, free: 5.559 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003683/0.869, allocations: 275.5 kB / 0.647 GB, free: 5.289 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009774/0.87, allocations: 260 kB / 0.6472 GB, free: 5.035 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.003417/0.8734, allocations: 1.377 MB / 0.6486 GB, free: 3.648 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005821/0.874, allocations: 232.9 kB / 0.6488 GB, free: 3.418 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00494/0.8789, allocations: 2.13 MB / 0.6509 GB, free: 1.27 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.588e-05/0.879, allocations: 12 kB / 0.6509 GB, free: 1.258 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.489e-05/0.879, allocations: 8 kB / 0.6509 GB, free: 1.25 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.515e-05/0.8791, allocations: 3.984 kB / 0.6509 GB, free: 1.246 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01247/0.8915, allocations: 5.076 MB / 0.6558 GB, free: 12.09 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.932e-05/0.8916, allocations: 4.062 kB / 0.6558 GB, free: 12.09 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008097/0.8924, allocations: 147.8 kB / 0.656 GB, free: 11.94 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002145/0.8946, allocations: 0.6755 MB / 0.6566 GB, free: 11.26 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001772/0.8948, allocations: 16 kB / 0.6567 GB, free: 11.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00523/0.9, allocations: 3.855 MB / 0.6604 GB, free: 7.258 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.9001, allocations: 4 kB / 0.6604 GB, free: 7.254 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006903/0.907, allocations: 4.046 MB / 0.6644 GB, free: 3.172 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008294/0.9078, allocations: 298 kB / 0.6647 GB, free: 2.859 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005332/0.9084, allocations: 12 kB / 0.6647 GB, free: 2.848 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001304/0.9097, allocations: 83.88 kB / 0.6648 GB, free: 2.766 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/0.9099, allocations: 68.22 kB / 0.6648 GB, free: 2.699 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.746e-05/0.9101, allocations: 28 kB / 0.6648 GB, free: 2.672 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.00376/0.9138, allocations: 1.709 MB / 0.6665 GB, free: 0.9531 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.9138, allocations: 0 / 0.6665 GB, free: 0.9531 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00427/0.9181, allocations: 0.6873 MB / 0.6672 GB, free: 272 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.0006507/0.9188, allocations: 183 kB / 0.6674 GB, free: 80 kB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.2009/1.12, allocations: 3.473 MB / 0.6707 GB, free: 125.5 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.65e-06/1.12, allocations: 1.281 kB / 0.6708 GB, free: 125.5 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001329/1.121, allocations: 1.041 MB / 0.6718 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.002079/1.123, allocations: 248.5 kB / 0.672 GB, free: 125.3 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01075/1.134, allocations: 6.937 MB / 0.6788 GB, free: 122.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001942/1.136, allocations: 2.243 MB / 0.681 GB, free: 122 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007134/1.137, allocations: 193.5 kB / 0.6812 GB, free: 122 MB / 442.7 MB Notification: Performance of SimCode: time 1.022e-06/1.137, allocations: 2.469 kB / 0.6812 GB, free: 122 MB / 442.7 MB Notification: Performance of Templates: time 0.06082/1.197, allocations: 47.85 MB / 0.7279 GB, free: 95.65 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches