Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001353/0.001353, allocations: 87.62 kB / 21.43 MB, free: 3.125 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.008051/0.008051, allocations: 157.3 kB / 24.69 MB, free: 8.883 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9868/0.9868, allocations: 158.6 MB / 186.5 MB, free: 3.043 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 298.4 MB, free: 3.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.645e-05/1.811e-05, allocations: 2.281 kB / 298.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.1577/0.1577, allocations: 7.04 MB / 305.5 MB, free: 12.07 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004626/0.1623, allocations: 2.44 MB / 307.9 MB, free: 10.78 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005701/0.1629, allocations: 43.16 kB / 308 MB, free: 10.77 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002182/0.165, allocations: 1.456 MB / 309.4 MB, free: 10.15 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001841/0.1669, allocations: 1.049 MB / 310.5 MB, free: 9.637 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005697/0.1675, allocations: 279.6 kB / 310.7 MB, free: 9.488 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002412/0.1699, allocations: 2.235 MB / 313 MB, free: 8.559 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001821/0.1717, allocations: 1.363 MB / 314.3 MB, free: 7.93 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00185/0.1735, allocations: 1.252 MB / 315.6 MB, free: 7.41 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001813/0.1754, allocations: 1.204 MB / 316.8 MB, free: 7.086 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003998/0.1758, allocations: 159.2 kB / 317 MB, free: 7.086 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0012/0.177, allocations: 0.6027 MB / 317.6 MB, free: 6.969 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001082/0.178, allocations: 1.239 MB / 318.8 MB, free: 6.27 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001076/0.1791, allocations: 0.7404 MB / 319.5 MB, free: 5.867 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004255/0.1834, allocations: 4.237 MB / 323.8 MB, free: 3.039 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.183e-06/0.1834, allocations: 4 kB / 323.8 MB, free: 3.035 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1834, allocations: 2.938 kB / 323.8 MB, free: 3.035 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.864e-05/0.1834, allocations: 0 / 323.8 MB, free: 3.035 MB / 282.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.004057/0.1875, allocations: 2.922 MB / 326.7 MB, free: 0.8711 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.102e-05/0.1876, allocations: 13.83 kB / 326.7 MB, free: 0.8672 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004524/0.188, allocations: 0.5263 MB / 327.2 MB, free: 0.4961 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004355/0.1924, allocations: 1.944 MB / 329.2 MB, free: 15.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001736/0.1941, allocations: 1.114 MB / 330.3 MB, free: 14.72 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.954e-05/0.1942, allocations: 151.8 kB / 330.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000272/0.1944, allocations: 215.8 kB / 330.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009483/0.2039, allocations: 8.219 MB / 338.9 MB, free: 5.535 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.887e-05/0.204, allocations: 47.64 kB / 338.9 MB, free: 5.488 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001944/0.2042, allocations: 101.8 kB / 339 MB, free: 5.391 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001549/0.2057, allocations: 1.558 MB / 340.6 MB, free: 3.828 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009397/0.2151, allocations: 6.755 MB / 347.3 MB, free: 13.06 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02066/0.2358, allocations: 28.17 MB / 375.5 MB, free: 20 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009726/0.2455, allocations: 4.467 MB / 380 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000842/0.2464, allocations: 0.8144 MB / 380.8 MB, free: 10.65 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00336/0.2497, allocations: 2.631 MB / 383.4 MB, free: 7.988 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.2498, allocations: 54.81 kB / 383.5 MB, free: 7.926 MB / 346.7 MB Notification: Performance of pre-optimization done (n=111): time 2.825e-06/0.2498, allocations: 4 kB / 383.5 MB, free: 7.922 MB / 346.7 MB Notification: Performance of matching and sorting (n=111): time 0.01849/0.2683, allocations: 8.452 MB / 391.9 MB, free: 15.46 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.263e-05/0.2684, allocations: 199.8 kB / 392.1 MB, free: 15.22 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003633/0.272, allocations: 3.249 MB / 395.4 MB, free: 11.95 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.077e-05/0.2721, allocations: 37.7 kB / 395.4 MB, free: 11.91 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001181/0.2732, allocations: 2.504 MB / 397.9 MB, free: 9.375 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003131/0.2735, allocations: 0.5091 MB / 398.4 MB, free: 8.863 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009462/0.2745, allocations: 1.068 MB / 399.5 MB, free: 7.785 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.149e-05/0.2746, allocations: 304.9 kB / 399.8 MB, free: 7.488 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001616/0.2762, allocations: 1.482 MB / 401.3 MB, free: 6 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003454/0.2796, allocations: 5.048 MB / 406.3 MB, free: 15.15 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006358/0.286, allocations: 7.075 MB / 413.4 MB, free: 6.289 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.227e-05/0.2861, allocations: 36 kB / 413.4 MB, free: 6.254 MB / 378.7 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.007605/0.2937, allocations: 6.198 MB / 419.6 MB, free: 52 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.534e-05/0.2937, allocations: 60.05 kB / 419.7 MB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.857e-05/0.2938, allocations: 133.5 kB / 419.8 MB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001066/0.2939, allocations: 164 kB / 420 MB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002538/0.2965, allocations: 1.45 MB / 421.4 MB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001284/0.2966, allocations: 247 kB / 421.7 MB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002686/0.2993, allocations: 0.7725 MB / 422.4 MB, free: 13.23 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000306/0.2996, allocations: 336 kB / 422.8 MB, free: 12.9 MB / 394.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.002211/0.3018, allocations: 1.571 MB / 424.3 MB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003539/0.3022, allocations: 266.2 kB / 424.6 MB, free: 11.05 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008502/0.303, allocations: 0.6961 MB / 425.3 MB, free: 10.35 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.622e-05/0.303, allocations: 16 kB / 425.3 MB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.266e-05/0.303, allocations: 384 / 425.3 MB, free: 10.34 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.251e-05/0.3031, allocations: 11.92 kB / 425.3 MB, free: 10.32 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004557/0.3076, allocations: 2.981 MB / 428.3 MB, free: 7.289 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.859e-06/0.3076, allocations: 4.875 kB / 428.3 MB, free: 7.285 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001181/0.3088, allocations: 407.4 kB / 428.7 MB, free: 6.887 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.089e-05/0.3088, allocations: 7.938 kB / 428.7 MB, free: 6.879 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-05/0.3089, allocations: 39.97 kB / 428.8 MB, free: 6.84 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.775e-06/0.3089, allocations: 4 kB / 428.8 MB, free: 6.836 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.3089, allocations: 0 / 428.8 MB, free: 6.836 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00222/0.3111, allocations: 2.488 MB / 431.2 MB, free: 4.328 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004166/0.3115, allocations: 238 kB / 431.5 MB, free: 4.094 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001604/0.3117, allocations: 35.91 kB / 431.5 MB, free: 4.059 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004974/0.3122, allocations: 47.95 kB / 431.6 MB, free: 4.012 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.6e-05/0.3123, allocations: 51.89 kB / 431.6 MB, free: 3.961 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.695e-05/0.3123, allocations: 32 kB / 431.6 MB, free: 3.93 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001794/0.3141, allocations: 1.845 MB / 433.5 MB, free: 2.082 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3141, allocations: 0 / 433.5 MB, free: 2.082 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003275/0.3174, allocations: 0.8343 MB / 434.3 MB, free: 1.246 MB / 394.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.002527/0.3199, allocations: 3.138 MB / 437.5 MB, free: 14.08 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003785/0.3237, allocations: 3.223 MB / 440.7 MB, free: 10.89 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.83e-06/0.3237, allocations: 0 / 440.7 MB, free: 10.89 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006073/0.3243, allocations: 0.5562 MB / 441.2 MB, free: 10.33 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.3254, allocations: 255.4 kB / 441.5 MB, free: 10.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2083/0.5337, allocations: 33.06 MB / 474.6 MB, free: 131.6 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002066/0.5358, allocations: 1.833 MB / 476.4 MB, free: 131.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00299/0.5388, allocations: 1.636 MB / 478 MB, free: 131 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009609/0.5398, allocations: 1.21 MB / 479.2 MB, free: 130.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.784e-06/0.5398, allocations: 0 / 479.2 MB, free: 130.1 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05816/0.5979, allocations: 42.85 MB / 0.5098 GB, free: 96.75 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.263/8.861, allocations: 15.88 kB / 0.5099 GB, free: 96.73 MB / 426.7 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.878484738990664]