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.001619/0.001618, allocations: 103.8 kB / 17.59 MB, free: 5.43 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.001814/0.001814, allocations: 191.6 kB / 18.52 MB, free: 4.504 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.399/1.399, allocations: 222.9 MB / 242.2 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001004/0.001005, allocations: 52.39 kB / 301.3 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1074, allocations: 49.45 MB / 350.7 MB, free: 4.434 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.009641/0.1171, allocations: 7.612 MB / 358.4 MB, free: 12.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007151/0.1243, allocations: 3.344 MB / 361.7 MB, free: 9.422 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001412/0.1257, allocations: 35.94 kB / 361.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002555/0.1283, allocations: 1.031 MB / 362.8 MB, free: 8.352 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003781/0.1322, allocations: 1.339 MB / 364.1 MB, free: 7.008 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001448/0.1336, allocations: 0.5457 MB / 364.7 MB, free: 6.461 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003748/0.1374, allocations: 2.586 MB / 367.2 MB, free: 3.871 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002313/0.1397, allocations: 1.378 MB / 368.6 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001807/0.1416, allocations: 0.8329 MB / 369.5 MB, free: 1.629 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002119/0.1437, allocations: 1.152 MB / 370.6 MB, free: 484 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006045/0.1443, allocations: 148 kB / 370.7 MB, free: 336 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1907/0.3351, allocations: 0.9015 MB / 371.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001642/0.3368, allocations: 1.051 MB / 372.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001545/0.3383, allocations: 1.248 MB / 373.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005746/0.3441, allocations: 3.947 MB / 377.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3441, allocations: 0 / 377.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.986e-06/0.3441, allocations: 1.25 kB / 377.9 MB, free: 10.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.000128/0.3443, allocations: 1.875 kB / 377.9 MB, free: 10.93 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.007149/0.3514, allocations: 3.003 MB / 380.9 MB, free: 9.602 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.453e-05/0.3515, allocations: 10.56 kB / 380.9 MB, free: 9.602 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005869/0.3574, allocations: 1.562 MB / 382.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003443/0.3609, allocations: 1.393 MB / 383.9 MB, free: 9.012 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001415/0.361, allocations: 124.6 kB / 384 MB, free: 9.008 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006246/0.3617, allocations: 171.4 kB / 384.2 MB, free: 9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01102/0.3727, allocations: 6.531 MB / 390.7 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.227e-05/0.3728, allocations: 26.69 kB / 390.7 MB, free: 6.246 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002827/0.3731, allocations: 82.59 kB / 390.8 MB, free: 6.219 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002465/0.3756, allocations: 1.469 MB / 392.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009967/0.3856, allocations: 5.841 MB / 398.1 MB, free: 3.25 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03123/0.4168, allocations: 25.76 MB / 423.9 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005882/0.4228, allocations: 2.549 MB / 426.4 MB, free: 6.691 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001676/0.4245, allocations: 1.215 MB / 427.6 MB, free: 5.465 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007945/0.4324, allocations: 4.814 MB / 432.4 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.721e-05/0.4325, allocations: 50.41 kB / 432.5 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of pre-optimization done (n=97): time 4.148e-06/0.4325, allocations: 0 / 432.5 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of matching and sorting (n=105): time 0.02585/0.4584, allocations: 9.791 MB / 442.3 MB, free: 6.637 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.592e-05/0.4585, allocations: 137 kB / 442.4 MB, free: 6.473 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005181/0.4637, allocations: 2.714 MB / 445.1 MB, free: 3.738 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004194/0.4642, allocations: 40.98 kB / 445.2 MB, free: 3.695 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002017/0.4662, allocations: 2.044 MB / 447.2 MB, free: 1.652 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007876/0.467, allocations: 427.6 kB / 447.6 MB, free: 1.238 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001764/0.4688, allocations: 0.8392 MB / 448.5 MB, free: 396 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.667e-05/0.4689, allocations: 301.1 kB / 448.8 MB, free: 92 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00241/0.4713, allocations: 1.445 MB / 450.2 MB, free: 14.64 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004062/0.4754, allocations: 4.079 MB / 454.3 MB, free: 9.277 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007073/0.4825, allocations: 5.95 MB / 460.2 MB, free: 2.395 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.617e-05/0.4826, allocations: 32 kB / 460.3 MB, free: 2.363 MB / 366.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01937/0.502, allocations: 6.034 MB / 466.3 MB, free: 12.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001791/0.5022, allocations: 44 kB / 466.3 MB, free: 12.35 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002669/0.5025, allocations: 92 kB / 466.4 MB, free: 12.26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004015/0.5065, allocations: 0.8162 MB / 467.3 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005375/0.5119, allocations: 0.9513 MB / 468.2 MB, free: 10.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01217/0.5242, allocations: 4.661 MB / 472.9 MB, free: 5.688 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00633/0.5306, allocations: 243.6 kB / 473.1 MB, free: 5.449 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00135/0.532, allocations: 264 kB / 473.4 MB, free: 5.191 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.005302/0.5373, allocations: 1.371 MB / 474.7 MB, free: 3.812 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001022/0.5383, allocations: 225.1 kB / 475 MB, free: 3.59 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009075/0.5474, allocations: 2.128 MB / 477.1 MB, free: 1.445 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.982e-05/0.5476, allocations: 19.92 kB / 477.1 MB, free: 1.426 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.041e-05/0.5476, allocations: 4 kB / 477.1 MB, free: 1.422 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.553e-05/0.5477, allocations: 3.984 kB / 477.1 MB, free: 1.418 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02069/0.5684, allocations: 5.067 MB / 482.2 MB, free: 12.3 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.069e-05/0.5685, allocations: 7.938 kB / 482.2 MB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001694/0.5702, allocations: 155.7 kB / 482.3 MB, free: 12.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00453/0.5747, allocations: 0.6835 MB / 483 MB, free: 11.45 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003647/0.5751, allocations: 20 kB / 483 MB, free: 11.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01025/0.5854, allocations: 4.151 MB / 487.2 MB, free: 7.137 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.789e-06/0.5855, allocations: 8.094 kB / 487.2 MB, free: 7.129 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0126/0.5981, allocations: 4.058 MB / 491.3 MB, free: 3.047 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/0.5993, allocations: 290.1 kB / 491.5 MB, free: 2.742 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007276/0.6001, allocations: 16 kB / 491.6 MB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001957/0.6021, allocations: 67.89 kB / 491.6 MB, free: 2.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003682/0.6024, allocations: 64.23 kB / 491.7 MB, free: 2.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001588/0.6026, allocations: 28 kB / 491.7 MB, free: 2.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.005149/0.6078, allocations: 1.693 MB / 493.4 MB, free: 0.8672 MB / 398.1 MB Notification: Performance of sort global known variables: time 7.82e-07/0.6078, allocations: 0 / 493.4 MB, free: 0.8672 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.007478/0.6153, allocations: 0.6796 MB / 494.1 MB, free: 192 kB / 398.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.0009678/0.6164, allocations: 196.2 kB / 494.3 MB, free: 15.98 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.01131/0.6277, allocations: 3.703 MB / 498 MB, free: 12.29 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/0.6278, allocations: 0 / 498 MB, free: 12.29 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00261/0.6304, allocations: 1.041 MB / 499 MB, free: 11.24 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003024/0.6334, allocations: 262.5 kB / 499.3 MB, free: 10.99 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01701/0.6505, allocations: 5.952 MB / 0.4934 GB, free: 4.984 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003785/0.6543, allocations: 2.24 MB / 0.4956 GB, free: 2.715 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001067/0.6554, allocations: 191.4 kB / 0.4958 GB, free: 2.527 MB / 414.1 MB Notification: Performance of SimCode: time 9.52e-07/0.6554, allocations: 0 / 0.4958 GB, free: 2.527 MB / 414.1 MB Notification: Performance of Templates: time 0.2434/0.8988, allocations: 48.29 MB / 0.5429 GB, free: 149.2 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 -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