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.001143/0.001143, allocations: 113.2 kB / 17.73 MB, free: 5.336 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.001079/0.001079, allocations: 188.2 kB / 18.67 MB, free: 4.402 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.498/1.498, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.00119/0.00119, allocations: 56.14 kB / 328.5 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1096, allocations: 46.62 MB / 375.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.274/0.3837, allocations: 7.673 MB / 382.8 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007488/0.3912, allocations: 3.301 MB / 386.1 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00168/0.393, allocations: 34.94 kB / 386.2 MB, free: 7.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002383/0.3954, allocations: 1.033 MB / 387.2 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004002/0.3994, allocations: 1.35 MB / 388.5 MB, free: 6.707 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001665/0.4011, allocations: 0.5356 MB / 389.1 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.005068/0.4062, allocations: 2.598 MB / 391.7 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002116/0.4083, allocations: 1.387 MB / 393.1 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00164/0.41, allocations: 0.8425 MB / 393.9 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002014/0.412, allocations: 1.15 MB / 395.1 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004526/0.4125, allocations: 147 kB / 395.2 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002317/0.4148, allocations: 0.8934 MB / 396.1 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001345/0.4161, allocations: 1.062 MB / 397.2 MB, free: 3.684 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001437/0.4176, allocations: 1.255 MB / 398.4 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006117/0.4237, allocations: 4.132 MB / 402.5 MB, free: 172 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.4238, allocations: 0 / 402.5 MB, free: 172 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.4238, allocations: 0 / 402.5 MB, free: 172 kB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000125/0.4239, allocations: 4 kB / 402.5 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.008895/0.4328, allocations: 3.09 MB / 405.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.4329, allocations: 8.969 kB / 405.6 MB, free: 13.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005671/0.4385, allocations: 1.59 MB / 407.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002996/0.4416, allocations: 1.469 MB / 408.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.524e-05/0.4417, allocations: 128.7 kB / 408.8 MB, free: 12.04 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002971/0.442, allocations: 160.7 kB / 409 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01083/0.4528, allocations: 6.532 MB / 415.5 MB, free: 6.531 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.426e-05/0.4529, allocations: 31.7 kB / 415.6 MB, free: 6.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003661/0.4533, allocations: 83.83 kB / 415.6 MB, free: 6.418 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002624/0.456, allocations: 1.476 MB / 417.1 MB, free: 4.941 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01065/0.4666, allocations: 5.823 MB / 422.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03111/0.4978, allocations: 25.72 MB / 448.7 MB, free: 4.637 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005654/0.5034, allocations: 2.544 MB / 451.2 MB, free: 1.945 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001522/0.505, allocations: 1.215 MB / 452.4 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007654/0.5127, allocations: 4.816 MB / 457.2 MB, free: 11.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.5127, allocations: 38.56 kB / 457.3 MB, free: 11.76 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 4.018e-06/0.5127, allocations: 0 / 457.3 MB, free: 11.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02328/0.536, allocations: 9.963 MB / 467.2 MB, free: 1.664 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.712e-05/0.5362, allocations: 137 kB / 467.4 MB, free: 1.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00395/0.5401, allocations: 2.723 MB / 470.1 MB, free: 14.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001141/0.5402, allocations: 41.7 kB / 470.1 MB, free: 14.71 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001535/0.5418, allocations: 2.132 MB / 472.3 MB, free: 12.56 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004277/0.5422, allocations: 456.6 kB / 472.7 MB, free: 12.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001144/0.5434, allocations: 0.83 MB / 473.5 MB, free: 11.27 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001244/0.5435, allocations: 313.1 kB / 473.8 MB, free: 10.96 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002127/0.5456, allocations: 1.449 MB / 475.3 MB, free: 9.5 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003991/0.5496, allocations: 4.073 MB / 479.4 MB, free: 4.098 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006386/0.556, allocations: 5.957 MB / 485.3 MB, free: 12.83 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.942e-05/0.5561, allocations: 28 kB / 485.3 MB, free: 12.8 MB / 414.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01043/0.5665, allocations: 6.042 MB / 491.4 MB, free: 6.754 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.389e-05/0.5666, allocations: 47.94 kB / 491.4 MB, free: 6.707 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.547e-05/0.5667, allocations: 92.84 kB / 491.5 MB, free: 6.617 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002334/0.5691, allocations: 0.8162 MB / 492.3 MB, free: 5.797 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002577/0.5717, allocations: 0.9513 MB / 493.3 MB, free: 4.844 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005926/0.5776, allocations: 4.66 MB / 498 MB, free: 44 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003143/0.5808, allocations: 247.7 kB / 498.2 MB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003672/0.5812, allocations: 264 kB / 498.5 MB, free: 15.54 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.002385/0.5835, allocations: 1.364 MB / 499.8 MB, free: 14.17 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004578/0.584, allocations: 238.4 kB / 0.4883 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004132/0.5882, allocations: 2.142 MB / 0.4904 GB, free: 11.77 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.971e-05/0.5882, allocations: 12.56 kB / 0.4904 GB, free: 11.76 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/0.5882, allocations: 4 kB / 0.4904 GB, free: 11.76 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.5882, allocations: 3.984 kB / 0.4904 GB, free: 11.75 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009194/0.5974, allocations: 5.066 MB / 0.4954 GB, free: 6.609 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.377e-06/0.5974, allocations: 4 kB / 0.4954 GB, free: 6.605 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000715/0.5982, allocations: 151.8 kB / 0.4955 GB, free: 6.457 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001983/0.6002, allocations: 0.6872 MB / 0.4962 GB, free: 5.766 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.287e-05/0.6003, allocations: 20 kB / 0.4962 GB, free: 5.746 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005022/0.6053, allocations: 4.153 MB / 0.5003 GB, free: 1.453 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.6053, allocations: 3.984 kB / 0.5003 GB, free: 1.449 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006149/0.6115, allocations: 4.064 MB / 0.5043 GB, free: 13.36 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001085/0.6126, allocations: 471.3 kB / 0.5047 GB, free: 12.88 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002552/0.6128, allocations: 12 kB / 0.5047 GB, free: 12.87 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009082/0.6138, allocations: 75.95 kB / 0.5048 GB, free: 12.79 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001737/0.6139, allocations: 64.23 kB / 0.5049 GB, free: 12.73 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-05/0.614, allocations: 28 kB / 0.5049 GB, free: 12.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002663/0.6167, allocations: 1.697 MB / 0.5065 GB, free: 11 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6167, allocations: 0 / 0.5065 GB, free: 11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00361/0.6203, allocations: 0.6794 MB / 0.5072 GB, free: 10.32 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.0005336/0.6209, allocations: 202.8 kB / 0.5074 GB, free: 10.11 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006222/0.6271, allocations: 3.5 MB / 0.5108 GB, free: 6.605 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.001e-06/0.6271, allocations: 4 kB / 0.5108 GB, free: 6.602 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001421/0.6286, allocations: 1.039 MB / 0.5118 GB, free: 5.551 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00162/0.6302, allocations: 259.4 kB / 0.5121 GB, free: 5.301 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01028/0.6405, allocations: 5.706 MB / 0.5176 GB, free: 15.54 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002264/0.6428, allocations: 2.237 MB / 0.5198 GB, free: 13.28 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002902/0.6457, allocations: 1.325 MB / 0.5211 GB, free: 11.95 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004253/0.6462, allocations: 163.4 kB / 0.5213 GB, free: 11.79 MB / 462.1 MB Notification: Performance of SimCode: time 1.373e-06/0.6462, allocations: 0 / 0.5213 GB, free: 11.79 MB / 462.1 MB Notification: Performance of Templates: time 0.04437/0.6905, allocations: 21.81 MB / 0.5426 GB, free: 5.941 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