Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009788/0.0009788, allocations: 201.1 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.271/1.271, allocations: 229.5 MB / 247.7 MB, free: 6.301 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007749/0.0007749, allocations: 95.88 kB / 299.9 MB, free: 5.34 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003031/0.0003032, allocations: 8 kB / 360.6 MB, free: 8.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.225/0.2253, allocations: 51.41 MB / 412.1 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01107/0.2364, allocations: 16.34 MB / 428.4 MB, free: 9.508 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008429/0.2449, allocations: 8.117 MB / 436.5 MB, free: 0.6289 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002713/0.2477, allocations: 71.81 kB / 436.6 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008687/0.2485, allocations: 282.7 kB / 436.9 MB, free: 288 kB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003078/0.2516, allocations: 1.242 MB / 438.1 MB, free: 15.04 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001271/0.2529, allocations: 0.499 MB / 438.6 MB, free: 14.54 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.004156/0.2571, allocations: 3.624 MB / 442.2 MB, free: 10.9 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003015/0.2601, allocations: 1.962 MB / 444.2 MB, free: 8.84 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001398/0.2615, allocations: 0.7664 MB / 444.9 MB, free: 8.07 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001743/0.2633, allocations: 1.168 MB / 446.1 MB, free: 6.898 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003907/0.2637, allocations: 84 kB / 446.2 MB, free: 6.816 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001778/0.2655, allocations: 0.8618 MB / 447.1 MB, free: 5.953 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009441/0.2665, allocations: 0.9893 MB / 448 MB, free: 4.961 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00114/0.2676, allocations: 1.212 MB / 449.3 MB, free: 3.734 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003642/0.2713, allocations: 3.84 MB / 453.1 MB, free: 15.88 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.182e-06/0.2713, allocations: 0 / 453.1 MB, free: 15.88 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2713, allocations: 3.938 kB / 453.1 MB, free: 15.88 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.289e-05/0.2713, allocations: 0 / 453.1 MB, free: 15.88 MB / 330.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.004067/0.2754, allocations: 2.512 MB / 455.6 MB, free: 13.31 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.29e-05/0.2755, allocations: 8.031 kB / 455.6 MB, free: 13.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004948/0.2804, allocations: 1.608 MB / 457.2 MB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002421/0.2829, allocations: 1.363 MB / 458.6 MB, free: 10.28 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.283, allocations: 131 kB / 458.7 MB, free: 10.15 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003113/0.2833, allocations: 171.8 kB / 458.9 MB, free: 9.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008857/0.2922, allocations: 6.526 MB / 465.4 MB, free: 2.969 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.862e-05/0.2923, allocations: 27.75 kB / 465.4 MB, free: 2.941 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002173/0.2925, allocations: 79.91 kB / 465.5 MB, free: 2.863 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002319/0.2948, allocations: 1.468 MB / 467 MB, free: 1.395 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01032/0.3051, allocations: 5.814 MB / 472.8 MB, free: 11.58 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02868/0.3339, allocations: 25.76 MB / 498.6 MB, free: 1.059 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005345/0.3393, allocations: 2.58 MB / 0.4894 GB, free: 14.33 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001566/0.3409, allocations: 1.211 MB / 0.4906 GB, free: 13.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007144/0.348, allocations: 4.795 MB / 0.4953 GB, free: 8.207 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.793e-05/0.3481, allocations: 50.44 kB / 0.4953 GB, free: 8.148 MB / 378.7 MB Notification: Performance of pre-optimization done (n=97): time 3.486e-06/0.3481, allocations: 0 / 0.4953 GB, free: 8.148 MB / 378.7 MB Notification: Performance of matching and sorting (n=105): time 0.1992/0.5473, allocations: 9.739 MB / 0.5048 GB, free: 92.93 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.5474, allocations: 138.5 kB / 0.505 GB, free: 92.77 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003732/0.5512, allocations: 2.69 MB / 0.5076 GB, free: 91.98 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001832/0.5514, allocations: 39.69 kB / 0.5076 GB, free: 91.95 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009529/0.5523, allocations: 2.047 MB / 0.5096 GB, free: 90.43 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003669/0.5527, allocations: 427.1 kB / 0.51 GB, free: 90.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001514/0.5529, allocations: 81.06 kB / 0.5101 GB, free: 90.07 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001953/0.5531, allocations: 488.4 kB / 0.5106 GB, free: 89.69 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0019/0.555, allocations: 1.437 MB / 0.512 GB, free: 89.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002786/0.5578, allocations: 4.054 MB / 0.5159 GB, free: 85.24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004573/0.5623, allocations: 5.939 MB / 0.5217 GB, free: 80.19 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-05/0.5624, allocations: 27.41 kB / 0.5218 GB, free: 80.19 MB / 378.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.008239/0.5706, allocations: 5.996 MB / 0.5276 GB, free: 75.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.742e-05/0.5707, allocations: 47.94 kB / 0.5277 GB, free: 75.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.83e-05/0.5708, allocations: 100.2 kB / 0.5278 GB, free: 75.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001968/0.5728, allocations: 0.8199 MB / 0.5286 GB, free: 74.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002378/0.5751, allocations: 0.9474 MB / 0.5295 GB, free: 73.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004424/0.5796, allocations: 4.333 MB / 0.5337 GB, free: 69.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002891/0.5825, allocations: 252.8 kB / 0.534 GB, free: 69.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003204/0.5828, allocations: 260.9 kB / 0.5342 GB, free: 69.02 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 (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.001658/0.5845, allocations: 1.37 MB / 0.5355 GB, free: 67.64 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000338/0.5848, allocations: 233 kB / 0.5358 GB, free: 67.41 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003526/0.5884, allocations: 2.132 MB / 0.5378 GB, free: 65.27 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.891e-05/0.5884, allocations: 12 kB / 0.5379 GB, free: 65.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.5884, allocations: 4.75 kB / 0.5379 GB, free: 65.25 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/0.5884, allocations: 7.922 kB / 0.5379 GB, free: 65.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007282/0.5957, allocations: 5.063 MB / 0.5428 GB, free: 60.13 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.143e-06/0.5957, allocations: 11.19 kB / 0.5428 GB, free: 60.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006935/0.5964, allocations: 159.7 kB / 0.543 GB, free: 59.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001845/0.5983, allocations: 0.6724 MB / 0.5436 GB, free: 59.29 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.387e-05/0.5984, allocations: 26.33 kB / 0.5437 GB, free: 59.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00375/0.6021, allocations: 3.884 MB / 0.5474 GB, free: 55.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/0.6022, allocations: 3.938 kB / 0.5475 GB, free: 55.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005121/0.6073, allocations: 4.056 MB / 0.5514 GB, free: 51.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005873/0.6079, allocations: 286 kB / 0.5517 GB, free: 50.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002249/0.6081, allocations: 15.98 kB / 0.5517 GB, free: 50.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008436/0.609, allocations: 75.95 kB / 0.5518 GB, free: 50.77 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001652/0.6091, allocations: 52.31 kB / 0.5518 GB, free: 50.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.675e-05/0.6092, allocations: 37.16 kB / 0.5519 GB, free: 50.69 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001881/0.6111, allocations: 1.67 MB / 0.5535 GB, free: 49.01 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6111, allocations: 0 / 0.5535 GB, free: 49.01 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003224/0.6144, allocations: 0.676 MB / 0.5542 GB, free: 48.34 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 (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.0004902/0.6149, allocations: 209.9 kB / 0.5544 GB, free: 48.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00419/0.6191, allocations: 3.459 MB / 0.5577 GB, free: 44.69 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.594e-06/0.6191, allocations: 0 / 0.5577 GB, free: 44.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.6201, allocations: 1.033 MB / 0.5587 GB, free: 43.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001638/0.6218, allocations: 256.8 kB / 0.559 GB, free: 43.39 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006726/0.6285, allocations: 6.932 MB / 0.5658 GB, free: 36.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001516/0.63, allocations: 2.238 MB / 0.5679 GB, free: 34.14 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002603/0.6327, allocations: 1.322 MB / 0.5692 GB, free: 32.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003408/0.633, allocations: 155.4 kB / 0.5694 GB, free: 32.66 MB / 378.7 MB Notification: Performance of SimCode: time 6.11e-07/0.633, allocations: 0 / 0.5694 GB, free: 32.66 MB / 378.7 MB Notification: Performance of Templates: time 0.03259/0.6656, allocations: 22.74 MB / 0.5916 GB, free: 10.02 MB / 378.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/jenkins/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