Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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.0008562/0.0008562, allocations: 91.67 kB / 20.68 MB, free: 3.871 MB / 18.57 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.003095/0.003095, allocations: 166 kB / 23.95 MB, free: 0.5977 MB / 18.57 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 0.8503/0.8503, allocations: 177.1 MB / 204.2 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.415e-05/1.579e-05, allocations: 2.281 kB / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.006159/0.006175, allocations: 7.041 MB / 331.6 MB, free: 8.863 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003298/0.009473, allocations: 2.442 MB / 334.1 MB, free: 6.414 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003648/0.009838, allocations: 43.81 kB / 334.1 MB, free: 6.371 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001747/0.01158, allocations: 1.475 MB / 335.6 MB, free: 4.891 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001327/0.01291, allocations: 1.045 MB / 336.6 MB, free: 3.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003496/0.01326, allocations: 271.3 kB / 336.9 MB, free: 3.574 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001554/0.01482, allocations: 2.211 MB / 339.1 MB, free: 1.359 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001111/0.01593, allocations: 1.352 MB / 340.4 MB, free: 15.98 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008938/0.01682, allocations: 1.235 MB / 341.7 MB, free: 14.74 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009789/0.0178, allocations: 1.204 MB / 342.9 MB, free: 13.54 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001726/0.01797, allocations: 163.9 kB / 343 MB, free: 13.38 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007238/0.0187, allocations: 0.6083 MB / 343.7 MB, free: 12.77 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006882/0.01938, allocations: 1.223 MB / 344.9 MB, free: 11.54 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005388/0.01992, allocations: 0.7162 MB / 345.6 MB, free: 10.82 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002674/0.0226, allocations: 4.2 MB / 349.8 MB, free: 6.605 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.111e-06/0.0226, allocations: 8 kB / 349.8 MB, free: 6.598 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.0226, allocations: 0 / 349.8 MB, free: 6.598 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.118e-05/0.02265, allocations: 0 / 349.8 MB, free: 6.598 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.002764/0.02541, allocations: 2.892 MB / 352.7 MB, free: 3.656 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.02546, allocations: 8.031 kB / 352.7 MB, free: 3.648 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000401/0.02586, allocations: 0.5338 MB / 353.2 MB, free: 3.102 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003439/0.0293, allocations: 1.933 MB / 355.2 MB, free: 1.164 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001189/0.03049, allocations: 1.121 MB / 356.3 MB, free: 12 kB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.381e-05/0.03057, allocations: 151.8 kB / 356.4 MB, free: 15.86 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002279/0.0308, allocations: 211.8 kB / 356.6 MB, free: 15.65 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008243/0.03904, allocations: 8.242 MB / 364.9 MB, free: 6.805 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.786e-05/0.0391, allocations: 39.7 kB / 364.9 MB, free: 6.766 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000174/0.03928, allocations: 99.88 kB / 365 MB, free: 6.668 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001396/0.04067, allocations: 1.562 MB / 366.6 MB, free: 5.102 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008834/0.04951, allocations: 6.774 MB / 373.4 MB, free: 14.33 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01928/0.06879, allocations: 28.16 MB / 401.5 MB, free: 1.27 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008741/0.07753, allocations: 4.475 MB / 406 MB, free: 12.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007364/0.07826, allocations: 0.8244 MB / 406.8 MB, free: 11.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002703/0.08097, allocations: 2.655 MB / 409.5 MB, free: 9.203 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.081, allocations: 54.81 kB / 409.5 MB, free: 9.141 MB / 378.7 MB Notification: Performance of pre-optimization done (n=111): time 2.625e-06/0.081, allocations: 0 / 409.5 MB, free: 9.141 MB / 378.7 MB Notification: Performance of matching and sorting (n=111): time 0.01764/0.09864, allocations: 8.484 MB / 418 MB, free: 0.6445 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.978e-05/0.09871, allocations: 195.9 kB / 418.2 MB, free: 420 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0029/0.1016, allocations: 3.252 MB / 421.5 MB, free: 13.13 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.34e-05/0.1017, allocations: 45.64 kB / 421.5 MB, free: 13.08 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001347/0.103, allocations: 2.496 MB / 424 MB, free: 10.56 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000258/0.1033, allocations: 0.5081 MB / 424.5 MB, free: 10.05 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009021/0.1042, allocations: 1.072 MB / 425.6 MB, free: 8.969 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.65e-05/0.1043, allocations: 301.1 kB / 425.9 MB, free: 8.672 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001428/0.1057, allocations: 1.482 MB / 427.4 MB, free: 7.184 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00324/0.1089, allocations: 5.044 MB / 432.4 MB, free: 344 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005255/0.1142, allocations: 7.085 MB / 439.5 MB, free: 7.469 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.611e-05/0.1143, allocations: 36 kB / 439.5 MB, free: 7.434 MB / 410.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.008072/0.1223, allocations: 6.197 MB / 445.7 MB, free: 1.234 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001528/0.1225, allocations: 56 kB / 445.8 MB, free: 1.18 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001213/0.1226, allocations: 128.1 kB / 445.9 MB, free: 1.055 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001169/0.1227, allocations: 171.9 kB / 446.1 MB, free: 0.8867 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1897/0.3125, allocations: 1.453 MB / 447.5 MB, free: 110.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004487/0.3129, allocations: 249.8 kB / 447.8 MB, free: 110.4 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003641/0.3166, allocations: 0.7746 MB / 448.5 MB, free: 110.4 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009251/0.3175, allocations: 337.6 kB / 448.9 MB, free: 110.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 580 * Number of states: 0 () * Number of discrete variables: 30 (spring.color[3],spring.color[2],spring.color[1],spring.massColor[3],spring.massColor[2],spring.massColor[1],body4.sphereColor[3],body4.sphereColor[2],body4.sphereColor[1],body3.sphereColor[3],body3.sphereColor[2],body3.sphereColor[1],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 (681): * Single equations (assignments): 678 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002633/0.3201, allocations: 1.574 MB / 450.4 MB, free: 110.2 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005471/0.3207, allocations: 259.8 kB / 450.7 MB, free: 110.2 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004127/0.3211, allocations: 314.8 kB / 451 MB, free: 110.1 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.071e-05/0.3211, allocations: 19.5 kB / 451 MB, free: 110.1 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.638e-05/0.3211, allocations: 2.406 kB / 451 MB, free: 110.1 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.805e-05/0.3212, allocations: 7.203 kB / 451 MB, free: 110.1 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004256/0.3254, allocations: 2.98 MB / 454 MB, free: 109 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.3254, allocations: 0 / 454 MB, free: 109 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001114/0.3265, allocations: 409.5 kB / 454.4 MB, free: 109 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.654e-05/0.3265, allocations: 8.984 kB / 454.4 MB, free: 109 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.546e-05/0.3266, allocations: 34.61 kB / 454.4 MB, free: 109 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.678e-06/0.3266, allocations: 3.812 kB / 454.5 MB, free: 109 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.3266, allocations: 0 / 454.5 MB, free: 109 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002249/0.3289, allocations: 2.51 MB / 457 MB, free: 107.8 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003744/0.3293, allocations: 232.6 kB / 457.2 MB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001657/0.3294, allocations: 28.08 kB / 457.2 MB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005064/0.3299, allocations: 47.77 kB / 457.3 MB, free: 107.7 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.235e-05/0.33, allocations: 63.89 kB / 457.3 MB, free: 107.6 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.02e-05/0.3301, allocations: 30.3 kB / 457.4 MB, free: 107.6 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001825/0.3319, allocations: 1.843 MB / 459.2 MB, free: 107 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.3319, allocations: 0 / 459.2 MB, free: 107 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002792/0.3347, allocations: 0.8165 MB / 460 MB, free: 106.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 24 (body1.r_0[1],body1.r_0[2],body1.r_0[3],body1.v_0[1],body1.v_0[2],body1.v_0[3],body2.r_0[1],body2.r_0[2],body2.r_0[3],body2.v_0[1],body2.v_0[2],body2.v_0[3],body3.r_0[1],body3.r_0[2],body3.r_0[3],body3.v_0[1],body3.v_0[2],body3.v_0[3],body4.r_0[1],body4.r_0[2],body4.r_0[3],body4.v_0[1],body4.v_0[2],body4.v_0[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 (87): * Single equations (assignments): 84 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001993/0.3367, allocations: 3.148 MB / 463.2 MB, free: 104.4 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003342/0.34, allocations: 3.235 MB / 466.4 MB, free: 101.6 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.34, allocations: 0 / 466.4 MB, free: 101.6 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004162/0.3405, allocations: 0.5633 MB / 467 MB, free: 101.1 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001076/0.3415, allocations: 267.2 kB / 467.2 MB, free: 100.9 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02669/0.3682, allocations: 33.06 MB / 0.4886 GB, free: 63.23 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001233/0.3695, allocations: 1.821 MB / 0.4903 GB, free: 61.38 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001891/0.3714, allocations: 1.637 MB / 0.4919 GB, free: 59.73 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007716/0.3721, allocations: 1.207 MB / 0.4931 GB, free: 58.53 MB / 410.7 MB Notification: Performance of SimCode: time 1.262e-06/0.3721, allocations: 4 kB / 0.4931 GB, free: 58.52 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04824/0.4204, allocations: 42.73 MB / 0.5349 GB, free: 16.45 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.49/8.911, allocations: 6.906 kB / 0.5349 GB, free: 16.45 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.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: 10.821137162856758]