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.001401/0.001401, allocations: 196.3 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.306/1.306, allocations: 226.6 MB / 244.7 MB, free: 6.43 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008248/0.0008246, allocations: 96.22 kB / 296.8 MB, free: 6.668 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002117/0.0002117, allocations: 7.984 kB / 356.8 MB, free: 10.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2389/0.2392, allocations: 51.3 MB / 408.1 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01771/0.2569, allocations: 16.29 MB / 424.3 MB, free: 11.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01119/0.2682, allocations: 4.754 MB / 429.1 MB, free: 6.594 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002599/0.2708, allocations: 71.81 kB / 429.2 MB, free: 6.523 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00205/0.2729, allocations: 0.7932 MB / 430 MB, free: 5.727 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007419/0.2804, allocations: 2.654 MB / 432.6 MB, free: 3.066 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00178/0.2822, allocations: 0.4991 MB / 433.1 MB, free: 2.566 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.004473/0.2866, allocations: 2.894 MB / 436 MB, free: 15.66 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003494/0.2902, allocations: 1.666 MB / 437.7 MB, free: 13.95 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001608/0.2918, allocations: 0.7589 MB / 438.4 MB, free: 13.19 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002163/0.294, allocations: 1.16 MB / 439.6 MB, free: 12.03 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003559/0.2944, allocations: 84 kB / 439.7 MB, free: 11.95 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002311/0.2967, allocations: 0.8696 MB / 440.5 MB, free: 11.07 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001286/0.298, allocations: 0.9817 MB / 441.5 MB, free: 10.09 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001532/0.2995, allocations: 1.135 MB / 442.7 MB, free: 8.941 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004449/0.304, allocations: 3.072 MB / 445.7 MB, free: 5.863 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.304, allocations: 0 / 445.7 MB, free: 5.863 MB / 314.7 MB Notification: Performance of FrontEnd: time 4.318e-06/0.304, allocations: 0 / 445.7 MB, free: 5.863 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.893e-05/0.3041, allocations: 3.938 kB / 445.7 MB, free: 5.859 MB / 314.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.006732/0.3109, allocations: 2.512 MB / 448.2 MB, free: 3.289 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.302e-05/0.3109, allocations: 8.031 kB / 448.3 MB, free: 3.281 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009046/0.32, allocations: 1.612 MB / 449.9 MB, free: 1.664 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004152/0.3242, allocations: 1.363 MB / 451.2 MB, free: 264 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001584/0.3244, allocations: 131 kB / 451.4 MB, free: 132 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005858/0.325, allocations: 163.8 kB / 451.5 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01468/0.3397, allocations: 6.53 MB / 458 MB, free: 8.949 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.26e-05/0.3398, allocations: 35.73 kB / 458.1 MB, free: 8.914 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000368/0.3402, allocations: 83.89 kB / 458.2 MB, free: 8.832 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003793/0.344, allocations: 1.468 MB / 459.6 MB, free: 7.363 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01566/0.3597, allocations: 5.807 MB / 465.4 MB, free: 1.555 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03115/0.3909, allocations: 25.76 MB / 491.2 MB, free: 7.031 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005356/0.3963, allocations: 2.58 MB / 493.8 MB, free: 4.301 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00157/0.3979, allocations: 1.215 MB / 495 MB, free: 3.07 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007264/0.4052, allocations: 4.791 MB / 499.8 MB, free: 14.18 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/0.4052, allocations: 46.48 kB / 499.8 MB, free: 14.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=97): time 3.987e-06/0.4053, allocations: 3.938 kB / 499.8 MB, free: 14.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=105): time 0.02271/0.428, allocations: 9.745 MB / 0.4976 GB, free: 4.23 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.166e-05/0.4281, allocations: 144.9 kB / 0.4978 GB, free: 4.059 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003345/0.4314, allocations: 2.694 MB / 0.5004 GB, free: 1.344 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001854/0.4316, allocations: 37.7 kB / 0.5004 GB, free: 1.301 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1635/0.5951, allocations: 2.042 MB / 0.5024 GB, free: 93.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006678/0.5958, allocations: 431.5 kB / 0.5029 GB, free: 93.64 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005155/0.5964, allocations: 83.09 kB / 0.5029 GB, free: 93.64 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004155/0.5968, allocations: 486 kB / 0.5034 GB, free: 93.32 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002794/0.5996, allocations: 1.433 MB / 0.5048 GB, free: 93.11 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003028/0.6026, allocations: 4.058 MB / 0.5088 GB, free: 89.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005425/0.6081, allocations: 5.945 MB / 0.5146 GB, free: 84.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.83e-05/0.6082, allocations: 27.69 kB / 0.5146 GB, free: 84.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.009347/0.6175, allocations: 5.993 MB / 0.5204 GB, free: 81.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.432e-05/0.6177, allocations: 46.34 kB / 0.5205 GB, free: 81.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001134/0.6178, allocations: 97.47 kB / 0.5206 GB, free: 81.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002055/0.6198, allocations: 0.8229 MB / 0.5214 GB, free: 81.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002647/0.6225, allocations: 0.9451 MB / 0.5223 GB, free: 80.71 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004729/0.6273, allocations: 4.336 MB / 0.5265 GB, free: 76.53 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002887/0.6302, allocations: 247.6 kB / 0.5268 GB, free: 76.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000617/0.6308, allocations: 260 kB / 0.527 GB, free: 76.04 MB / 378.7 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 (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.002181/0.633, allocations: 1.374 MB / 0.5284 GB, free: 74.65 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000416/0.6334, allocations: 229 kB / 0.5286 GB, free: 74.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003852/0.6373, allocations: 2.13 MB / 0.5307 GB, free: 72.28 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.789e-05/0.6373, allocations: 12 kB / 0.5307 GB, free: 72.27 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.899e-06/0.6374, allocations: 4 kB / 0.5307 GB, free: 72.27 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.123e-05/0.6374, allocations: 7.984 kB / 0.5307 GB, free: 72.26 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008704/0.6461, allocations: 5.069 MB / 0.5356 GB, free: 67.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.184e-05/0.6461, allocations: 4.062 kB / 0.5356 GB, free: 67.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007571/0.6469, allocations: 155.8 kB / 0.5358 GB, free: 67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00187/0.6488, allocations: 0.6833 MB / 0.5365 GB, free: 66.31 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001168/0.6489, allocations: 16 kB / 0.5365 GB, free: 66.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003886/0.6528, allocations: 3.893 MB / 0.5403 GB, free: 62.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.6528, allocations: 4.031 kB / 0.5403 GB, free: 62.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005147/0.658, allocations: 4.051 MB / 0.5442 GB, free: 58.19 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005136/0.6585, allocations: 286.1 kB / 0.5445 GB, free: 57.89 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002328/0.6588, allocations: 24.64 kB / 0.5445 GB, free: 57.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008504/0.6596, allocations: 71.95 kB / 0.5446 GB, free: 57.8 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001617/0.6598, allocations: 57.86 kB / 0.5447 GB, free: 57.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.017e-05/0.6599, allocations: 28 kB / 0.5447 GB, free: 57.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00191/0.6618, allocations: 1.678 MB / 0.5463 GB, free: 56.03 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6618, allocations: 0 / 0.5463 GB, free: 56.03 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002817/0.6646, allocations: 0.6798 MB / 0.547 GB, free: 55.36 MB / 378.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.0004081/0.6651, allocations: 208.2 kB / 0.5472 GB, free: 55.16 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004519/0.6696, allocations: 3.464 MB / 0.5506 GB, free: 51.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.763e-06/0.6696, allocations: 4.188 kB / 0.5506 GB, free: 51.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001151/0.6708, allocations: 1.028 MB / 0.5516 GB, free: 50.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0021/0.6729, allocations: 248.1 kB / 0.5518 GB, free: 50.42 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009117/0.682, allocations: 6.954 MB / 0.5586 GB, free: 43.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001737/0.6838, allocations: 2.234 MB / 0.5608 GB, free: 41.16 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006405/0.6845, allocations: 195.4 kB / 0.561 GB, free: 40.96 MB / 378.7 MB Notification: Performance of SimCode: time 7.01e-07/0.6845, allocations: 4 kB / 0.561 GB, free: 40.96 MB / 378.7 MB Notification: Performance of Templates: time 0.05176/0.7362, allocations: 47.89 MB / 0.6077 GB, free: 9.105 MB / 394.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/jenkins/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