Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008578/0.0008578, allocations: 184.7 kB / 16.72 MB, free: 4.84 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.221/1.221, allocations: 225.7 MB / 243.2 MB, free: 10.23 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000795/0.0007949, allocations: 91.31 kB / 294.4 MB, free: 9.754 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000369/0.0003691, allocations: 7.938 kB / 354.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2127/0.213, allocations: 50.41 MB / 404.6 MB, free: 31.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.011/0.2241, allocations: 16.33 MB / 420.9 MB, free: 15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008652/0.2328, allocations: 7.711 MB / 428.6 MB, free: 6.621 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001837/0.2346, allocations: 75.81 kB / 428.7 MB, free: 6.547 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006013/0.2353, allocations: 274.7 kB / 429 MB, free: 6.277 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002147/0.2374, allocations: 1.25 MB / 430.2 MB, free: 5.023 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009502/0.2384, allocations: 0.5069 MB / 430.7 MB, free: 4.516 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002422/0.2408, allocations: 3.557 MB / 434.3 MB, free: 0.9492 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002054/0.2429, allocations: 1.95 MB / 436.2 MB, free: 14.9 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009544/0.2438, allocations: 0.7664 MB / 437 MB, free: 14.13 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001243/0.2451, allocations: 1.168 MB / 438.2 MB, free: 12.96 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001827/0.2453, allocations: 84 kB / 438.2 MB, free: 12.88 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001556/0.2469, allocations: 0.8812 MB / 439.1 MB, free: 12 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008858/0.2478, allocations: 0.9932 MB / 440.1 MB, free: 11 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001082/0.2488, allocations: 1.205 MB / 441.3 MB, free: 9.781 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003616/0.2525, allocations: 3.847 MB / 445.2 MB, free: 5.922 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2525, allocations: 4 kB / 445.2 MB, free: 5.918 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.2525, allocations: 0 / 445.2 MB, free: 5.918 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.835e-05/0.2526, allocations: 0 / 445.2 MB, free: 5.918 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.003923/0.2565, allocations: 2.501 MB / 447.7 MB, free: 3.359 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.2565, allocations: 11.97 kB / 447.7 MB, free: 3.348 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004638/0.2612, allocations: 1.612 MB / 449.3 MB, free: 1.73 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002317/0.2635, allocations: 1.382 MB / 450.7 MB, free: 308 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.736e-05/0.2636, allocations: 138.9 kB / 450.8 MB, free: 168 kB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002814/0.2639, allocations: 159.8 kB / 451 MB, free: 8 kB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008704/0.2726, allocations: 6.526 MB / 457.5 MB, free: 8.996 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.788e-05/0.2727, allocations: 31.75 kB / 457.5 MB, free: 8.965 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002269/0.273, allocations: 79.89 kB / 457.6 MB, free: 8.887 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002207/0.2752, allocations: 1.468 MB / 459.1 MB, free: 7.414 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009791/0.285, allocations: 5.818 MB / 464.9 MB, free: 1.598 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02677/0.3118, allocations: 25.76 MB / 490.7 MB, free: 7.074 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005005/0.3168, allocations: 2.58 MB / 493.2 MB, free: 4.348 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001505/0.3184, allocations: 1.211 MB / 494.4 MB, free: 3.125 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006819/0.3252, allocations: 4.807 MB / 499.3 MB, free: 14.21 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.908e-05/0.3252, allocations: 42.5 kB / 499.3 MB, free: 14.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=97): time 2.715e-06/0.3252, allocations: 0 / 499.3 MB, free: 14.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=105): time 0.02149/0.3467, allocations: 9.747 MB / 0.4971 GB, free: 4.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.38e-05/0.3468, allocations: 148.9 kB / 0.4973 GB, free: 4.094 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003541/0.3504, allocations: 2.691 MB / 0.4999 GB, free: 1.383 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 9.93e-05/0.3505, allocations: 37.7 kB / 0.4999 GB, free: 1.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1618/0.5123, allocations: 2.038 MB / 0.5019 GB, free: 97.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007199/0.513, allocations: 427.8 kB / 0.5023 GB, free: 97.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004898/0.5135, allocations: 82.06 kB / 0.5024 GB, free: 97.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0004554/0.514, allocations: 488.8 kB / 0.5029 GB, free: 97.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002449/0.5165, allocations: 1.434 MB / 0.5043 GB, free: 96.89 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003517/0.52, allocations: 4.052 MB / 0.5082 GB, free: 92.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005371/0.5254, allocations: 5.942 MB / 0.514 GB, free: 87.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001078/0.5255, allocations: 29.41 kB / 0.514 GB, free: 87.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.008551/0.5341, allocations: 5.99 MB / 0.5199 GB, free: 85.53 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.752e-05/0.5342, allocations: 47.5 kB / 0.5199 GB, free: 85.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.283e-05/0.5342, allocations: 96 kB / 0.52 GB, free: 85.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001902/0.5362, allocations: 0.8163 MB / 0.5208 GB, free: 84.84 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002366/0.5385, allocations: 0.9524 MB / 0.5218 GB, free: 84.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004288/0.5428, allocations: 4.339 MB / 0.526 GB, free: 79.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002414/0.5453, allocations: 247.2 kB / 0.5262 GB, free: 79.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003021/0.5456, allocations: 260.7 kB / 0.5265 GB, free: 79.23 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.001538/0.5471, allocations: 1.381 MB / 0.5278 GB, free: 77.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000311/0.5474, allocations: 225 kB / 0.528 GB, free: 77.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003385/0.5508, allocations: 2.134 MB / 0.5301 GB, free: 75.47 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.816e-05/0.5509, allocations: 13.17 kB / 0.5301 GB, free: 75.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.5509, allocations: 4 kB / 0.5301 GB, free: 75.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.5509, allocations: 3.984 kB / 0.5301 GB, free: 75.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007017/0.5579, allocations: 5.063 MB / 0.5351 GB, free: 70.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/0.5579, allocations: 4 kB / 0.5351 GB, free: 70.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006502/0.5586, allocations: 155.8 kB / 0.5352 GB, free: 70.19 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001756/0.5604, allocations: 0.6872 MB / 0.5359 GB, free: 69.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.626e-05/0.5604, allocations: 21.92 kB / 0.5359 GB, free: 69.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003598/0.564, allocations: 3.882 MB / 0.5397 GB, free: 65.46 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.5641, allocations: 3.938 kB / 0.5397 GB, free: 65.46 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00475/0.5688, allocations: 4.051 MB / 0.5437 GB, free: 61.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000416/0.5693, allocations: 293.9 kB / 0.544 GB, free: 61.07 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003336/0.5696, allocations: 19.94 kB / 0.544 GB, free: 61.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009383/0.5705, allocations: 68.61 kB / 0.5441 GB, free: 60.99 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001674/0.5707, allocations: 64.23 kB / 0.5441 GB, free: 60.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.942e-05/0.5708, allocations: 32.81 kB / 0.5441 GB, free: 60.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002301/0.5731, allocations: 1.674 MB / 0.5458 GB, free: 59.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.5731, allocations: 0 / 0.5458 GB, free: 59.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003499/0.5766, allocations: 0.6757 MB / 0.5464 GB, free: 58.55 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.000419/0.5771, allocations: 209 kB / 0.5466 GB, free: 58.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004233/0.5813, allocations: 3.459 MB / 0.55 GB, free: 54.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.5813, allocations: 0 / 0.55 GB, free: 54.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.5823, allocations: 1.028 MB / 0.551 GB, free: 53.85 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001644/0.584, allocations: 260.7 kB / 0.5513 GB, free: 53.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007192/0.5912, allocations: 6.93 MB / 0.558 GB, free: 46.63 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001853/0.5931, allocations: 2.238 MB / 0.5602 GB, free: 44.36 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.002765/0.5959, allocations: 1.321 MB / 0.5615 GB, free: 43.03 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000403/0.5963, allocations: 163.4 kB / 0.5617 GB, free: 42.87 MB / 378.7 MB Notification: Performance of SimCode: time 8.72e-07/0.5963, allocations: 0 / 0.5617 GB, free: 42.87 MB / 378.7 MB Notification: Performance of Templates: time 0.03313/0.6294, allocations: 22.69 MB / 0.5838 GB, free: 20.29 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches