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.001135/0.001135, allocations: 114.5 kB / 17.73 MB, free: 5.34 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.001194/0.001194, allocations: 187 kB / 18.67 MB, free: 4.414 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.437/1.437, 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.001953/0.001953, allocations: 47.92 kB / 328.5 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1248/0.1268, allocations: 46.61 MB / 375.2 MB, free: 4.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.2282/0.355, allocations: 7.67 MB / 382.8 MB, free: 9.273 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00792/0.363, allocations: 3.297 MB / 386.1 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001519/0.3646, allocations: 35.06 kB / 386.2 MB, free: 7.758 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00214/0.3668, allocations: 1.029 MB / 387.2 MB, free: 7.285 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003721/0.3705, allocations: 1.343 MB / 388.5 MB, free: 6.719 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001404/0.3719, allocations: 0.5393 MB / 389.1 MB, free: 6.527 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004306/0.3763, allocations: 2.604 MB / 391.7 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002348/0.3786, allocations: 1.397 MB / 393.1 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001627/0.3803, allocations: 0.8338 MB / 393.9 MB, free: 4.707 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001845/0.3821, allocations: 1.162 MB / 395.1 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004842/0.3826, allocations: 147.9 kB / 395.2 MB, free: 4.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002305/0.3849, allocations: 0.8962 MB / 396.1 MB, free: 4.047 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001145/0.3861, allocations: 1.071 MB / 397.2 MB, free: 3.676 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001181/0.3873, allocations: 1.249 MB / 398.4 MB, free: 2.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005164/0.3925, allocations: 4.121 MB / 402.5 MB, free: 192 kB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3925, allocations: 1.188 kB / 402.5 MB, free: 192 kB / 318.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3925, allocations: 0 / 402.5 MB, free: 192 kB / 318.1 MB Notification: Performance of Transformations before backend: time 9.843e-05/0.3926, allocations: 0 / 402.5 MB, free: 192 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.007628/0.4002, allocations: 3.004 MB / 405.6 MB, free: 14.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.824e-05/0.4003, allocations: 9.5 kB / 405.6 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006032/0.4063, allocations: 1.576 MB / 407.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004519/0.4109, allocations: 1.457 MB / 408.6 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001692/0.4111, allocations: 128.1 kB / 408.7 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006385/0.4117, allocations: 165.3 kB / 408.9 MB, free: 12.12 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01286/0.4246, allocations: 6.528 MB / 415.4 MB, free: 6.648 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.054e-05/0.4247, allocations: 39.66 kB / 415.4 MB, free: 6.609 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002615/0.425, allocations: 83.89 kB / 415.5 MB, free: 6.527 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002634/0.4276, allocations: 1.46 MB / 417 MB, free: 5.066 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01077/0.4384, allocations: 5.843 MB / 422.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03186/0.4703, allocations: 25.66 MB / 448.5 MB, free: 4.793 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005686/0.4761, allocations: 2.542 MB / 451 MB, free: 2.102 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001644/0.4777, allocations: 1.211 MB / 452.2 MB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008058/0.4858, allocations: 4.816 MB / 457.1 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.157e-05/0.4859, allocations: 46.5 kB / 457.1 MB, free: 11.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=97): time 5.891e-06/0.4859, allocations: 0 / 457.1 MB, free: 11.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=105): time 0.02656/0.5125, allocations: 9.817 MB / 466.9 MB, free: 1.945 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.802e-05/0.5126, allocations: 141 kB / 467.1 MB, free: 1.777 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005281/0.5179, allocations: 2.718 MB / 469.8 MB, free: 15.04 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000224/0.5182, allocations: 41.64 kB / 469.8 MB, free: 14.99 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002456/0.5206, allocations: 2.044 MB / 471.9 MB, free: 12.92 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009413/0.5216, allocations: 426.7 kB / 472.3 MB, free: 12.5 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002255/0.5239, allocations: 0.8409 MB / 473.1 MB, free: 11.64 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001252/0.524, allocations: 301.1 kB / 473.4 MB, free: 11.34 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002596/0.5266, allocations: 1.445 MB / 474.9 MB, free: 9.891 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004465/0.5311, allocations: 4.073 MB / 478.9 MB, free: 4.488 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008297/0.5394, allocations: 5.969 MB / 484.9 MB, free: 13.21 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001047/0.5396, allocations: 24 kB / 484.9 MB, free: 13.19 MB / 414.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01327/0.5528, allocations: 6.017 MB / 490.9 MB, free: 7.16 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001171/0.553, allocations: 55.92 kB / 491 MB, free: 7.105 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001962/0.5532, allocations: 92 kB / 491.1 MB, free: 7.016 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002552/0.5558, allocations: 0.8207 MB / 491.9 MB, free: 6.191 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003581/0.5594, allocations: 0.9474 MB / 492.9 MB, free: 5.242 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007087/0.5665, allocations: 4.66 MB / 497.5 MB, free: 452 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004799/0.5713, allocations: 247.6 kB / 497.8 MB, free: 204 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001212/0.5725, allocations: 260 kB / 498 MB, free: 15.94 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.004406/0.577, allocations: 1.372 MB / 499.4 MB, free: 14.56 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001166/0.5781, allocations: 233 kB / 499.6 MB, free: 14.33 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00583/0.584, allocations: 2.138 MB / 0.49 GB, free: 12.18 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.895e-05/0.584, allocations: 12 kB / 0.49 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.86e-05/0.5841, allocations: 8 kB / 0.49 GB, free: 12.16 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.922e-05/0.5841, allocations: 3.984 kB / 0.49 GB, free: 12.15 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01288/0.597, allocations: 5.066 MB / 0.495 GB, free: 7.008 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.555e-05/0.597, allocations: 0 / 0.495 GB, free: 7.008 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008623/0.5979, allocations: 155.8 kB / 0.4951 GB, free: 6.855 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002202/0.6001, allocations: 0.6835 MB / 0.4958 GB, free: 6.168 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001639/0.6003, allocations: 20.22 kB / 0.4958 GB, free: 6.148 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005681/0.606, allocations: 4.14 MB / 0.4998 GB, free: 1.867 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.606, allocations: 7.969 kB / 0.4998 GB, free: 1.859 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006803/0.6128, allocations: 4.055 MB / 0.5038 GB, free: 13.78 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001491/0.6143, allocations: 446 kB / 0.5042 GB, free: 13.32 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007139/0.6151, allocations: 27.97 kB / 0.5043 GB, free: 13.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001386/0.6165, allocations: 67.95 kB / 0.5043 GB, free: 13.23 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002398/0.6167, allocations: 64.25 kB / 0.5044 GB, free: 13.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.806e-05/0.6168, allocations: 31.98 kB / 0.5044 GB, free: 13.13 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004313/0.6212, allocations: 1.697 MB / 0.5061 GB, free: 11.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 9.62e-07/0.6212, allocations: 0 / 0.5061 GB, free: 11.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005408/0.6266, allocations: 0.6718 MB / 0.5067 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.0007198/0.6273, allocations: 199 kB / 0.5069 GB, free: 10.55 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006492/0.6338, allocations: 3.489 MB / 0.5103 GB, free: 7.059 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.6339, allocations: 4 kB / 0.5103 GB, free: 7.055 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00159/0.6355, allocations: 1.048 MB / 0.5114 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.002331/0.6378, allocations: 268.1 kB / 0.5116 GB, free: 5.734 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01259/0.6504, allocations: 5.615 MB / 0.5171 GB, free: 76 kB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003971/0.6544, allocations: 2.241 MB / 0.5193 GB, free: 13.8 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003708/0.6582, allocations: 1.317 MB / 0.5206 GB, free: 12.48 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006447/0.6588, allocations: 163.4 kB / 0.5207 GB, free: 12.32 MB / 462.1 MB Notification: Performance of SimCode: time 8.01e-07/0.6588, allocations: 3.938 kB / 0.5207 GB, free: 12.32 MB / 462.1 MB Notification: Performance of Templates: time 0.05016/0.709, allocations: 21.8 MB / 0.542 GB, free: 6.484 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