Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.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.001273/0.001273, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.00137/0.00137, allocations: 189.6 kB / 24.49 MB, free: 3.98 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.372/1.372, allocations: 225.7 MB / 253.3 MB, free: 12.86 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001418/0.001418, allocations: 55.91 kB / 371.2 MB, free: 9.809 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2564, allocations: 52.18 MB / 423.4 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity): time 0.008535/0.265, allocations: 6.162 MB / 429.5 MB, free: 8.234 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006496/0.2715, allocations: 2.917 MB / 432.4 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008473/0.2723, allocations: 39.81 kB / 432.5 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001535/0.2739, allocations: 0.6497 MB / 433.1 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003081/0.2769, allocations: 1.44 MB / 434.6 MB, free: 3.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009882/0.2779, allocations: 0.4913 MB / 435.1 MB, free: 2.68 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004058/0.282, allocations: 3.122 MB / 438.2 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008143/0.2828, allocations: 498.4 kB / 438.7 MB, free: 15.05 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001226/0.284, allocations: 0.8134 MB / 439.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001875/0.2859, allocations: 1.339 MB / 440.8 MB, free: 12.89 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003046/0.2862, allocations: 128 kB / 440.9 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001712/0.2879, allocations: 0.8774 MB / 441.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001105/0.289, allocations: 1.114 MB / 442.9 MB, free: 10.77 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009906/0.29, allocations: 0.8963 MB / 443.8 MB, free: 9.871 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00516/0.2952, allocations: 4.077 MB / 447.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.2952, allocations: 4 kB / 447.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2952, allocations: 0 / 447.9 MB, free: 5.777 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.833e-05/0.2953, allocations: 0 / 447.9 MB, free: 5.777 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: 911 * Number of variables: 911 Notification: Performance of Generate backend data structure: time 0.007426/0.3027, allocations: 3.234 MB / 451.1 MB, free: 2.496 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.3027, allocations: 8.031 kB / 451.2 MB, free: 2.488 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.463e-05/0.3028, allocations: 58.88 kB / 451.2 MB, free: 2.43 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005063/0.3033, allocations: 437.4 kB / 451.6 MB, free: 1.992 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008072/0.3114, allocations: 1.926 MB / 453.6 MB, free: 64 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004513/0.3159, allocations: 2.22 MB / 455.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001336/0.316, allocations: 114.6 kB / 455.9 MB, free: 13.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00114/0.3172, allocations: 299.5 kB / 456.2 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01618/0.3333, allocations: 8.227 MB / 464.4 MB, free: 4.609 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.734e-05/0.3334, allocations: 35.7 kB / 464.4 MB, free: 4.574 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000287/0.3337, allocations: 79.89 kB / 464.5 MB, free: 4.496 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00231/0.336, allocations: 1.397 MB / 465.9 MB, free: 3.098 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01907/0.3551, allocations: 9.588 MB / 475.5 MB, free: 9.5 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03756/0.3927, allocations: 29.55 MB / 0.4932 GB, free: 11.09 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01207/0.4047, allocations: 3.882 MB / 0.497 GB, free: 7.164 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003302/0.408, allocations: 2.081 MB / 0.499 GB, free: 5.066 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.33e-05/0.4081, allocations: 12 kB / 0.4991 GB, free: 5.055 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.845e-05/0.4082, allocations: 50.5 kB / 0.4991 GB, free: 4.996 MB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 4.288e-06/0.4082, allocations: 0 / 0.4991 GB, free: 4.996 MB / 414.1 MB Notification: Performance of matching and sorting (n=136): time 0.04704/0.4552, allocations: 17.91 MB / 0.5166 GB, free: 2.969 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.002715/0.4579, allocations: 3.018 MB / 0.5195 GB, free: 15.66 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004571/0.4625, allocations: 3.008 MB / 0.5225 GB, free: 12.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006162/0.4631, allocations: 45.69 kB / 0.5225 GB, free: 12.59 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001786/0.4649, allocations: 2.167 MB / 0.5246 GB, free: 10.4 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009866/0.4659, allocations: 0.5893 MB / 0.5252 GB, free: 9.805 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001642/0.4675, allocations: 1.012 MB / 0.5262 GB, free: 8.781 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.4677, allocations: 309.1 kB / 0.5265 GB, free: 8.477 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004359/0.472, allocations: 2.574 MB / 0.529 GB, free: 5.895 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006854/0.4789, allocations: 5.525 MB / 0.5344 GB, free: 14.89 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01163/0.4905, allocations: 8.514 MB / 0.5427 GB, free: 4.918 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001052/0.4906, allocations: 32 kB / 0.5428 GB, free: 4.887 MB / 462.1 MB Notification: Performance of matching and sorting (n=636) (initialization): time 0.2112/0.7018, allocations: 9.86 MB / 0.5524 GB, free: 119.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.561e-05/0.7019, allocations: 51.12 kB / 0.5524 GB, free: 119.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.009902/0.7118, allocations: 5.093 MB / 0.5574 GB, free: 118.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007697/0.7195, allocations: 2.35 MB / 0.5597 GB, free: 118.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003804/0.7233, allocations: 1.235 MB / 0.5609 GB, free: 117.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006393/0.7297, allocations: 8.244 MB / 0.569 GB, free: 110.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004438/0.7341, allocations: 0.5604 MB / 0.5695 GB, free: 109.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006046/0.7347, allocations: 319.9 kB / 0.5698 GB, free: 109.3 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 475 * Number of states: 0 () * Number of discrete variables: 18 (body2.sphereColor[3],body2.sphereColor[2],body2.sphereColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[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 (584): * Single equations (assignments): 569 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001712/0.7365, allocations: 1.407 MB / 0.5712 GB, free: 108 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004565/0.7369, allocations: 265.7 kB / 0.5714 GB, free: 107.9 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005639/0.7375, allocations: 423.2 kB / 0.5718 GB, free: 107.5 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009532/0.747, allocations: 5.009 MB / 0.5767 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.955e-05/0.747, allocations: 4 kB / 0.5767 GB, free: 102.5 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.932e-05/0.747, allocations: 8.719 kB / 0.5767 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006198/0.7532, allocations: 4.829 MB / 0.5815 GB, free: 97.64 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.893e-06/0.7532, allocations: 4 kB / 0.5815 GB, free: 97.63 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00149/0.7547, allocations: 371.4 kB / 0.5818 GB, free: 97.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007157/0.7619, allocations: 2.381 MB / 0.5841 GB, free: 94.87 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002347/0.7621, allocations: 55.88 kB / 0.5842 GB, free: 94.81 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006558/0.7687, allocations: 8.997 MB / 0.593 GB, free: 85.42 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.001145/0.7698, allocations: 2.853 MB / 0.5958 GB, free: 82.34 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01306/0.7829, allocations: 8.764 MB / 0.6043 GB, free: 73.69 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006486/0.7835, allocations: 264.9 kB / 0.6046 GB, free: 73.44 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003984/0.7839, allocations: 35.19 kB / 0.6046 GB, free: 73.41 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001913/0.7859, allocations: 315.4 kB / 0.6049 GB, free: 73.1 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000399/0.7863, allocations: 115.6 kB / 0.605 GB, free: 72.99 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001607/0.7864, allocations: 51.95 kB / 0.6051 GB, free: 72.94 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002139/0.7886, allocations: 1.875 MB / 0.6069 GB, free: 71.06 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.7886, allocations: 2.906 kB / 0.6069 GB, free: 71.06 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003523/0.7921, allocations: 0.9592 MB / 0.6078 GB, free: 70.11 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 24 ($STATESET2.x[3],$STATESET2.x[2],$STATESET2.x[1],body2.frame_a.r_0[1],body2.frame_a.r_0[2],body2.frame_a.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body2.w_a[1],body2.w_a[2],body2.w_a[3],$STATESET1.x[3],$STATESET1.x[2],$STATESET1.x[1],body1.frame_a.r_0[1],body1.frame_a.r_0[2],body1.frame_a.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body1.w_a[1],body1.w_a[2],body1.w_a[3]) * 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 (92): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 6 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(3,100.0%), (4,100.0%), (3,100.0%), (4,100.0%)} * Non-linear Jacobian (size): 2 systems {4, 4} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01397/0.806, allocations: 9.429 MB / 0.6171 GB, free: 60.62 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01061/0.8167, allocations: 6.749 MB / 0.6236 GB, free: 53.83 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.473e-06/0.8167, allocations: 192 / 0.6236 GB, free: 53.83 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005899/0.8226, allocations: 3.266 MB / 0.6268 GB, free: 50.5 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002258/0.8248, allocations: 301.1 kB / 0.6271 GB, free: 50.21 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05995/0.8848, allocations: 45.24 MB / 0.6713 GB, free: 0.6562 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002168/0.8869, allocations: 1.73 MB / 0.673 GB, free: 14.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003943/0.8909, allocations: 1.656 MB / 0.6746 GB, free: 13.23 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001828/0.8927, allocations: 1.163 MB / 0.6757 GB, free: 12.07 MB / 478.1 MB Notification: Performance of SimCode: time 1.062e-06/0.8927, allocations: 0 / 0.6757 GB, free: 12.07 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1291/1.022, allocations: 65.58 MB / 0.7398 GB, free: 11.08 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.34/19.36, allocations: 11.98 kB / 0.7398 GB, free: 11.07 MB / 0.5294 GB " [Timeout remaining time 640] (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravity.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravity/PointGravity.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravity.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: 23.083850658033043]