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.001191/0.001191, allocations: 107.5 kB / 18.4 MB, free: 4.699 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.001075/0.001075, allocations: 187.1 kB / 19.33 MB, free: 3.781 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.357/1.357, allocations: 205.1 MB / 225.2 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.00138/0.00138, allocations: 51.92 kB / 329.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0924/0.09379, allocations: 46.62 MB / 375.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.205/0.2988, allocations: 7.673 MB / 383.5 MB, free: 9.277 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.006935/0.3058, allocations: 3.299 MB / 386.8 MB, free: 7.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001641/0.3075, allocations: 40.25 kB / 386.8 MB, free: 7.766 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002656/0.3102, allocations: 1.024 MB / 387.9 MB, free: 7.297 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004629/0.3148, allocations: 1.335 MB / 389.2 MB, free: 6.738 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001729/0.3166, allocations: 0.5475 MB / 389.7 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004406/0.321, allocations: 2.598 MB / 392.3 MB, free: 5.613 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002033/0.3231, allocations: 1.396 MB / 393.7 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001611/0.3247, allocations: 0.8417 MB / 394.6 MB, free: 4.703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001906/0.3266, allocations: 1.151 MB / 395.7 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004644/0.3271, allocations: 148.8 kB / 395.9 MB, free: 4.277 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002273/0.3294, allocations: 0.8995 MB / 396.8 MB, free: 4.051 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001146/0.3305, allocations: 1.062 MB / 397.8 MB, free: 3.688 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001224/0.3318, allocations: 1.259 MB / 399.1 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004704/0.3365, allocations: 4.124 MB / 403.2 MB, free: 176 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.3365, allocations: 0 / 403.2 MB, free: 176 kB / 318.1 MB Notification: Performance of FrontEnd: time 2.826e-06/0.3365, allocations: 1.156 kB / 403.2 MB, free: 176 kB / 318.1 MB Notification: Performance of Transformations before backend: time 8.884e-05/0.3366, allocations: 0 / 403.2 MB, free: 176 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.00714/0.3438, allocations: 2.992 MB / 406.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.506e-05/0.3439, allocations: 9.688 kB / 406.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005674/0.3495, allocations: 1.576 MB / 407.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003845/0.3534, allocations: 1.465 MB / 409.3 MB, free: 12.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001223/0.3536, allocations: 128.1 kB / 409.4 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005453/0.3541, allocations: 166.9 kB / 409.6 MB, free: 12.11 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01164/0.3658, allocations: 6.533 MB / 416.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.786e-05/0.3659, allocations: 31.66 kB / 416.1 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002923/0.3662, allocations: 83.89 kB / 416.2 MB, free: 6.527 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00241/0.3686, allocations: 1.464 MB / 417.7 MB, free: 5.062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01083/0.3795, allocations: 5.834 MB / 423.5 MB, free: 15.22 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03155/0.4111, allocations: 25.67 MB / 449.2 MB, free: 4.793 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005785/0.4169, allocations: 2.553 MB / 451.7 MB, free: 2.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001704/0.4187, allocations: 1.215 MB / 452.9 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00815/0.4268, allocations: 4.799 MB / 457.7 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.937e-05/0.4269, allocations: 46.5 kB / 457.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 5.209e-06/0.4269, allocations: 0 / 457.8 MB, free: 11.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02504/0.452, allocations: 9.818 MB / 467.6 MB, free: 1.945 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.575e-05/0.4521, allocations: 140.9 kB / 467.7 MB, free: 1.777 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003968/0.4561, allocations: 2.726 MB / 470.5 MB, free: 15.03 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002566/0.4564, allocations: 33.7 kB / 470.5 MB, free: 14.99 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001497/0.4579, allocations: 2.048 MB / 472.5 MB, free: 12.91 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006046/0.4585, allocations: 426.7 kB / 473 MB, free: 12.49 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001187/0.4597, allocations: 0.8409 MB / 473.8 MB, free: 11.64 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.4598, allocations: 301.1 kB / 474.1 MB, free: 11.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002384/0.4622, allocations: 1.445 MB / 475.5 MB, free: 9.887 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004401/0.4666, allocations: 4.073 MB / 479.6 MB, free: 4.484 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007683/0.4743, allocations: 5.965 MB / 485.6 MB, free: 13.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.74e-05/0.4745, allocations: 28 kB / 485.6 MB, free: 13.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01343/0.4879, allocations: 6.029 MB / 491.6 MB, free: 7.145 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000114/0.4881, allocations: 51.97 kB / 491.7 MB, free: 7.094 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001656/0.4883, allocations: 92 kB / 491.8 MB, free: 7.004 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002517/0.4908, allocations: 0.8123 MB / 492.6 MB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003285/0.4941, allocations: 0.9474 MB / 493.5 MB, free: 5.238 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006563/0.5007, allocations: 4.668 MB / 498.2 MB, free: 440 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003543/0.5043, allocations: 243.5 kB / 498.4 MB, free: 196 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008368/0.5051, allocations: 260 kB / 498.7 MB, free: 15.93 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.003171/0.5083, allocations: 1.372 MB / 0.4883 GB, free: 14.55 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006609/0.509, allocations: 225 kB / 0.4886 GB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00485/0.5138, allocations: 2.13 MB / 0.4906 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.031e-05/0.5139, allocations: 16 kB / 0.4907 GB, free: 12.17 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.499e-05/0.5139, allocations: 3.984 kB / 0.4907 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-05/0.514, allocations: 7.984 kB / 0.4907 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0122/0.5262, allocations: 5.058 MB / 0.4956 GB, free: 7.02 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.806e-05/0.5262, allocations: 4 kB / 0.4956 GB, free: 7.016 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008442/0.5271, allocations: 159.8 kB / 0.4958 GB, free: 6.859 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002225/0.5293, allocations: 0.6761 MB / 0.4964 GB, free: 6.18 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002212/0.5296, allocations: 23.94 kB / 0.4964 GB, free: 6.156 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005585/0.5352, allocations: 4.152 MB / 0.5005 GB, free: 1.863 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/0.5352, allocations: 4.062 kB / 0.5005 GB, free: 1.859 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007063/0.5423, allocations: 4.063 MB / 0.5045 GB, free: 13.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001386/0.5437, allocations: 454 kB / 0.5049 GB, free: 13.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005718/0.5443, allocations: 12 kB / 0.5049 GB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001326/0.5456, allocations: 71.89 kB / 0.505 GB, free: 13.22 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/0.5459, allocations: 60.23 kB / 0.505 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001115/0.546, allocations: 35.91 kB / 0.5051 GB, free: 13.13 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003614/0.5496, allocations: 1.701 MB / 0.5067 GB, free: 11.42 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.5496, allocations: 4 kB / 0.5067 GB, free: 11.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004663/0.5543, allocations: 0.6679 MB / 0.5074 GB, free: 10.75 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.000759/0.5551, allocations: 191 kB / 0.5076 GB, free: 10.55 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006691/0.5618, allocations: 3.497 MB / 0.511 GB, free: 7.051 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.5618, allocations: 0 / 0.511 GB, free: 7.051 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001755/0.5636, allocations: 1.044 MB / 0.512 GB, free: 5.996 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00274/0.5664, allocations: 259.7 kB / 0.5123 GB, free: 5.742 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01206/0.5785, allocations: 5.902 MB / 0.518 GB, free: 15.79 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002551/0.5811, allocations: 2.235 MB / 0.5202 GB, free: 13.53 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008121/0.5819, allocations: 195.4 kB / 0.5204 GB, free: 13.34 MB / 462.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5819, allocations: 3.938 kB / 0.5204 GB, free: 13.33 MB / 462.1 MB Notification: Performance of Templates: time 0.2519/0.8338, allocations: 48.76 MB / 0.568 GB, free: 149.2 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/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