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.001076/0.001076, allocations: 100.5 kB / 18.35 MB, free: 4.648 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.001055/0.001055, 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.353/1.353, allocations: 205.1 MB / 225.2 MB, free: 12.29 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.001267/0.001267, allocations: 47.94 kB / 282.1 MB, free: 2.461 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09566/0.09694, allocations: 46.63 MB / 328.7 MB, free: 3.762 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009694/0.1067, allocations: 7.681 MB / 336.4 MB, free: 12.04 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006514/0.1132, allocations: 3.295 MB / 339.7 MB, free: 8.73 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00125/0.1146, allocations: 39.88 kB / 339.8 MB, free: 8.691 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002336/0.1169, allocations: 1.024 MB / 340.8 MB, free: 7.664 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003658/0.1206, allocations: 1.343 MB / 342.1 MB, free: 6.316 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001447/0.1221, allocations: 0.5535 MB / 342.7 MB, free: 5.762 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.00384/0.1259, allocations: 2.602 MB / 345.3 MB, free: 3.152 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002009/0.128, allocations: 1.393 MB / 346.7 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001761/0.1297, allocations: 0.8407 MB / 347.5 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001858/0.1316, allocations: 1.156 MB / 348.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000529/0.1321, allocations: 148 kB / 348.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002111/0.1343, allocations: 0.897 MB / 349.7 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001392/0.1357, allocations: 1.052 MB / 350.8 MB, free: 13.63 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002266/0.138, allocations: 1.254 MB / 352 MB, free: 12.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005654/0.1436, allocations: 4.118 MB / 356.1 MB, free: 8.238 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/0.1436, allocations: 0 / 356.1 MB, free: 8.238 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1437, allocations: 4 kB / 356.1 MB, free: 8.234 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.851e-05/0.1438, allocations: 0 / 356.1 MB, free: 8.234 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.006163/0.1499, allocations: 3.011 MB / 359.1 MB, free: 5.164 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.029e-05/0.15, allocations: 8.031 kB / 359.2 MB, free: 5.156 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004977/0.155, allocations: 1.569 MB / 360.7 MB, free: 3.582 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003353/0.1583, allocations: 1.457 MB / 362.2 MB, free: 2.078 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000136/0.1585, allocations: 127 kB / 362.3 MB, free: 1.953 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003665/0.1589, allocations: 163.8 kB / 362.5 MB, free: 1.793 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009334/0.1682, allocations: 6.534 MB / 369 MB, free: 10.78 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-05/0.1683, allocations: 27.81 kB / 369 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002187/0.1686, allocations: 91.88 kB / 369.1 MB, free: 10.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002252/0.1708, allocations: 1.468 MB / 370.6 MB, free: 9.191 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009536/0.1804, allocations: 5.834 MB / 376.4 MB, free: 3.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2112/0.3916, allocations: 25.64 MB / 402.1 MB, free: 32.21 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004796/0.3965, allocations: 2.546 MB / 404.6 MB, free: 31.02 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001289/0.3978, allocations: 1.218 MB / 405.8 MB, free: 30.52 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007018/0.4048, allocations: 4.818 MB / 410.6 MB, free: 27.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.4049, allocations: 48.2 kB / 410.7 MB, free: 27.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.316e-06/0.4049, allocations: 0 / 410.7 MB, free: 27.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=105): time 0.02012/0.425, allocations: 9.809 MB / 420.5 MB, free: 19.9 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.301e-05/0.4251, allocations: 137 kB / 420.6 MB, free: 19.73 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002736/0.4278, allocations: 2.722 MB / 423.3 MB, free: 16.99 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.556e-05/0.4279, allocations: 41.7 kB / 423.4 MB, free: 16.95 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007885/0.4287, allocations: 2.046 MB / 425.4 MB, free: 14.9 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002584/0.429, allocations: 424.4 kB / 425.8 MB, free: 14.49 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007778/0.4298, allocations: 0.8368 MB / 426.7 MB, free: 13.64 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.07e-05/0.4298, allocations: 313 kB / 427 MB, free: 13.33 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001585/0.4314, allocations: 1.447 MB / 428.4 MB, free: 11.88 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002519/0.4339, allocations: 4.067 MB / 432.5 MB, free: 6.484 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005287/0.4392, allocations: 5.956 MB / 438.5 MB, free: 15.21 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.574e-05/0.4393, allocations: 24 kB / 438.5 MB, free: 15.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.009787/0.4491, allocations: 6.032 MB / 444.5 MB, free: 9.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.889e-05/0.4492, allocations: 48 kB / 444.6 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.351e-05/0.4493, allocations: 96.09 kB / 444.7 MB, free: 9.012 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002276/0.4516, allocations: 0.8123 MB / 445.5 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002655/0.4542, allocations: 0.9435 MB / 446.4 MB, free: 7.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005679/0.4599, allocations: 4.664 MB / 451.1 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002701/0.4626, allocations: 239.6 kB / 451.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003469/0.463, allocations: 264 kB / 451.6 MB, free: 1.973 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.002149/0.4652, allocations: 1.368 MB / 452.9 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004473/0.4656, allocations: 229.2 kB / 453.2 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00408/0.4697, allocations: 2.13 MB / 455.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.407e-05/0.4697, allocations: 12 kB / 455.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.588e-06/0.4698, allocations: 7.562 kB / 455.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.126e-05/0.4698, allocations: 3.984 kB / 455.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009632/0.4794, allocations: 5.081 MB / 460.4 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-05/0.4795, allocations: 4 kB / 460.4 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008059/0.4803, allocations: 155.7 kB / 460.5 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002052/0.4823, allocations: 0.6907 MB / 461.2 MB, free: 8.238 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000113/0.4825, allocations: 16 kB / 461.3 MB, free: 8.223 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005114/0.4876, allocations: 4.138 MB / 465.4 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.201e-06/0.4876, allocations: 11.95 kB / 465.4 MB, free: 3.926 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006356/0.494, allocations: 4.055 MB / 469.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001287/0.4953, allocations: 458 kB / 469.9 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002465/0.4956, allocations: 16 kB / 469.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009079/0.4965, allocations: 70.94 kB / 470 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.4967, allocations: 61.66 kB / 470.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.233e-05/0.4968, allocations: 32.83 kB / 470.1 MB, free: 15.2 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002597/0.4994, allocations: 1.697 MB / 471.8 MB, free: 13.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4994, allocations: 0 / 471.8 MB, free: 13.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00422/0.5036, allocations: 0.6796 MB / 472.5 MB, free: 12.82 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.0005476/0.5042, allocations: 193.5 kB / 472.6 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005133/0.5093, allocations: 3.494 MB / 476.1 MB, free: 9.148 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/0.5094, allocations: 0 / 476.1 MB, free: 9.148 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001338/0.5107, allocations: 1.04 MB / 477.2 MB, free: 8.094 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001634/0.5124, allocations: 272.6 kB / 477.4 MB, free: 7.836 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008407/0.5208, allocations: 5.602 MB / 483.1 MB, free: 2.195 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002185/0.523, allocations: 2.248 MB / 485.3 MB, free: 15.91 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002829/0.5258, allocations: 1.326 MB / 486.6 MB, free: 14.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004146/0.5263, allocations: 159.4 kB / 486.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of SimCode: time 8.81e-07/0.5263, allocations: 0 / 486.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of Templates: time 0.04002/0.5663, allocations: 20.44 MB / 0.4953 GB, free: 9.953 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 cvode -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