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.001112/0.001112, allocations: 110.6 kB / 17.06 MB, free: 6.098 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.001235/0.001235, allocations: 198.9 kB / 18 MB, free: 5.172 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.36/1.36, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 51.92 kB / 351.3 MB, free: 3.191 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.2948, allocations: 49.44 MB / 400.7 MB, free: 8.711 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01003/0.3048, allocations: 7.619 MB / 408.4 MB, free: 1.184 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006776/0.3116, allocations: 3.333 MB / 411.7 MB, free: 13.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001144/0.3128, allocations: 39.88 kB / 411.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002135/0.3151, allocations: 1.02 MB / 412.8 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002924/0.318, allocations: 1.377 MB / 414.1 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001179/0.3192, allocations: 0.5418 MB / 414.7 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003039/0.3223, allocations: 2.592 MB / 417.3 MB, free: 8.254 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002036/0.3243, allocations: 1.385 MB / 418.6 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001498/0.3258, allocations: 0.8368 MB / 419.5 MB, free: 5.996 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002146/0.328, allocations: 1.152 MB / 420.6 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004426/0.3284, allocations: 144 kB / 420.8 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00178/0.3302, allocations: 0.9087 MB / 421.7 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001021/0.3313, allocations: 1.063 MB / 422.7 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001299/0.3326, allocations: 1.25 MB / 424 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004286/0.3369, allocations: 4.123 MB / 428.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.3369, allocations: 0 / 428.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.123e-06/0.3369, allocations: 0 / 428.1 MB, free: 13.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.45e-05/0.337, allocations: 0 / 428.1 MB, free: 13.33 MB / 350.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.005732/0.3427, allocations: 2.995 MB / 431.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.3428, allocations: 8.031 kB / 431.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004721/0.3475, allocations: 1.576 MB / 432.7 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002401/0.3499, allocations: 1.406 MB / 434.1 MB, free: 7.238 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.389e-05/0.35, allocations: 127 kB / 434.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003016/0.3503, allocations: 167.8 kB / 434.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008335/0.3587, allocations: 6.538 MB / 440.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.956e-05/0.3588, allocations: 27.75 kB / 441 MB, free: 15.9 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000213/0.359, allocations: 87.89 kB / 441 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002223/0.3612, allocations: 1.46 MB / 442.5 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009542/0.3708, allocations: 5.83 MB / 448.3 MB, free: 8.527 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03105/0.4018, allocations: 25.66 MB / 474 MB, free: 14.1 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005189/0.4071, allocations: 2.545 MB / 476.5 MB, free: 11.4 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00152/0.4086, allocations: 1.219 MB / 477.8 MB, free: 10.17 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007225/0.4159, allocations: 4.807 MB / 482.6 MB, free: 5.266 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.906e-05/0.4159, allocations: 50.48 kB / 482.6 MB, free: 5.207 MB / 398.1 MB Notification: Performance of pre-optimization done (n=97): time 3.657e-06/0.416, allocations: 0 / 482.6 MB, free: 5.207 MB / 398.1 MB Notification: Performance of matching and sorting (n=105): time 0.02231/0.4383, allocations: 9.802 MB / 492.4 MB, free: 11.26 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.82e-05/0.4384, allocations: 140.9 kB / 492.6 MB, free: 11.09 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003473/0.4419, allocations: 2.71 MB / 495.3 MB, free: 8.363 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002/0.4421, allocations: 37.7 kB / 495.3 MB, free: 8.32 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001393/0.4435, allocations: 2.041 MB / 497.3 MB, free: 6.25 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005145/0.444, allocations: 430.6 kB / 497.8 MB, free: 5.824 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001002/0.445, allocations: 0.841 MB / 498.6 MB, free: 4.969 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.787e-05/0.4451, allocations: 301.1 kB / 498.9 MB, free: 4.672 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002039/0.4472, allocations: 1.452 MB / 0.4886 GB, free: 3.211 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003586/0.4508, allocations: 4.073 MB / 0.4926 GB, free: 13.81 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006982/0.4578, allocations: 5.944 MB / 0.4984 GB, free: 6.555 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.455e-05/0.4579, allocations: 28 kB / 0.4984 GB, free: 6.527 MB / 430.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01126/0.4691, allocations: 6.033 MB / 0.5043 GB, free: 496 kB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.543e-05/0.4692, allocations: 44 kB / 0.5044 GB, free: 452 kB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.883e-05/0.4693, allocations: 92 kB / 0.5045 GB, free: 360 kB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002235/0.4715, allocations: 0.8285 MB / 0.5053 GB, free: 15.52 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002826/0.4744, allocations: 0.9474 MB / 0.5062 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005818/0.4802, allocations: 4.65 MB / 0.5107 GB, free: 9.781 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003094/0.4833, allocations: 247.6 kB / 0.511 GB, free: 9.539 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000393/0.4837, allocations: 260 kB / 0.5112 GB, free: 9.285 MB / 446.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.002009/0.4858, allocations: 1.368 MB / 0.5125 GB, free: 7.906 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003958/0.4862, allocations: 233 kB / 0.5128 GB, free: 7.676 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004061/0.4902, allocations: 2.13 MB / 0.5149 GB, free: 5.531 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.618e-05/0.4903, allocations: 12 kB / 0.5149 GB, free: 5.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.218e-06/0.4903, allocations: 4 kB / 0.5149 GB, free: 5.516 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.648e-06/0.4903, allocations: 3.984 kB / 0.5149 GB, free: 5.512 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00887/0.4992, allocations: 5.073 MB / 0.5198 GB, free: 372 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.014e-05/0.4992, allocations: 0 / 0.5198 GB, free: 372 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007628/0.5, allocations: 155.8 kB / 0.52 GB, free: 216 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002031/0.502, allocations: 0.6841 MB / 0.5206 GB, free: 15.52 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001215/0.5022, allocations: 19.84 kB / 0.5207 GB, free: 15.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005165/0.5073, allocations: 4.147 MB / 0.5247 GB, free: 11.21 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.5074, allocations: 0 / 0.5247 GB, free: 11.21 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00623/0.5136, allocations: 4.055 MB / 0.5287 GB, free: 7.125 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006988/0.5143, allocations: 286.1 kB / 0.5289 GB, free: 6.824 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002146/0.5146, allocations: 12 kB / 0.529 GB, free: 6.812 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008659/0.5154, allocations: 79.81 kB / 0.529 GB, free: 6.734 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.5156, allocations: 60.42 kB / 0.5291 GB, free: 6.676 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.722e-05/0.5157, allocations: 28 kB / 0.5291 GB, free: 6.648 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002409/0.5181, allocations: 1.693 MB / 0.5308 GB, free: 4.945 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5181, allocations: 0 / 0.5308 GB, free: 4.945 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003256/0.5214, allocations: 0.6757 MB / 0.5314 GB, free: 4.27 MB / 462.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.0004768/0.5219, allocations: 198.9 kB / 0.5316 GB, free: 4.062 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005286/0.5272, allocations: 3.497 MB / 0.535 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/0.5272, allocations: 0 / 0.535 GB, free: 0.5703 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.2196/0.7468, allocations: 1.039 MB / 0.536 GB, free: 133.9 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002298/0.7491, allocations: 259.6 kB / 0.5363 GB, free: 133.9 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009787/0.7589, allocations: 5.603 MB / 0.5418 GB, free: 132.2 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001887/0.7608, allocations: 2.234 MB / 0.5439 GB, free: 131.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002489/0.7633, allocations: 1.317 MB / 0.5452 GB, free: 131.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003722/0.7637, allocations: 166.2 kB / 0.5454 GB, free: 131.1 MB / 462.1 MB Notification: Performance of SimCode: time 7.41e-07/0.7637, allocations: 1.938 kB / 0.5454 GB, free: 131.1 MB / 462.1 MB Notification: Performance of Templates: time 0.04421/0.808, allocations: 21.77 MB / 0.5667 GB, free: 111.5 MB / 462.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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins/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