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.0013/0.0013, allocations: 105.1 kB / 21.21 MB, free: 0.6484 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.001361/0.001361, allocations: 208.7 kB / 24.51 MB, free: 3.941 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.403/1.403, allocations: 230.6 MB / 258.3 MB, free: 7.789 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: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_MultiBody_Examples_Elementary_PointGravityWithPointMasses",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001384/0.001384, allocations: 47.92 kB / 378.5 MB, free: 2.969 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2323/0.2337, allocations: 53.36 MB / 431.9 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.MultiBody.Examples.Elementary.PointGravityWithPointMasses): time 0.008606/0.2423, allocations: 6.985 MB / 438.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004697/0.247, allocations: 2.431 MB / 441.3 MB, free: 13.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006855/0.2477, allocations: 43.81 kB / 441.3 MB, free: 13.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002618/0.2503, allocations: 1.401 MB / 442.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002016/0.2523, allocations: 1.019 MB / 443.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005903/0.2529, allocations: 267.4 kB / 444 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002311/0.2552, allocations: 2.156 MB / 446.2 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001406/0.2566, allocations: 1.346 MB / 447.5 MB, free: 6.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007885/0.2574, allocations: 0.8445 MB / 448.3 MB, free: 6.094 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00148/0.2589, allocations: 1.3 MB / 449.6 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002424/0.2591, allocations: 160 kB / 449.8 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009427/0.2601, allocations: 0.5851 MB / 450.4 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009666/0.261, allocations: 1.18 MB / 451.6 MB, free: 2.863 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001039/0.2621, allocations: 0.97 MB / 452.5 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004435/0.2665, allocations: 4.306 MB / 456.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.2665, allocations: 0 / 456.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2665, allocations: 0 / 456.8 MB, free: 13.56 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.49e-05/0.2666, allocations: 0 / 456.8 MB, free: 13.56 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: 1113 * Number of variables: 1113 Notification: Performance of Generate backend data structure: time 0.004139/0.2707, allocations: 2.935 MB / 459.8 MB, free: 10.58 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.2708, allocations: 12.03 kB / 459.8 MB, free: 10.57 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.848e-05/0.2708, allocations: 68.12 kB / 459.9 MB, free: 10.5 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005475/0.2714, allocations: 0.526 MB / 460.4 MB, free: 9.961 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006176/0.2776, allocations: 1.8 MB / 462.2 MB, free: 8.156 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00183/0.2794, allocations: 1.109 MB / 463.3 MB, free: 7.016 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/0.2795, allocations: 151.8 kB / 463.4 MB, free: 6.867 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003698/0.2799, allocations: 215.8 kB / 463.7 MB, free: 6.656 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01692/0.2968, allocations: 8.633 MB / 472.3 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-05/0.2969, allocations: 43.69 kB / 472.3 MB, free: 13.37 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002538/0.2971, allocations: 103.9 kB / 472.4 MB, free: 13.27 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002726/0.2999, allocations: 1.663 MB / 474.1 MB, free: 11.61 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01647/0.3163, allocations: 7.191 MB / 481.3 MB, free: 4.414 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0324/0.3487, allocations: 29.12 MB / 0.4984 GB, free: 6.398 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0217/0.3704, allocations: 4.533 MB / 0.5029 GB, free: 1.801 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001625/0.3721, allocations: 1.2 MB / 0.504 GB, free: 0.5781 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0075/0.3796, allocations: 3.099 MB / 0.5071 GB, free: 13.45 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.237e-05/0.3796, allocations: 54.83 kB / 0.5071 GB, free: 13.39 MB / 430.1 MB Notification: Performance of pre-optimization done (n=111): time 5.43e-06/0.3796, allocations: 0 / 0.5071 GB, free: 13.39 MB / 430.1 MB Notification: Performance of matching and sorting (n=111): time 0.06302/0.4426, allocations: 9.002 MB / 0.5159 GB, free: 4.371 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001209/0.4428, allocations: 195.9 kB / 0.5161 GB, free: 4.137 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004261/0.447, allocations: 3.035 MB / 0.5191 GB, free: 1.082 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001786/0.4472, allocations: 41.7 kB / 0.5191 GB, free: 1.035 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001831/0.449, allocations: 2.535 MB / 0.5216 GB, free: 14.47 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005464/0.4496, allocations: 0.508 MB / 0.5221 GB, free: 13.96 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001345/0.4509, allocations: 1.096 MB / 0.5231 GB, free: 12.85 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001271/0.4511, allocations: 301.1 kB / 0.5234 GB, free: 12.55 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002345/0.4534, allocations: 1.611 MB / 0.525 GB, free: 10.94 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005116/0.4585, allocations: 5.173 MB / 0.5301 GB, free: 3.961 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008692/0.4672, allocations: 7.334 MB / 0.5372 GB, free: 10.85 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001148/0.4673, allocations: 36 kB / 0.5372 GB, free: 10.81 MB / 462.1 MB Notification: Performance of matching and sorting (n=705) (initialization): time 0.01119/0.4785, allocations: 6.465 MB / 0.5436 GB, free: 4.344 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.651e-05/0.4786, allocations: 60 kB / 0.5436 GB, free: 4.285 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001513/0.4787, allocations: 131.8 kB / 0.5437 GB, free: 4.16 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001665/0.4789, allocations: 164 kB / 0.5439 GB, free: 4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004847/0.4838, allocations: 1.458 MB / 0.5453 GB, free: 2.539 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003027/0.4841, allocations: 251 kB / 0.5456 GB, free: 2.293 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003911/0.488, allocations: 0.7639 MB / 0.5463 GB, free: 1.523 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000785/0.4888, allocations: 344.1 kB / 0.5466 GB, free: 1.188 MB / 462.1 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.2113/0.7001, allocations: 1.568 MB / 0.5482 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005289/0.7006, allocations: 264.8 kB / 0.5484 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000665/0.7013, allocations: 315.2 kB / 0.5487 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.158e-05/0.7013, allocations: 14.25 kB / 0.5487 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.337e-06/0.7013, allocations: 1.562 kB / 0.5487 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.111e-05/0.7013, allocations: 5.781 kB / 0.5487 GB, free: 114.1 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005114/0.7064, allocations: 3.228 MB / 0.5519 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.7064, allocations: 5.312 kB / 0.5519 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002248/0.7087, allocations: 413 kB / 0.5523 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.927e-06/0.7087, allocations: 4 kB / 0.5523 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-05/0.7088, allocations: 34.36 kB / 0.5523 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.514e-06/0.7088, allocations: 4.906 kB / 0.5523 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.7088, allocations: 4.359 kB / 0.5523 GB, free: 113.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002904/0.7117, allocations: 2.816 MB / 0.5551 GB, free: 112.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003399/0.712, allocations: 241.9 kB / 0.5553 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002267/0.7123, allocations: 31.11 kB / 0.5554 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008006/0.7131, allocations: 43.33 kB / 0.5554 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.7132, allocations: 59 kB / 0.5555 GB, free: 112 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.835e-05/0.7133, allocations: 42.11 kB / 0.5555 GB, free: 112 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001838/0.7151, allocations: 1.833 MB / 0.5573 GB, free: 111.4 MB / 462.1 MB Notification: Performance of sort global known variables: time 8e-08/0.7151, allocations: 0 / 0.5573 GB, free: 111.4 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.00321/0.7183, allocations: 0.8181 MB / 0.5581 GB, free: 111.2 MB / 462.1 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.002654/0.721, allocations: 3.466 MB / 0.5615 GB, free: 109.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.003455/0.7244, allocations: 3.488 MB / 0.5649 GB, free: 107.2 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.7244, allocations: 0 / 0.5649 GB, free: 107.2 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006227/0.7251, allocations: 0.6838 MB / 0.5655 GB, free: 106.6 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001301/0.7264, allocations: 264.4 kB / 0.5658 GB, free: 106.4 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02739/0.7537, allocations: 34.29 MB / 0.5993 GB, free: 67.82 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001507/0.7552, allocations: 1.827 MB / 0.6011 GB, free: 65.96 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002566/0.7578, allocations: 1.629 MB / 0.6026 GB, free: 64.33 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001076/0.7589, allocations: 1.222 MB / 0.6038 GB, free: 63.11 MB / 462.1 MB Notification: Performance of SimCode: time 1.213e-06/0.7589, allocations: 3.609 kB / 0.6038 GB, free: 63.11 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4105/1.169, allocations: 45.07 MB / 0.6479 GB, free: 18.74 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.16/19.33, allocations: 10.53 kB / 0.6479 GB, free: 18.73 MB / 462.1 MB " [Timeout remaining time 640] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/MultiBody/Examples/Elementary/PointGravityWithPointMasses/PointGravityWithPointMasses.csv","/var/lib/jenkins1/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: 23.228116896003485]