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.001379/0.001378, allocations: 108.6 kB / 17.93 MB, free: 5.535 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.001042/0.001042, allocations: 189.8 kB / 18.86 MB, free: 4.613 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.344/1.344, allocations: 205.1 MB / 224.7 MB, free: 12.44 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.001172/0.001172, allocations: 43.94 kB / 280.8 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09784/0.09902, allocations: 46.62 MB / 327.4 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01733/0.1164, allocations: 18.16 MB / 345.6 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01102/0.1275, allocations: 4.97 MB / 350.6 MB, free: 13.56 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003325/0.1309, allocations: 75.81 kB / 350.6 MB, free: 13.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002306/0.1332, allocations: 0.966 MB / 351.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003371/0.1366, allocations: 1.254 MB / 352.9 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001306/0.1379, allocations: 0.5186 MB / 353.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003367/0.1413, allocations: 2.621 MB / 356 MB, free: 8.113 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001764/0.1431, allocations: 1.467 MB / 357.5 MB, free: 6.621 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001235/0.1443, allocations: 0.8445 MB / 358.3 MB, free: 5.773 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001493/0.1458, allocations: 1.293 MB / 359.6 MB, free: 4.477 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002751/0.1461, allocations: 148 kB / 359.8 MB, free: 4.332 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001586/0.1477, allocations: 0.9086 MB / 360.7 MB, free: 3.422 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009343/0.1487, allocations: 1.079 MB / 361.7 MB, free: 2.34 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001157/0.1498, allocations: 1.269 MB / 363 MB, free: 1.062 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003418/0.1533, allocations: 3.173 MB / 366.2 MB, free: 13.88 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1533, allocations: 0 / 366.2 MB, free: 13.88 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1533, allocations: 0 / 366.2 MB, free: 13.88 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.606e-05/0.1534, allocations: 0 / 366.2 MB, free: 13.88 MB / 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.00515/0.1585, allocations: 2.999 MB / 369.2 MB, free: 10.82 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.1586, allocations: 12.03 kB / 369.2 MB, free: 10.81 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005014/0.1636, allocations: 1.573 MB / 370.8 MB, free: 9.234 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002478/0.1661, allocations: 1.453 MB / 372.2 MB, free: 7.734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.269e-05/0.1662, allocations: 127 kB / 372.3 MB, free: 7.609 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003234/0.1665, allocations: 163.8 kB / 372.5 MB, free: 7.449 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009415/0.176, allocations: 6.53 MB / 379 MB, free: 444 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.13e-05/0.1761, allocations: 27.75 kB / 379.1 MB, free: 416 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002468/0.1763, allocations: 83.89 kB / 379.1 MB, free: 332 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.1599/0.3362, allocations: 1.464 MB / 380.6 MB, free: 51.95 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01207/0.3483, allocations: 5.835 MB / 386.4 MB, free: 50.6 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02531/0.3737, allocations: 25.77 MB / 412.2 MB, free: 30.2 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004662/0.3784, allocations: 2.542 MB / 414.8 MB, free: 27.5 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001148/0.3796, allocations: 1.221 MB / 416 MB, free: 26.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005989/0.3856, allocations: 4.82 MB / 420.8 MB, free: 21.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.3856, allocations: 38.56 kB / 420.8 MB, free: 21.34 MB / 318.1 MB Notification: Performance of pre-optimization done (n=97): time 3.637e-06/0.3856, allocations: 2.344 kB / 420.8 MB, free: 21.34 MB / 318.1 MB Notification: Performance of matching and sorting (n=105): time 0.02168/0.4073, allocations: 9.805 MB / 430.6 MB, free: 11.4 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/0.4074, allocations: 137 kB / 430.8 MB, free: 11.24 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004043/0.4115, allocations: 2.718 MB / 433.5 MB, free: 8.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002655/0.4117, allocations: 45.16 kB / 433.5 MB, free: 8.453 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001348/0.4131, allocations: 2.049 MB / 435.6 MB, free: 6.406 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007393/0.4139, allocations: 426.4 kB / 436 MB, free: 5.992 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001779/0.4157, allocations: 0.8367 MB / 436.8 MB, free: 5.145 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.241e-05/0.4158, allocations: 313 kB / 437.1 MB, free: 4.836 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001956/0.4177, allocations: 1.441 MB / 438.6 MB, free: 3.387 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003371/0.4211, allocations: 4.077 MB / 442.7 MB, free: 13.98 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006857/0.428, allocations: 5.951 MB / 448.6 MB, free: 6.715 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001113/0.4281, allocations: 28 kB / 448.6 MB, free: 6.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.0115/0.4397, allocations: 6.038 MB / 454.7 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.4398, allocations: 44 kB / 454.7 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001321/0.4399, allocations: 92 kB / 454.8 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002415/0.4424, allocations: 0.817 MB / 455.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003196/0.4456, allocations: 0.9561 MB / 456.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006179/0.4518, allocations: 4.656 MB / 461.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003557/0.4554, allocations: 243.5 kB / 461.5 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008115/0.4562, allocations: 260 kB / 461.7 MB, free: 9.465 MB / 350.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.00286/0.4591, allocations: 1.376 MB / 463.1 MB, free: 8.074 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006048/0.4597, allocations: 221.1 kB / 463.3 MB, free: 7.855 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004547/0.4643, allocations: 2.13 MB / 465.5 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.674e-05/0.4643, allocations: 20 kB / 465.5 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.798e-06/0.4643, allocations: 0 / 465.5 MB, free: 5.691 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.425e-05/0.4644, allocations: 7.984 kB / 465.5 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01049/0.4749, allocations: 5.076 MB / 470.6 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.4e-05/0.4749, allocations: 0 / 470.6 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008217/0.4757, allocations: 159.8 kB / 470.7 MB, free: 408 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002159/0.4779, allocations: 0.6879 MB / 471.4 MB, free: 15.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001662/0.4781, allocations: 20 kB / 471.4 MB, free: 15.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005136/0.4832, allocations: 4.15 MB / 475.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/0.4833, allocations: 4.031 kB / 475.6 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006547/0.4898, allocations: 4.06 MB / 479.6 MB, free: 7.293 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001124/0.491, allocations: 454 kB / 480.1 MB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005363/0.4915, allocations: 19.94 kB / 480.1 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001172/0.4927, allocations: 71.95 kB / 480.2 MB, free: 6.738 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002086/0.493, allocations: 56.36 kB / 480.2 MB, free: 6.684 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.664e-05/0.4931, allocations: 33.95 kB / 480.3 MB, free: 6.652 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00304/0.4961, allocations: 1.701 MB / 482 MB, free: 4.941 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4961, allocations: 0 / 482 MB, free: 4.941 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.003623/0.4998, allocations: 0.6718 MB / 482.6 MB, free: 4.277 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.0005874/0.5004, allocations: 201.7 kB / 482.8 MB, free: 4.086 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005997/0.5064, allocations: 3.696 MB / 486.5 MB, free: 416 kB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.374e-06/0.5064, allocations: 4 kB / 486.5 MB, free: 412 kB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001407/0.5078, allocations: 1.045 MB / 487.6 MB, free: 15.35 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002035/0.5099, allocations: 265.7 kB / 487.8 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01192/0.5218, allocations: 7.141 MB / 495 MB, free: 7.906 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002909/0.5248, allocations: 2.229 MB / 497.2 MB, free: 5.641 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008462/0.5256, allocations: 199.4 kB / 497.4 MB, free: 5.445 MB / 382.1 MB Notification: Performance of SimCode: time 1.343e-06/0.5256, allocations: 0 / 497.4 MB, free: 5.445 MB / 382.1 MB Notification: Performance of Templates: time 0.2468/0.7724, allocations: 48.35 MB / 0.533 GB, free: 132.4 MB / 414.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches