Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001255/0.001255, allocations: 106.3 kB / 17.16 MB, free: 6.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.37/1.37, allocations: 222.9 MB / 241.7 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 50.88 kB / 300.6 MB, free: 6.281 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09109/0.09228, allocations: 49.45 MB / 350.1 MB, free: 4.824 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01713/0.1094, allocations: 18.09 MB / 368.2 MB, free: 2.652 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1748/0.2843, allocations: 5.105 MB / 373.3 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00301/0.2874, allocations: 76.25 kB / 373.3 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00297/0.2904, allocations: 1.001 MB / 374.3 MB, free: 9.449 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004453/0.2949, allocations: 1.247 MB / 375.6 MB, free: 9.383 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001533/0.2964, allocations: 0.5019 MB / 376.1 MB, free: 9.363 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005421/0.3019, allocations: 3.561 MB / 379.6 MB, free: 9.344 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002845/0.3048, allocations: 1.356 MB / 381 MB, free: 8.918 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002038/0.3068, allocations: 0.7422 MB / 381.7 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002526/0.3094, allocations: 1.245 MB / 383 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00074/0.3101, allocations: 104.5 kB / 383.1 MB, free: 8.363 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002622/0.3128, allocations: 0.92 MB / 384 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001548/0.3143, allocations: 1.032 MB / 385 MB, free: 7.766 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00219/0.3165, allocations: 1.221 MB / 386.3 MB, free: 6.855 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003876/0.3204, allocations: 3.138 MB / 389.4 MB, free: 4.922 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.3205, allocations: 4 kB / 389.4 MB, free: 4.918 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.3205, allocations: 0 / 389.4 MB, free: 4.918 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001707/0.3207, allocations: 0 / 389.4 MB, free: 4.918 MB / 302.1 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.007093/0.3278, allocations: 2.99 MB / 392.4 MB, free: 2.848 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.217e-05/0.3278, allocations: 15.2 kB / 392.4 MB, free: 2.844 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005348/0.3332, allocations: 1.57 MB / 394 MB, free: 2.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002885/0.3361, allocations: 1.396 MB / 395.4 MB, free: 1.098 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001207/0.3362, allocations: 123.8 kB / 395.5 MB, free: 1.066 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006646/0.3369, allocations: 165.6 kB / 395.7 MB, free: 1.031 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01076/0.3477, allocations: 6.537 MB / 402.2 MB, free: 11.51 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.079e-05/0.3478, allocations: 27.72 kB / 402.2 MB, free: 11.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002561/0.348, allocations: 84.05 kB / 402.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002503/0.3505, allocations: 1.471 MB / 403.8 MB, free: 9.961 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01035/0.3609, allocations: 5.829 MB / 409.6 MB, free: 4.133 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02876/0.3897, allocations: 25.77 MB / 435.4 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005433/0.3952, allocations: 2.539 MB / 437.9 MB, free: 7.047 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001634/0.3968, allocations: 1.219 MB / 439.1 MB, free: 5.816 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007654/0.4045, allocations: 4.816 MB / 443.9 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/0.4046, allocations: 46.56 kB / 444 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 5.57e-06/0.4046, allocations: 0 / 444 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of matching and sorting (n=105): time 0.02434/0.4289, allocations: 9.78 MB / 453.8 MB, free: 6.961 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.357e-05/0.429, allocations: 137 kB / 453.9 MB, free: 6.797 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004172/0.4332, allocations: 2.71 MB / 456.6 MB, free: 4.066 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002449/0.4335, allocations: 45.64 kB / 456.7 MB, free: 4.016 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001438/0.4349, allocations: 2.05 MB / 458.7 MB, free: 1.969 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005727/0.4355, allocations: 423.7 kB / 459.1 MB, free: 1.559 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001391/0.4369, allocations: 0.8353 MB / 460 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.116e-05/0.437, allocations: 305.1 kB / 460.3 MB, free: 420 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002244/0.4393, allocations: 1.445 MB / 461.7 MB, free: 14.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003776/0.4431, allocations: 4.073 MB / 465.8 MB, free: 9.555 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006475/0.4496, allocations: 5.965 MB / 471.7 MB, free: 2.281 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.667e-05/0.4497, allocations: 28 kB / 471.8 MB, free: 2.254 MB / 382.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01149/0.4612, allocations: 6.02 MB / 477.8 MB, free: 12.22 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.412e-05/0.4613, allocations: 44 kB / 477.8 MB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001272/0.4614, allocations: 92 kB / 477.9 MB, free: 12.09 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00242/0.4638, allocations: 0.824 MB / 478.7 MB, free: 11.26 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003068/0.4669, allocations: 0.9513 MB / 479.7 MB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005847/0.4728, allocations: 4.341 MB / 484 MB, free: 5.84 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003232/0.4761, allocations: 243.6 kB / 484.3 MB, free: 5.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006534/0.4767, allocations: 262.8 kB / 484.5 MB, free: 5.348 MB / 398.1 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.00254/0.4793, allocations: 1.377 MB / 485.9 MB, free: 3.961 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004882/0.4798, allocations: 225 kB / 486.1 MB, free: 3.738 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004393/0.4842, allocations: 2.13 MB / 488.3 MB, free: 1.586 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-05/0.4842, allocations: 12 kB / 488.3 MB, free: 1.574 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.031e-05/0.4842, allocations: 7.828 kB / 488.3 MB, free: 1.57 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/0.4843, allocations: 7.984 kB / 488.3 MB, free: 1.562 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009948/0.4942, allocations: 5.09 MB / 493.4 MB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.404e-05/0.4943, allocations: 3.938 kB / 493.4 MB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000817/0.4951, allocations: 151.8 kB / 493.5 MB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002174/0.4973, allocations: 0.6795 MB / 494.2 MB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001425/0.4974, allocations: 20 kB / 494.2 MB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005178/0.5026, allocations: 3.889 MB / 498.1 MB, free: 7.531 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.436e-06/0.5027, allocations: 8.031 kB / 498.1 MB, free: 7.523 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006755/0.5094, allocations: 4.053 MB / 0.4904 GB, free: 3.441 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006891/0.5101, allocations: 294 kB / 0.4907 GB, free: 3.133 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004383/0.5106, allocations: 12 kB / 0.4907 GB, free: 3.121 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001136/0.5117, allocations: 71.89 kB / 0.4908 GB, free: 3.051 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002047/0.512, allocations: 52.36 kB / 0.4908 GB, free: 3 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.809e-05/0.5121, allocations: 32 kB / 0.4908 GB, free: 2.969 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002988/0.5151, allocations: 1.697 MB / 0.4925 GB, free: 1.262 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.5151, allocations: 0 / 0.4925 GB, free: 1.262 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003781/0.5189, allocations: 0.6752 MB / 0.4932 GB, free: 0.5898 MB / 414.1 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.0005768/0.5195, allocations: 210.7 kB / 0.4934 GB, free: 388 kB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005667/0.5251, allocations: 3.484 MB / 0.4968 GB, free: 12.91 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.5252, allocations: 0 / 0.4968 GB, free: 12.91 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001553/0.5267, allocations: 1.043 MB / 0.4978 GB, free: 11.85 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002386/0.5291, allocations: 241.3 kB / 0.498 GB, free: 11.61 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01463/0.5438, allocations: 7.138 MB / 0.505 GB, free: 4.43 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002971/0.5468, allocations: 2.237 MB / 0.5072 GB, free: 2.164 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007679/0.5476, allocations: 191.4 kB / 0.5074 GB, free: 1.977 MB / 430.1 MB Notification: Performance of SimCode: time 8.62e-07/0.5476, allocations: 4 kB / 0.5074 GB, free: 1.973 MB / 430.1 MB Notification: Performance of Templates: time 0.2656/0.8132, allocations: 48.27 MB / 0.5545 GB, free: 137.3 MB / 446.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches