Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001441/0.001441, allocations: 111.5 kB / 17.69 MB, free: 5.422 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.001653/0.001653, allocations: 192 kB / 18.63 MB, free: 4.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 222.9 MB / 242.3 MB, free: 15.18 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009839/0.0009839, allocations: 59.34 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.1019, allocations: 49.44 MB / 351.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01171/0.1136, allocations: 7.616 MB / 359.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006238/0.1199, allocations: 3.34 MB / 362.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008802/0.1208, allocations: 43.81 kB / 362.5 MB, free: 8.641 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001964/0.1228, allocations: 1.028 MB / 363.5 MB, free: 7.609 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002945/0.1258, allocations: 1.337 MB / 364.9 MB, free: 6.27 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00112/0.1269, allocations: 0.5535 MB / 365.4 MB, free: 5.715 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00309/0.13, allocations: 2.586 MB / 368 MB, free: 3.125 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001449/0.1315, allocations: 1.378 MB / 369.4 MB, free: 1.719 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001164/0.1326, allocations: 0.8407 MB / 370.2 MB, free: 0.875 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1614/0.2941, allocations: 1.146 MB / 371.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006177/0.2947, allocations: 146.8 kB / 371.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002016/0.2968, allocations: 0.9058 MB / 372.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001195/0.298, allocations: 1.049 MB / 373.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001196/0.2992, allocations: 1.251 MB / 374.7 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004942/0.3041, allocations: 4.119 MB / 378.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3041, allocations: 6.906 kB / 378.9 MB, free: 10.81 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.214e-06/0.3042, allocations: 0 / 378.9 MB, free: 10.81 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001079/0.3043, allocations: 2.938 kB / 378.9 MB, free: 10.81 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.006058/0.3103, allocations: 2.99 MB / 381.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.3104, allocations: 11.8 kB / 381.9 MB, free: 9.492 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005388/0.3158, allocations: 1.571 MB / 383.4 MB, free: 9.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003497/0.3193, allocations: 1.414 MB / 384.8 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001149/0.3194, allocations: 125.6 kB / 385 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004104/0.3199, allocations: 167.2 kB / 385.1 MB, free: 8.879 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009085/0.329, allocations: 6.532 MB / 391.7 MB, free: 5.707 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.751e-05/0.329, allocations: 30.23 kB / 391.7 MB, free: 5.703 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000223/0.3293, allocations: 87.92 kB / 391.8 MB, free: 5.676 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002094/0.3314, allocations: 1.466 MB / 393.2 MB, free: 5.117 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008936/0.3403, allocations: 5.831 MB / 399.1 MB, free: 2.324 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02637/0.3667, allocations: 25.66 MB / 424.7 MB, free: 8.234 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005347/0.3721, allocations: 2.549 MB / 427.3 MB, free: 5.551 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001433/0.3735, allocations: 1.218 MB / 428.5 MB, free: 4.324 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007516/0.3811, allocations: 4.81 MB / 433.3 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.417e-05/0.3811, allocations: 46.55 kB / 433.4 MB, free: 15.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=97): time 4.118e-06/0.3811, allocations: 3.938 kB / 433.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=105): time 0.02225/0.4034, allocations: 9.782 MB / 443.1 MB, free: 5.5 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.76e-05/0.4035, allocations: 142 kB / 443.3 MB, free: 5.332 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003598/0.4071, allocations: 2.706 MB / 446 MB, free: 2.605 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001603/0.4073, allocations: 37.7 kB / 446 MB, free: 2.562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001178/0.4085, allocations: 2.046 MB / 448.1 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003826/0.4089, allocations: 437.7 kB / 448.5 MB, free: 100 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001019/0.4099, allocations: 0.826 MB / 449.3 MB, free: 15.26 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.949e-05/0.41, allocations: 305.1 kB / 449.6 MB, free: 14.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001972/0.412, allocations: 1.45 MB / 451.1 MB, free: 13.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0034/0.4154, allocations: 4.073 MB / 455.1 MB, free: 8.145 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006054/0.4214, allocations: 5.957 MB / 461.1 MB, free: 1.219 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.558e-05/0.4215, allocations: 24 kB / 461.1 MB, free: 1.195 MB / 366.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01008/0.4316, allocations: 6.035 MB / 467.2 MB, free: 11.15 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.403e-05/0.4317, allocations: 48 kB / 467.2 MB, free: 11.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.497e-05/0.4318, allocations: 95.84 kB / 467.3 MB, free: 11.02 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002248/0.4341, allocations: 0.8244 MB / 468.1 MB, free: 10.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002828/0.4369, allocations: 0.9435 MB / 469.1 MB, free: 9.242 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005805/0.4427, allocations: 4.66 MB / 473.7 MB, free: 4.445 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003189/0.446, allocations: 243.6 kB / 474 MB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004517/0.4464, allocations: 260 kB / 474.2 MB, free: 3.953 MB / 382.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.002405/0.4488, allocations: 1.375 MB / 475.6 MB, free: 2.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004642/0.4493, allocations: 221.1 kB / 475.8 MB, free: 2.352 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004079/0.4534, allocations: 2.13 MB / 477.9 MB, free: 208 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.477e-05/0.4534, allocations: 23.94 kB / 478 MB, free: 184 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.366e-06/0.4535, allocations: 0 / 478 MB, free: 184 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.4535, allocations: 7.984 kB / 478 MB, free: 176 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009285/0.4628, allocations: 5.057 MB / 483 MB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.268e-05/0.4628, allocations: 4 kB / 483 MB, free: 11.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007882/0.4636, allocations: 155.8 kB / 483.2 MB, free: 10.9 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002048/0.4657, allocations: 0.6834 MB / 483.9 MB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/0.4658, allocations: 23.05 kB / 483.9 MB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004898/0.4707, allocations: 4.151 MB / 488 MB, free: 5.902 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.4707, allocations: 0 / 488 MB, free: 5.902 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006188/0.4769, allocations: 4.062 MB / 492.1 MB, free: 1.816 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00071/0.4776, allocations: 282 kB / 492.4 MB, free: 1.52 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002521/0.4779, allocations: 18.42 kB / 492.4 MB, free: 1.504 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009198/0.4788, allocations: 71.89 kB / 492.5 MB, free: 1.434 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002011/0.479, allocations: 64.3 kB / 492.5 MB, free: 1.371 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.473e-05/0.4791, allocations: 31.94 kB / 492.6 MB, free: 1.34 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.002507/0.4817, allocations: 1.693 MB / 494.3 MB, free: 15.64 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4817, allocations: 0 / 494.3 MB, free: 15.64 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.00326/0.4849, allocations: 0.6821 MB / 494.9 MB, free: 14.96 MB / 414.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.0004429/0.4854, allocations: 193.6 kB / 495.1 MB, free: 14.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005135/0.4905, allocations: 3.485 MB / 498.6 MB, free: 11.28 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.4906, allocations: 5.25 kB / 498.6 MB, free: 11.27 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001334/0.4919, allocations: 1.05 MB / 499.7 MB, free: 10.21 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001645/0.4936, allocations: 248 kB / 499.9 MB, free: 9.973 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009228/0.5028, allocations: 5.593 MB / 0.4936 GB, free: 4.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002018/0.5049, allocations: 2.244 MB / 0.4958 GB, free: 2.066 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.002724/0.5076, allocations: 1.318 MB / 0.4971 GB, free: 0.7461 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004547/0.5081, allocations: 171.3 kB / 0.4973 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of SimCode: time 9.21e-07/0.5081, allocations: 0 / 0.4973 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of Templates: time 0.04033/0.5484, allocations: 20.39 MB / 0.5172 GB, free: 12.38 MB / 446.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches