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.001042/0.001041, allocations: 104.4 kB / 18.35 MB, free: 4.645 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.001112/0.001112, allocations: 191 kB / 19.29 MB, free: 3.715 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.329/1.329, allocations: 205.1 MB / 225.2 MB, free: 12.28 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.001203/0.001203, allocations: 51.92 kB / 282.1 MB, free: 2.473 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08778/0.08899, allocations: 46.63 MB / 328.7 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.00866/0.09772, allocations: 7.67 MB / 336.4 MB, free: 12.05 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006037/0.1038, allocations: 3.299 MB / 339.7 MB, free: 8.746 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000817/0.1047, allocations: 39.88 kB / 339.8 MB, free: 8.707 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00192/0.1066, allocations: 1.02 MB / 340.8 MB, free: 7.684 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00262/0.1093, allocations: 1.346 MB / 342.1 MB, free: 6.332 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001102/0.1104, allocations: 0.5457 MB / 342.7 MB, free: 5.785 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002948/0.1133, allocations: 2.609 MB / 345.3 MB, free: 3.168 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00153/0.1149, allocations: 1.393 MB / 346.7 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001007/0.1159, allocations: 0.8368 MB / 347.5 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001286/0.1172, allocations: 1.152 MB / 348.7 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002543/0.1175, allocations: 148 kB / 348.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001474/0.1189, allocations: 0.897 MB / 349.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007961/0.1198, allocations: 1.056 MB / 350.8 MB, free: 13.65 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009882/0.1208, allocations: 1.25 MB / 352 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003698/0.1245, allocations: 4.118 MB / 356.1 MB, free: 8.262 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1245, allocations: 4 kB / 356.1 MB, free: 8.258 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1245, allocations: 0 / 356.1 MB, free: 8.258 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.012e-05/0.1246, allocations: 0 / 356.1 MB, free: 8.258 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.004706/0.1293, allocations: 3.007 MB / 359.1 MB, free: 5.191 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.91e-05/0.1293, allocations: 12.03 kB / 359.1 MB, free: 5.18 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004717/0.134, allocations: 1.573 MB / 360.7 MB, free: 3.602 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002786/0.1368, allocations: 1.461 MB / 362.2 MB, free: 2.094 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.189e-05/0.1369, allocations: 131 kB / 362.3 MB, free: 1.965 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000316/0.1373, allocations: 159.8 kB / 362.5 MB, free: 1.809 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008458/0.1457, allocations: 6.538 MB / 369 MB, free: 10.79 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.827e-05/0.1458, allocations: 23.81 kB / 369 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002093/0.146, allocations: 87.83 kB / 369.1 MB, free: 10.68 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002174/0.1482, allocations: 1.468 MB / 370.6 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01028/0.1585, allocations: 5.834 MB / 376.4 MB, free: 3.367 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1708/0.3293, allocations: 25.64 MB / 402 MB, free: 32.18 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004389/0.3338, allocations: 2.549 MB / 404.6 MB, free: 31 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001194/0.335, allocations: 1.216 MB / 405.8 MB, free: 30.49 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006047/0.341, allocations: 4.815 MB / 410.6 MB, free: 27.45 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.985e-05/0.3411, allocations: 45.75 kB / 410.7 MB, free: 27.4 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 2.414e-06/0.3411, allocations: 0 / 410.7 MB, free: 27.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=105): time 0.0187/0.3598, allocations: 9.811 MB / 420.5 MB, free: 19.93 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.038e-05/0.3598, allocations: 137 kB / 420.6 MB, free: 19.76 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002622/0.3625, allocations: 2.722 MB / 423.3 MB, free: 17.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.452e-05/0.3626, allocations: 41.7 kB / 423.4 MB, free: 16.97 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007347/0.3633, allocations: 2.047 MB / 425.4 MB, free: 14.93 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002412/0.3636, allocations: 422.2 kB / 425.8 MB, free: 14.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007396/0.3643, allocations: 0.8406 MB / 426.7 MB, free: 13.67 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.565e-05/0.3644, allocations: 309.1 kB / 427 MB, free: 13.36 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001536/0.3659, allocations: 1.447 MB / 428.4 MB, free: 11.91 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002246/0.3682, allocations: 4.075 MB / 432.5 MB, free: 6.508 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004337/0.3725, allocations: 5.959 MB / 438.5 MB, free: 15.24 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.511e-05/0.3726, allocations: 26.91 kB / 438.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.009536/0.3821, allocations: 6.032 MB / 444.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.88e-05/0.3822, allocations: 44 kB / 444.6 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.079e-05/0.3823, allocations: 96 kB / 444.7 MB, free: 9.039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002223/0.3845, allocations: 0.8124 MB / 445.5 MB, free: 8.223 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002631/0.3871, allocations: 0.9513 MB / 446.4 MB, free: 7.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005553/0.3927, allocations: 4.648 MB / 451.1 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002448/0.3952, allocations: 247.2 kB / 451.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002927/0.3955, allocations: 256 kB / 451.6 MB, free: 2.004 MB / 334.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.0016/0.3971, allocations: 1.376 MB / 452.9 MB, free: 0.6172 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003123/0.3974, allocations: 221.1 kB / 453.2 MB, free: 408 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003864/0.4013, allocations: 2.13 MB / 455.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.935e-05/0.4013, allocations: 15.98 kB / 455.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.295e-06/0.4013, allocations: 4 kB / 455.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.348e-06/0.4013, allocations: 15.39 kB / 455.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008485/0.4098, allocations: 5.078 MB / 460.4 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.4099, allocations: 0 / 460.4 MB, free: 9.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007154/0.4106, allocations: 155.8 kB / 460.5 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001987/0.4126, allocations: 0.6838 MB / 461.2 MB, free: 8.258 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.558e-05/0.4127, allocations: 24.03 kB / 461.3 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004767/0.4174, allocations: 4.147 MB / 465.4 MB, free: 3.941 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.089e-06/0.4175, allocations: 4 kB / 465.4 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00613/0.4236, allocations: 4.055 MB / 469.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001061/0.4247, allocations: 454 kB / 469.9 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002332/0.4249, allocations: 16 kB / 469.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008923/0.4258, allocations: 71.89 kB / 470 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001639/0.426, allocations: 60.3 kB / 470.1 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.414e-05/0.4261, allocations: 28 kB / 470.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002197/0.4283, allocations: 1.701 MB / 471.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4283, allocations: 0 / 471.8 MB, free: 13.5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002939/0.4312, allocations: 0.6803 MB / 472.5 MB, free: 12.84 MB / 366.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.0004055/0.4316, allocations: 195 kB / 472.7 MB, free: 12.65 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004743/0.4364, allocations: 3.482 MB / 476.1 MB, free: 9.172 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.848e-06/0.4364, allocations: 7.938 kB / 476.1 MB, free: 9.164 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001289/0.4377, allocations: 1.04 MB / 477.2 MB, free: 8.109 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001424/0.4391, allocations: 264.2 kB / 477.4 MB, free: 7.859 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008689/0.4478, allocations: 5.619 MB / 483.1 MB, free: 2.211 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002093/0.45, allocations: 2.237 MB / 485.3 MB, free: 15.94 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002681/0.4527, allocations: 1.323 MB / 486.6 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003979/0.4531, allocations: 159.4 kB / 486.8 MB, free: 14.46 MB / 382.1 MB Notification: Performance of SimCode: time 6.61e-07/0.4531, allocations: 7.938 kB / 486.8 MB, free: 14.45 MB / 382.1 MB Notification: Performance of Templates: time 0.03864/0.4917, allocations: 20.44 MB / 0.4953 GB, free: 10 MB / 398.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/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