Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.001086/0.001086, allocations: 105.2 kB / 17.73 MB, free: 5.238 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.001026/0.001026, allocations: 187.1 kB / 18.66 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.403/1.403, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 55.92 kB / 328.5 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09509/0.09643, allocations: 46.62 MB / 375.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.2483/0.3448, allocations: 7.673 MB / 382.8 MB, free: 9.266 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007207/0.3521, allocations: 3.3 MB / 386.1 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001725/0.3539, allocations: 35.16 kB / 386.2 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003132/0.3571, allocations: 1.028 MB / 387.2 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00453/0.3617, allocations: 1.367 MB / 388.6 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001681/0.3633, allocations: 0.5402 MB / 389.1 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004336/0.3677, allocations: 2.602 MB / 391.7 MB, free: 5.586 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002014/0.3697, allocations: 1.396 MB / 393.1 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001391/0.3711, allocations: 0.8336 MB / 393.9 MB, free: 4.684 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001424/0.3726, allocations: 1.159 MB / 395.1 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003052/0.3729, allocations: 146.8 kB / 395.2 MB, free: 4.25 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001965/0.3749, allocations: 0.8937 MB / 396.1 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008717/0.3757, allocations: 1.069 MB / 397.2 MB, free: 3.66 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009924/0.3768, allocations: 1.257 MB / 398.4 MB, free: 2.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004283/0.381, allocations: 4.115 MB / 402.6 MB, free: 176 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3811, allocations: 5.031 kB / 402.6 MB, free: 172 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3811, allocations: 0 / 402.6 MB, free: 172 kB / 318.1 MB Notification: Performance of Transformations before backend: time 6.492e-05/0.3812, allocations: 4 kB / 402.6 MB, free: 168 kB / 318.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.00623/0.3874, allocations: 2.997 MB / 405.6 MB, free: 14.02 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.3874, allocations: 8.906 kB / 405.6 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005319/0.3928, allocations: 1.572 MB / 407.2 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002879/0.3957, allocations: 1.461 MB / 408.6 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.3958, allocations: 132.5 kB / 408.7 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003523/0.3962, allocations: 161.8 kB / 408.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01139/0.4075, allocations: 6.531 MB / 415.4 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.754e-05/0.4077, allocations: 35.64 kB / 415.5 MB, free: 6.594 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003909/0.4081, allocations: 79.89 kB / 415.5 MB, free: 6.516 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002593/0.4107, allocations: 1.472 MB / 417 MB, free: 5.043 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.011/0.4217, allocations: 5.839 MB / 422.9 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03222/0.454, allocations: 25.67 MB / 448.5 MB, free: 4.77 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005535/0.4595, allocations: 2.547 MB / 451.1 MB, free: 2.074 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001603/0.4612, allocations: 1.215 MB / 452.3 MB, free: 0.8477 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007548/0.4687, allocations: 4.807 MB / 457.1 MB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.138e-05/0.4688, allocations: 46.5 kB / 457.1 MB, free: 11.89 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 3.567e-06/0.4688, allocations: 0 / 457.1 MB, free: 11.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02635/0.4952, allocations: 9.814 MB / 466.9 MB, free: 1.926 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.09e-05/0.4953, allocations: 140.9 kB / 467.1 MB, free: 1.758 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004678/0.5, allocations: 2.718 MB / 469.8 MB, free: 15.02 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001404/0.5001, allocations: 41.7 kB / 469.8 MB, free: 14.97 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001542/0.5017, allocations: 2.048 MB / 471.9 MB, free: 12.89 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004962/0.5022, allocations: 430.7 kB / 472.3 MB, free: 12.47 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001262/0.5035, allocations: 0.8331 MB / 473.1 MB, free: 11.62 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.5036, allocations: 305.1 kB / 473.4 MB, free: 11.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002157/0.5057, allocations: 1.445 MB / 474.9 MB, free: 9.867 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003907/0.5097, allocations: 4.065 MB / 479 MB, free: 4.473 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006378/0.5161, allocations: 5.973 MB / 484.9 MB, free: 13.19 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.336e-05/0.5161, allocations: 24 kB / 484.9 MB, free: 13.17 MB / 414.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.0133/0.5294, allocations: 6.021 MB / 491 MB, free: 7.137 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.5296, allocations: 52.88 kB / 491 MB, free: 7.086 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00016/0.5298, allocations: 95.98 kB / 491.1 MB, free: 6.992 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003695/0.5335, allocations: 0.8162 MB / 491.9 MB, free: 6.172 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00518/0.5387, allocations: 0.9513 MB / 492.9 MB, free: 5.219 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009237/0.5479, allocations: 4.668 MB / 497.6 MB, free: 420 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00597/0.5539, allocations: 243.7 kB / 497.8 MB, free: 176 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001253/0.5552, allocations: 263.9 kB / 498 MB, free: 15.91 MB / 430.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.004455/0.5597, allocations: 1.368 MB / 499.4 MB, free: 14.54 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007749/0.5605, allocations: 233 kB / 499.6 MB, free: 14.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00718/0.5677, allocations: 2.13 MB / 0.49 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.82e-05/0.5678, allocations: 12 kB / 0.49 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.318e-05/0.5678, allocations: 4 kB / 0.49 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.804e-05/0.5678, allocations: 3.984 kB / 0.49 GB, free: 12.14 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01643/0.5843, allocations: 5.062 MB / 0.495 GB, free: 6.996 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.706e-05/0.5844, allocations: 4 kB / 0.495 GB, free: 6.992 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001186/0.5856, allocations: 151.8 kB / 0.4951 GB, free: 6.844 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003255/0.5888, allocations: 0.6874 MB / 0.4958 GB, free: 6.152 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001869/0.5891, allocations: 19.94 kB / 0.4958 GB, free: 6.133 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007905/0.597, allocations: 4.154 MB / 0.4999 GB, free: 1.84 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.4e-06/0.597, allocations: 3.938 kB / 0.4999 GB, free: 1.836 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01012/0.6071, allocations: 4.052 MB / 0.5038 GB, free: 13.75 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001726/0.6089, allocations: 454 kB / 0.5043 GB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008446/0.6098, allocations: 24.05 kB / 0.5043 GB, free: 13.27 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00193/0.6118, allocations: 71.83 kB / 0.5044 GB, free: 13.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003463/0.6121, allocations: 60.25 kB / 0.5044 GB, free: 13.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001594/0.6123, allocations: 31.98 kB / 0.5044 GB, free: 13.11 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004832/0.6171, allocations: 1.697 MB / 0.5061 GB, free: 11.4 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.6172, allocations: 0 / 0.5061 GB, free: 11.4 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004668/0.6218, allocations: 0.6718 MB / 0.5068 GB, free: 10.73 MB / 446.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.0006974/0.6226, allocations: 202.9 kB / 0.507 GB, free: 10.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005974/0.6286, allocations: 3.496 MB / 0.5104 GB, free: 7.023 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.6286, allocations: 0 / 0.5104 GB, free: 7.023 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001499/0.6301, allocations: 1.032 MB / 0.5114 GB, free: 5.98 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002176/0.6323, allocations: 264.6 kB / 0.5116 GB, free: 5.723 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01226/0.6445, allocations: 5.623 MB / 0.5171 GB, free: 56 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003512/0.6481, allocations: 2.241 MB / 0.5193 GB, free: 13.79 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003481/0.6516, allocations: 1.317 MB / 0.5206 GB, free: 12.46 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006903/0.6523, allocations: 167.4 kB / 0.5207 GB, free: 12.3 MB / 462.1 MB Notification: Performance of SimCode: time 6.61e-07/0.6523, allocations: 0 / 0.5207 GB, free: 12.3 MB / 462.1 MB Notification: Performance of Templates: time 0.04864/0.701, allocations: 21.8 MB / 0.542 GB, free: 6.457 MB / 478.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches