Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001875/0.001875, allocations: 124.5 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002278/0.002278, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.502/1.502, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") translateModel(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002186/0.002186, allocations: 47.92 kB / 373.5 MB, free: 9.703 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1142/0.1164, allocations: 53.34 MB / 426.8 MB, free: 4.273 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.2056/0.322, allocations: 7.626 MB / 434.4 MB, free: 7.504 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004773/0.3268, allocations: 3.377 MB / 437.8 MB, free: 5.988 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005806/0.3274, allocations: 42.69 kB / 437.9 MB, free: 5.977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001831/0.3292, allocations: 1.045 MB / 438.9 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002569/0.3318, allocations: 1.34 MB / 440.2 MB, free: 5.141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001055/0.3328, allocations: 0.5411 MB / 440.8 MB, free: 4.949 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00295/0.3358, allocations: 2.623 MB / 443.4 MB, free: 4.027 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001289/0.3371, allocations: 1.198 MB / 444.6 MB, free: 3.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001167/0.3382, allocations: 0.843 MB / 445.4 MB, free: 3.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00177/0.34, allocations: 1.261 MB / 446.7 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003576/0.3404, allocations: 147.2 kB / 446.8 MB, free: 2.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001789/0.3421, allocations: 0.9196 MB / 447.8 MB, free: 2.523 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001025/0.3432, allocations: 1.08 MB / 448.8 MB, free: 2.125 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009248/0.3441, allocations: 1.238 MB / 450.1 MB, free: 1.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004415/0.3485, allocations: 4.093 MB / 454.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3485, allocations: 0 / 454.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3485, allocations: 0 / 454.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.4e-05/0.3486, allocations: 0 / 454.2 MB, free: 14.93 MB / 366.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.006117/0.3547, allocations: 3.071 MB / 457.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.182e-05/0.3547, allocations: 8.406 kB / 457.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00579/0.3605, allocations: 1.582 MB / 458.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002957/0.3635, allocations: 1.386 MB / 460.2 MB, free: 10.94 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001299/0.3636, allocations: 131.6 kB / 460.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004194/0.364, allocations: 161.5 kB / 460.5 MB, free: 10.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01111/0.3752, allocations: 6.536 MB / 467 MB, free: 6.773 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.974e-05/0.3752, allocations: 32.73 kB / 467.1 MB, free: 6.754 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002518/0.3755, allocations: 83.3 kB / 467.2 MB, free: 6.699 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002699/0.3782, allocations: 1.471 MB / 468.6 MB, free: 6.047 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01118/0.3894, allocations: 5.83 MB / 474.5 MB, free: 224 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03182/0.4212, allocations: 25.69 MB / 0.4884 GB, free: 5.777 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006123/0.4273, allocations: 2.467 MB / 0.4908 GB, free: 3.16 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00162/0.4289, allocations: 1.134 MB / 0.492 GB, free: 2.016 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007895/0.4368, allocations: 4.822 MB / 0.4967 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.63e-05/0.4369, allocations: 50.5 kB / 0.4967 GB, free: 13.03 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 2.525e-06/0.4369, allocations: 0 / 0.4967 GB, free: 13.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02606/0.4629, allocations: 9.908 MB / 0.5064 GB, free: 3 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.423e-05/0.463, allocations: 144.9 kB / 0.5065 GB, free: 2.828 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004024/0.467, allocations: 2.71 MB / 0.5092 GB, free: 100 kB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001353/0.4672, allocations: 41.69 kB / 0.5092 GB, free: 52 kB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001621/0.4688, allocations: 2.124 MB / 0.5113 GB, free: 13.91 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005195/0.4693, allocations: 456.6 kB / 0.5117 GB, free: 13.46 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001187/0.4705, allocations: 0.8378 MB / 0.5125 GB, free: 12.61 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.4706, allocations: 305.1 kB / 0.5128 GB, free: 12.3 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00225/0.4729, allocations: 1.449 MB / 0.5142 GB, free: 10.85 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004471/0.4774, allocations: 4.069 MB / 0.5182 GB, free: 5.449 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007741/0.4851, allocations: 5.961 MB / 0.524 GB, free: 14.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-05/0.4852, allocations: 28 kB / 0.5241 GB, free: 14.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01166/0.4968, allocations: 6.026 MB / 0.53 GB, free: 8.121 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.872e-05/0.4969, allocations: 56.34 kB / 0.53 GB, free: 8.066 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.169e-05/0.497, allocations: 92.81 kB / 0.5301 GB, free: 7.977 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002504/0.4995, allocations: 0.8162 MB / 0.5309 GB, free: 7.156 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002817/0.5023, allocations: 0.9475 MB / 0.5318 GB, free: 6.207 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006499/0.5088, allocations: 4.659 MB / 0.5364 GB, free: 1.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00285/0.5116, allocations: 248.7 kB / 0.5366 GB, free: 1.168 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004289/0.5121, allocations: 260 kB / 0.5369 GB, free: 0.9141 MB / 446.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.002255/0.5143, allocations: 1.369 MB / 0.5382 GB, free: 15.54 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004688/0.5148, allocations: 234.4 kB / 0.5384 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004736/0.5195, allocations: 2.122 MB / 0.5405 GB, free: 13.17 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.654e-05/0.5196, allocations: 16 kB / 0.5405 GB, free: 13.16 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.256e-06/0.5196, allocations: 0 / 0.5405 GB, free: 13.16 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.406e-05/0.5196, allocations: 11.83 kB / 0.5405 GB, free: 13.15 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01073/0.5303, allocations: 5.058 MB / 0.5454 GB, free: 8.012 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-05/0.5303, allocations: 8.062 kB / 0.5455 GB, free: 8.004 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000903/0.5312, allocations: 155.8 kB / 0.5456 GB, free: 7.852 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002441/0.5337, allocations: 0.6756 MB / 0.5463 GB, free: 7.172 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001373/0.5338, allocations: 16 kB / 0.5463 GB, free: 7.156 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006096/0.5399, allocations: 4.161 MB / 0.5503 GB, free: 2.855 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.5399, allocations: 0 / 0.5503 GB, free: 2.855 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007616/0.5475, allocations: 4.057 MB / 0.5543 GB, free: 14.76 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/0.5486, allocations: 295.4 kB / 0.5546 GB, free: 14.45 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006703/0.5492, allocations: 15.62 kB / 0.5546 GB, free: 14.44 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001439/0.5507, allocations: 75.89 kB / 0.5547 GB, free: 14.37 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002615/0.5509, allocations: 60.23 kB / 0.5547 GB, free: 14.31 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001298/0.5511, allocations: 31.91 kB / 0.5548 GB, free: 14.28 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004075/0.5551, allocations: 1.693 MB / 0.5564 GB, free: 12.58 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.5551, allocations: 0 / 0.5564 GB, free: 12.58 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004955/0.5601, allocations: 0.6638 MB / 0.5571 GB, free: 11.91 MB / 478.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.0007585/0.5608, allocations: 206.7 kB / 0.5573 GB, free: 11.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006345/0.5672, allocations: 3.349 MB / 0.5605 GB, free: 8.355 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.5672, allocations: 0 / 0.5605 GB, free: 8.355 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001593/0.5688, allocations: 0.9616 MB / 0.5615 GB, free: 7.379 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001999/0.5708, allocations: 268 kB / 0.5617 GB, free: 7.125 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01044/0.5812, allocations: 5.687 MB / 0.5673 GB, free: 1.395 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003226/0.5845, allocations: 2.229 MB / 0.5695 GB, free: 15.14 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.00338/0.5878, allocations: 1.324 MB / 0.5708 GB, free: 13.81 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005703/0.5884, allocations: 159.4 kB / 0.5709 GB, free: 13.66 MB / 494.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5884, allocations: 0 / 0.5709 GB, free: 13.66 MB / 494.1 MB Notification: Performance of Templates: time 0.04835/0.6368, allocations: 22.07 MB / 0.5925 GB, free: 7.648 MB / 0.4981 GB " [Timeout remaining time 659] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.sim & ./Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.938345670700073]