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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002002/0.002002, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002486/0.002486, allocations: 190.8 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.466/1.466, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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=5002,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=5002,variableFilter="time|rev.phi|rev.w",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00167/0.00167, allocations: 43.92 kB / 370.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2817/0.2833, allocations: 52.18 MB / 423.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField): time 0.01011/0.2934, allocations: 6.798 MB / 429.9 MB, free: 7.645 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007148/0.3006, allocations: 3.131 MB / 433 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001136/0.3017, allocations: 43.81 kB / 433 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002332/0.3041, allocations: 1.008 MB / 434.1 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003642/0.3077, allocations: 1.382 MB / 435.4 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001357/0.3091, allocations: 0.5534 MB / 436 MB, free: 1.508 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00366/0.3127, allocations: 2.573 MB / 438.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001662/0.3144, allocations: 1.224 MB / 439.8 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001256/0.3156, allocations: 0.8524 MB / 440.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001682/0.3173, allocations: 1.222 MB / 441.9 MB, free: 11.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003192/0.3176, allocations: 147.9 kB / 442 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001598/0.3192, allocations: 0.7917 MB / 442.8 MB, free: 10.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001091/0.3203, allocations: 1.09 MB / 443.9 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001045/0.3214, allocations: 0.9041 MB / 444.8 MB, free: 8.656 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004781/0.3262, allocations: 4.138 MB / 448.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.3262, allocations: 0 / 448.9 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3262, allocations: 3.938 kB / 448.9 MB, free: 4.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.209e-05/0.3262, allocations: 0 / 448.9 MB, free: 4.5 MB / 350.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.005578/0.3318, allocations: 3.005 MB / 451.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.212e-05/0.3318, allocations: 12.92 kB / 451.9 MB, free: 1.438 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00558/0.3374, allocations: 1.582 MB / 453.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002961/0.3404, allocations: 1.368 MB / 454.9 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001257/0.3405, allocations: 123 kB / 455 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003818/0.3409, allocations: 163.8 kB / 455.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01033/0.3512, allocations: 6.538 MB / 461.7 MB, free: 7.148 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-05/0.3513, allocations: 27.75 kB / 461.7 MB, free: 7.121 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002431/0.3515, allocations: 83.89 kB / 461.8 MB, free: 7.039 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002692/0.3542, allocations: 1.472 MB / 463.3 MB, free: 5.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01068/0.3649, allocations: 5.81 MB / 469.1 MB, free: 15.75 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02959/0.3945, allocations: 24.15 MB / 493.3 MB, free: 6.844 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005578/0.4001, allocations: 2.032 MB / 495.3 MB, free: 4.773 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001694/0.4018, allocations: 1.133 MB / 496.4 MB, free: 3.629 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007717/0.4095, allocations: 4.26 MB / 0.489 GB, free: 15.34 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.285e-05/0.4095, allocations: 42.56 kB / 0.489 GB, free: 15.29 MB / 414.1 MB Notification: Performance of pre-optimization done (n=97): time 3.196e-06/0.4095, allocations: 0 / 0.489 GB, free: 15.29 MB / 414.1 MB Notification: Performance of matching and sorting (n=105): time 0.02439/0.4339, allocations: 9.717 MB / 0.4985 GB, free: 5.496 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.963e-05/0.434, allocations: 145 kB / 0.4986 GB, free: 5.324 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003503/0.4375, allocations: 2.554 MB / 0.5011 GB, free: 2.734 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001167/0.4376, allocations: 33.7 kB / 0.5011 GB, free: 2.695 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001685/0.4393, allocations: 2.159 MB / 0.5033 GB, free: 0.5117 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004911/0.4398, allocations: 448.7 kB / 0.5037 GB, free: 72 kB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001194/0.441, allocations: 0.8338 MB / 0.5045 GB, free: 15.22 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002117/0.4412, allocations: 361.9 kB / 0.5048 GB, free: 14.86 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002348/0.4436, allocations: 1.449 MB / 0.5063 GB, free: 13.41 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004569/0.4481, allocations: 4.069 MB / 0.5102 GB, free: 8.008 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00773/0.4559, allocations: 5.965 MB / 0.5161 GB, free: 0.7383 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-05/0.456, allocations: 31.94 kB / 0.5161 GB, free: 0.707 MB / 430.1 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.01198/0.4679, allocations: 6.004 MB / 0.5219 GB, free: 10.7 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.097e-05/0.468, allocations: 47.94 kB / 0.522 GB, free: 10.65 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001052/0.4681, allocations: 96 kB / 0.5221 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002438/0.4705, allocations: 0.8201 MB / 0.5229 GB, free: 9.73 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002934/0.4735, allocations: 0.9513 MB / 0.5238 GB, free: 8.777 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006497/0.48, allocations: 4.485 MB / 0.5282 GB, free: 4.199 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002863/0.4828, allocations: 243.7 kB / 0.5284 GB, free: 3.961 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004187/0.4833, allocations: 268 kB / 0.5287 GB, free: 3.699 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.002048/0.4853, allocations: 1.368 MB / 0.53 GB, free: 2.32 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00038/0.4857, allocations: 214.5 kB / 0.5302 GB, free: 2.109 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004438/0.4901, allocations: 2.096 MB / 0.5323 GB, free: 4 kB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.036e-05/0.4902, allocations: 19.98 kB / 0.5323 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.4902, allocations: 0 / 0.5323 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.4902, allocations: 11.94 kB / 0.5323 GB, free: 15.97 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009166/0.4993, allocations: 4.319 MB / 0.5365 GB, free: 11.6 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.109e-05/0.4994, allocations: 4 kB / 0.5365 GB, free: 11.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008208/0.5002, allocations: 155.8 kB / 0.5367 GB, free: 11.45 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00224/0.5024, allocations: 0.6873 MB / 0.5373 GB, free: 10.75 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.572e-05/0.5025, allocations: 19.98 kB / 0.5374 GB, free: 10.73 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005771/0.5083, allocations: 3.999 MB / 0.5413 GB, free: 6.625 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.5083, allocations: 3.938 kB / 0.5413 GB, free: 6.621 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006857/0.5151, allocations: 4.03 MB / 0.5452 GB, free: 2.562 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005395/0.5157, allocations: 194.4 kB / 0.5454 GB, free: 2.371 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00023/0.5159, allocations: 12 kB / 0.5454 GB, free: 2.359 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009635/0.5169, allocations: 75.89 kB / 0.5455 GB, free: 2.285 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000172/0.517, allocations: 56.27 kB / 0.5455 GB, free: 2.23 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.141e-05/0.5171, allocations: 36.11 kB / 0.5456 GB, free: 2.195 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002218/0.5194, allocations: 1.463 MB / 0.547 GB, free: 0.7148 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5194, allocations: 0 / 0.547 GB, free: 0.7148 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003029/0.5224, allocations: 0.6716 MB / 0.5476 GB, free: 44 kB / 462.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.1896/0.712, allocations: 185.9 kB / 0.5478 GB, free: 122.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005973/0.718, allocations: 3.367 MB / 0.5511 GB, free: 121.6 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.718, allocations: 2.531 kB / 0.5511 GB, free: 121.6 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001164/0.7192, allocations: 0.9627 MB / 0.5521 GB, free: 121.2 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/0.7206, allocations: 226.7 kB / 0.5523 GB, free: 121.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007094/0.7277, allocations: 5.709 MB / 0.5578 GB, free: 118.7 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001594/0.7293, allocations: 1.663 MB / 0.5595 GB, free: 118.2 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002191/0.7315, allocations: 1.299 MB / 0.5607 GB, free: 118.1 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00035/0.7319, allocations: 148.6 kB / 0.5609 GB, free: 118.1 MB / 462.1 MB Notification: Performance of SimCode: time 1.413e-06/0.7319, allocations: 0 / 0.5609 GB, free: 118.1 MB / 462.1 MB Notification: Performance of Templates: time 0.03373/0.7656, allocations: 22.11 MB / 0.5825 GB, free: 97.88 MB / 462.1 MB " [Timeout remaining time 659] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.UserDefinedGravityField_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/UserDefinedGravityField/UserDefinedGravityField.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.9720014445483685]